|
SuperDex Physics C++ API
|
Parameters for creating a target constraint on a single articulated DoF. More...
#include <mochi_structs.h>
Public Attributes | |
| ActorHandle | actor {} |
| Actor handle identifying the articulated actor. | |
| int | dofIndex = 0 |
| DoF index within the joint (0-based). | |
| int | jointIndex = 0 |
| Index of the joint in the articulated actor. | |
| real | targetValue = 0_r |
| Target value for the joint DoF. | |
| Public Attributes inherited from superdex::ConstraintParams | |
| real | damping = 0_r |
| Constraint damping coefficient. | |
| real | saturation = -1_r |
| Saturation distance [m] or angle [rad]. | |
| real | stiffness = 1e6_r |
| Constraint stiffness coefficient. | |
Additional Inherited Members | |
| Public Member Functions inherited from superdex::ConstraintParams | |
| bool | operator== (ConstraintParams const &) const =default |
Parameters for creating a target constraint on a single articulated DoF.
Forces the specified degree of freedom in a joint of an articulated actor to track a given target value. This drives the joint toward a desired configuration.
Definition at line 399 of file mochi_structs.h.
| ActorHandle superdex::ArticulatedSingleDofTargetConstraintParams::actor {} |
Actor handle identifying the articulated actor.
Definition at line 400 of file mochi_structs.h.
| int superdex::ArticulatedSingleDofTargetConstraintParams::dofIndex = 0 |
DoF index within the joint (0-based).
Translation DoFs come first, then rotation DoFs. For free joints, only translation indices are accepted (use Articulated3dRotationTargetConstraintParams to target the 3D rotation).
Definition at line 404 of file mochi_structs.h.
| int superdex::ArticulatedSingleDofTargetConstraintParams::jointIndex = 0 |
Index of the joint in the articulated actor.
Definition at line 402 of file mochi_structs.h.
| real superdex::ArticulatedSingleDofTargetConstraintParams::targetValue = 0_r |
Target value for the joint DoF.
Units are [m] for translation DoFs, [rad] for rotation DoFs.
Definition at line 406 of file mochi_structs.h.