simscape.multibody.State Class
R2026bNamespace: simscape.multibody
Description
A simscape.multibody.State object represents the position and velocity of
every joint primitive in a compiled multibody system. You use the State
object in many analyses, such as computing the dynamics or querying the transformation of a
frame in the system.
To compute the state of a compiled multibody system, use the computeState method.
The Status property shows whether the state is valid. If the state is not
valid, the Status property shows what type of problem occurred.
You can only use a State object with the simscape.multibody.CompiledMultibody object that was used to create the
State object. Attempting to pass a State object to a
method of a different CompiledMultibody object generates an error.
Class Attributes
Sealed | true |
ConstructOnLoad | true |
RestrictsSubclassing | true |
For information on class attributes, see Class Attributes.
Creation
To create the simscape.multibody.State object of a compiled multibody
system, use the computeState
method.
Properties
Methods
Examples
Version History
Introduced in R2022a