HyperWorks Tools

::hwat::utils::SetJointAngles

::hwat::utils::SetJointAngles

Previous topic Next topic No expanding text in this topic  

::hwat::utils::SetJointAngles

Previous topic Next topic JavaScript is required for expanding text JavaScript is required for the print function  

NAME

::hwat::utils::SetJointAngles - Sets the joint angles of the dummy.

 

SYNTAX

SetJointAngles {components} {angles} parentChild option

 

ARGUMENTS

components

Tcl list of component IDs.

angles

Tcl list of lists of angles to apply corresponding to the component list.

parentChild

0 rotates child, 1 rotates parent system (default = 0).

option

absolute or relative (default = absolute).

 

RETURNS

1 if successful , "{}" if unsuccessful.

 

EXAMPLE

::hwat::utils::SetJointAngles  [list 101 102] [list [list 45 25 0.0] [13.0 0.0  7.5]] 0 relative.

 

Comments

The component and angle lists must be of equal length.  The parent or child will always be rotated around X,Y, and Z, in that order.  This function assumes that the angles passed will not cause them to be out of bounds after rotation.

 

 

See also

::hwat::solver::GetComponentStopAngles

Utils Functions