computeState
Class: simscape.multibody.CompiledMultibody
Namespace: simscape.multibody
Description
computes the state of the state
= computeState(cmb
,op
)simscape.multibody.CompiledMultibody
object, cmb
, based on
the joint targets specified by the simscape.op.OperatingPoint
object, op
.
The computeState
method attempts to satisfy the targeted joint
primitives specified by the OperatingPoint
object as much as possible.
However, in some cases, to find a complete state that satisfies all of the kinematic
constraints, some targets may not be met.
To specify joint position and velocity targets, use the OperatingPoint
with paths to the joint primitives, appending specific letters. The tables provide a summary
of the letters corresponding to each joint primitive type.
Primitive Type | Position Target | Velocity Target | Examples | |
---|---|---|---|---|
Revolute (Rz) | q | w |
| |
Prismatic (Pz) | p | v |
| |
Spherical (S) | angle_axis | w |
| |
Lead Screw (LSz) | Angular targets | q | w |
|
Linear targets | p | v | ||
Constant Velocity (CV) | Bend angle | q/b | w/b |
|
Azimuth angle | q/a | w/a |
Note
For the lead screw joint primitive, you cannot simultaneously specify both angular and linear position targets, nor both angular and linear velocity targets. However, you can pair a linear position target with an angular velocity target, or an angular position target with a linear velocity target.
Input Arguments
Output Arguments
Version History
Introduced in R2022a