|
SuperDex Physics C++ API
|
Base constraint parameters. More...
#include <mochi_structs.h>
Public Member Functions | |
| bool | operator== (ConstraintParams const &) const =default |
Public Attributes | |
| real | damping = 0_r |
| Constraint damping coefficient. | |
| real | saturation = -1_r |
| Saturation distance [m] or angle [rad]. | |
| real | stiffness = 1e6_r |
| Constraint stiffness coefficient. | |
Base constraint parameters.
All constraint types inherit from this struct and add their specific parameters. Constraints apply forces and torques using a spring-damper model. Without saturation, the stiffness contribution is proportional to displacement or angular deviation, and the damping contribution is proportional to the corresponding linear or angular velocity. Their respective coefficients are stiffness and damping. saturation limits only the stiffness contribution.
Definition at line 269 of file mochi_structs.h.
|
default |
| real superdex::ConstraintParams::damping = 0_r |
Constraint damping coefficient.
[N·s/m] for translation constraints, [N·m·s/rad] for rotation constraints. Must be non-negative and finite.
Definition at line 272 of file mochi_structs.h.
| real superdex::ConstraintParams::saturation = -1_r |
Saturation distance [m] or angle [rad].
A negative value disables saturation. Must be finite and non-zero.
Definition at line 274 of file mochi_structs.h.
| real superdex::ConstraintParams::stiffness = 1e6_r |
Constraint stiffness coefficient.
[N/m] for translation constraints, [N·m/rad] for rotation constraints. Must be non-negative and finite.
Definition at line 270 of file mochi_structs.h.