dyn::State¶
rb::dyn::State is the mutable state container passed into the rigid-body
model computations. It stores joint vectors, intermediate kinematic quantities,
and base-motion terms used by the dynamics layer.
Header
Header |
|
Declaration
Namespace |
|
Kind |
|
Primary role |
Hold joint vectors, gravity, base twist, and intermediate dynamic state. |
Public Attributes
Field group |
Meaning |
Notes |
|---|---|---|
|
Joint position, velocity, acceleration, and torque vectors. |
The main dynamic inputs and outputs. |
|
Intermediate rigid-body quantities. |
Mostly useful after model computations run. |
|
Base motion terms. |
Relevant for floating-base or moving-base setups. |
Public Member Functions
Method group |
Purpose |
Notes |
|---|---|---|
|
Read the main state vectors. |
Useful when state is owned by another subsystem. |
|
Write the main state vectors and gravity. |
Call before running model computations. |
|
Inspect the model-index mapping bound into the state. |
Useful for debugging and analysis. |
Detailed Reference
-
template<int DOF>
class State¶ Public Types
Public Functions
-
inline unsigned int GetBaseLinkIdx() const¶
-
inline ContainerType<std::string, DOF> GetJointNames() const¶
-
inline std::vector<std::string> GetLinkNames() const¶
-
inline const math::se3v::MatrixType &GetV0() const¶
-
inline const math::se3v::MatrixType &GetVdot0() const¶
-
inline void SetGravity(const math::se3v::MatrixType &gravity)¶
-
inline void SetV0(const math::se3v::MatrixType &new_V0)¶
-
inline void SetVdot0(const math::se3v::MatrixType &new_Vdot0)¶
Public Members
-
ContainerType<math::SE3::MatrixType, DOF> E = {}¶
-
ContainerType<math::SE3::MatrixType, DOF> T = {}¶
-
math::se3v::MatrixType V0 = {math::se3v::MatrixType::Zero()}¶
-
math::se3v::MatrixType Vdot0 = {math::se3v::MatrixType::Zero()}¶
Friends
- friend class Robot
-
inline unsigned int GetBaseLinkIdx() const¶
Related Types
Examples
dynamics/load_urdf.cppdynamics/gravity_term.cpp