|
JSim 2026.06.01-p(1)
|
Kinematic mapping utility for a two-motor double differential turret mechanism. More...
#include <double_differential.hpp>
Classes | |
| struct | Limits |
| Optional soft limits applied to joint coordinates. More... | |
| struct | Config |
| Mapping coefficients and inversion thresholds. More... | |
| struct | MotorState |
| Input state for the two drive motors. More... | |
| struct | JointState |
| Output state for mechanism yaw/pitch joints. More... | |
| struct | InverseResult |
| Result from inverse kinematics solve. More... | |
Public Member Functions | |
| DoubleDifferentialMechanism ()=default | |
| DoubleDifferentialMechanism (const Config &config) | |
| const Config & | config () const |
| Returns current mapping configuration. | |
| void | setConfig (const Config &config) |
| Replaces mapping configuration. | |
| JointState | forward (const MotorState &motor_state) const |
| Computes joint state from motor state via forward mapping. | |
| InverseResult | inverse (const JointState &desired_joint_state) const |
| Solves inverse mapping from desired joint state to motor state. | |
| JointState | clampedToLimits (const JointState &state) const |
| Returns a copy of state clamped to configured joint limits. | |
Kinematic mapping utility for a two-motor double differential turret mechanism.
The configured 2x2 matrix maps motor shaft states to yaw/pitch joint states.
|
default |
|
inlineexplicit |
|
inline |
Returns a copy of state clamped to configured joint limits.
| state | Input joint state. |
|
inline |
Returns current mapping configuration.
|
inline |
Computes joint state from motor state via forward mapping.
| motor_state | Motor positions/velocities in mechanism motor space. |
|
inline |
Solves inverse mapping from desired joint state to motor state.
| desired_joint_state | Requested joint angles/rates. |
|
inline |
Replaces mapping configuration.
| config | New mapping configuration. |