simscape.multibody.State Class
Namespace: simscape.multibody
Description
Use an object of the simscape.multibody.State
class to include the position
and velocity of every joint primitive in a compiled multibody system. You use the
State
object in may analyses, such as computing the position or velocity of
a joint primitive 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
Version History
Introduced in R2022a