pycatia.dnb_human_sim_interfaces.move_to_posture_activity

Module initially auto generated using V5Automation files from CATIA V5 R28 on 2020-09-25 14:34:21.593357

Warning

The notes denoted “CAA V5 Visual Basic Help” are to be used as reference only. They are there as a guide as to how the visual basic / catscript functions work and thus help debugging in pycatia.

class pycatia.dnb_human_sim_interfaces.move_to_posture_activity.MoveToPostureActivity(com_object)

Note

CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357)

System.IUnknown
System.IDispatch
System.CATBaseUnknown
System.CATBaseDispatch
System.AnyObject
DMAPSInterfaces.Activity
DNBHumanSimInterfaces.WorkerActivity
MoveToPostureActivity

The object that represents an MoveToPosture(MTP) Activity.
MTP allows to store a target posture for a specific manikin at a specific time
in the process. When a MTP is created, the current posture of the manikin along
with any constraints (if any).
property acceleration_percent: float

Note

CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357)
o Property AccelerationPercent() As double

Returns or Sets Acceleration Percentage
Return type:

float

add_constraint(pi_constraint: SWKIKConstraint) None

Note

CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
o Sub AddConstraint(SWKIKConstraint piConstraint)

Adds the given constraint to MoveToPosture activity

Parameters:

piConstraint
Constraint to be added. (see

SWKIKConstraint for list of possible values)
Parameters:

pi_constraint (SWKIKConstraint) –

Return type:

None

apply_posture_to_manikin() None

Note

CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
o Sub ApplyPostureToManikin()

Set the MoveToPosture(MTP) Activity’s DegreeOfFreedom(DOF) values onto
Manikin (which owns this MTP activity).
Return type:

None

property corner_rounding: float

Note

CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357)
o Property CornerRounding() As double

Returns or Sets Corner Rounding
Return type:

float

get_constraint(i_index: int) SWKIKConstraint

Note

CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
o Func GetConstraint(long iIndex) As SWKIKConstraint

Returns the constraint at given index

Parameters:

iIndex
Index in the constraint-list to be retrieved

Returns:
pioConstraint Constraint at given index (see SWKIKConstraint for list
of possible values)
Parameters:

i_index (int) –

Return type:

SWKIKConstraint

get_joint_values(o_joint_vals: tuple) None

Note

CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
o Sub GetJointValues(CATSafeArrayVariant oJointVals)

Gets the Manikin’s Position and Posture values in 137 doubles. (Array
includeds Position information - first 6 values represent X,Y,Z and R,P,Y value
of Manikin w.r.to its Father.)

Parameters:

oJointVals
Joint Values
Parameters:

o_joint_vals (tuple) –

Return type:

None

get_number_of_constraints() int

Note

CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
o Func GetNumberOfConstraints() As long

Returns the number of constraints on the MoveToPosture
activity

Returns:
iNumber Number of Constraints
Return type:

int

get_part_relation(e_ee: int, o_product: Product, o_offset_trans: tuple) bool

Note

CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
o Func GetPartRelation(HTSEndEffector eEE,
Product oProduct,
CATSafeArrayVariant oOffsetTrans) As boolean

DEPRECATED. DO NOT USE
Parameters:
  • e_ee (int) – enum hts_end_effector

  • o_product (Product) –

  • o_offset_trans (tuple) –

Return type:

bool

get_position(o_trans_matrix: tuple) None

Note

CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
o Sub GetPosition(CATSafeArrayVariant oTransMatrix)

This gets the position value in 12 doubles

Parameters:

oTransMatrix
The first nine represent succcessively the components of the
x-axis, y-axis, and z-axis. The last three represent the coordinates of the
origin point.
Parameters:

o_trans_matrix (tuple) –

Return type:

None

get_posture_values(o_pos_vals: tuple) None

Note

CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
o Sub GetPostureValues(CATSafeArrayVariant oPosVals)

Gets the Manikin’s Posture values in 131 doubles. (This array excludes
Position information)

Parameters:

oPosVals
Posture values
Parameters:

o_pos_vals (tuple) –

Return type:

None

get_segment_values(in_seg_name: str, o_dof_vals: tuple) None

Note

CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
o Sub GetSegmentValues(CATBSTR inSegName,
CATSafeArrayVariant oDofVals)

Gets the DOF values of the given segment from MoveToPosture
activity

Parameters:

inSegName
Name of the Segment
oDofVals
Dof values of constraint, array of size 3
Parameters:
  • in_seg_name (str) –

  • o_dof_vals (tuple) –

Return type:

None

has_part_relation() bool

Note

CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
o Func HasPartRelation() As boolean

DEPRECATED. DO NOT USE
Return type:

bool

property motion_basis: int

Note

CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357)
o Property MotionBasis() As HTSMotionBasis

Returns or Sets Motion-Basis (see HTSMotionBasis for list of possible
values)
Returns:

enum hts_motion_basis

Return type:

int

property referential: int

Note

CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357)
o Property Referential() As HTSManikinReferential

Returns or Sets Manikin Referential (see HTSManikinReferential for list of
possible values)
Returns:

enum hts_manikin_referential

Return type:

int

remove_constraint(pi_constraint: SWKIKConstraint) None

Note

CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
o Sub RemoveConstraint(SWKIKConstraint piConstraint)

Removes the given constraint from MoveToPosture activity

Parameters:

piConstraint
Constraint to be removed. (see

SWKIKConstraint for list of possible values)
Parameters:

pi_constraint (SWKIKConstraint) –

Return type:

None

set_current_constraint_set() None

Note

CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
o Sub SetCurrentConstraintSet()

Set the current Constraints existing on Manikin onto MoveToPosture activity
Return type:

None

set_joint_values(o_joint_vals: tuple) None

Note

CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
o Sub SetJointValues(CATSafeArrayVariant oJointVals)

Sets the Manikin’s Position and Posture values with 137 doubles. (Array
should includes Position information - first 6 values represent X,Y,Z and R,P,Y
value of Manikin w.r.to its Father.)

Parameters:

oJointVals
Joint Values
Parameters:

o_joint_vals (tuple) –

Return type:

None

set_part_relation(e_ee: int, o_product: Product) None

Note

CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
o Sub SetPartRelation(HTSEndEffector eEE,
Product oProduct)

DEPRECATED. DO NOT USE
Parameters:
  • e_ee (int) – enum hts_end_effector

  • o_product (Product) –

Return type:

None

set_part_relation_with_offset(e_ee: int, o_product: Product, o_offset_trans: tuple) None

Note

CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
o Sub SetPartRelationWithOffset(HTSEndEffector eEE,
Product oProduct,
CATSafeArrayVariant oOffsetTrans)

DEPRECATED. DO NOT USE
Parameters:
  • e_ee (int) – enum hts_end_effector

  • o_product (Product) –

  • o_offset_trans (tuple) –

Return type:

None

set_position(o_trans_matrix: tuple) None

Note

CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
o Sub SetPosition(CATSafeArrayVariant oTransMatrix)

Sets the Manikin’s position value in the MoveToPosture Activity. ( Pos.
vals are w.r.to Manikin’s Father )

Parameters:

oTransMatrix
The array initialized with the components to set to the Manikin’s
position. The first nine represent succcessively the components of the x-axis,
y-axis, and z-axis. The last three represent the coordinates of the origin
point.

Example:

This example sets the Position of Manikin
oTransMatrix for MoveToPosture oMTP

Dim oTransMatrix( 11 )
‘Rotation( 45 degrees around the Z axis) components
‘ x axis components
oTransMatrix( 0 ) = 0.707
oTransMatrix( 1 ) = 0.707
oTransMatrix( 2 ) = 0.0
‘ y axis components
oTransMatrix( 3 ) = -0.707
oTransMatrix( 4 ) = 0.707
oTransMatrix( 5 ) = 0
‘ z axis components
oTransMatrix( 6 ) = 0
oTransMatrix( 7 ) = 0
oTransMatrix( 8 ) = 1
‘ origin point coordinates
oTransMatrix( 9 ) = 0
oTransMatrix( 10 ) = 0
oTransMatrix( 11 ) = 947.0

oMTP.SetPosition(oTransMatrix)
Parameters:

o_trans_matrix (tuple) –

Return type:

None

set_posture_values(o_pos_vals: tuple) None

Note

CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
o Sub SetPostureValues(CATSafeArrayVariant oPosVals)

Sets the Manikin’s Posture values with 131 values

Parameters:

oPosVals
Posture values
Parameters:

o_pos_vals (tuple) –

Return type:

None

set_segment_values(in_seg_name: str, o_dof_vals: tuple) None

Note

CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
o Sub SetSegmentValues(CATBSTR inSegName,
CATSafeArrayVariant oDofVals)

Sets the given DOF values for Segments from MoveToPosture
activity

Parameters:

inSegName
Name of the Segment
oDofVals
Dof values of constraint, array of size 3
Parameters:
  • in_seg_name (str) –

  • o_dof_vals (tuple) –

Return type:

None

property speed_percent: float

Note

CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357)
o Property SpeedPercent() As double

Returns or Sets Speed Percentage
Return type:

float