![]() |
ImFusion SDK 4.3
|
#include <RoboticsPlugin/Include/ImFusion/Robotics/RobotState.h>
Represents joint-related values (position, velocity, acceleration, torque, etc.) and their corresponding states (measured, desired, or commanded) and provides access to each of these values through member variables. More...
Represents joint-related values (position, velocity, acceleration, torque, etc.) and their corresponding states (measured, desired, or commanded) and provides access to each of these values through member variables.
Public Member Functions | |
| const JointQuantity & | commandedOrDesiredOrMeasured () const |
| Access the commanded joint quantity if available, if not; access the desired ones, it they are not available; access the measured ones. | |
| const JointQuantity & | desiredOrMeasured () const |
| Access the desired joint quantity if provided; otherwise, return the measured joint positions. | |
Public Attributes | |
| JointQuantity | measured |
| Measured joint positions. | |
| std::optional< JointQuantity > | desired |
| Desired joint positions. | |
| std::optional< JointQuantity > | commanded |
| Commanded joint positions. | |
| const JointQuantity & commandedOrDesiredOrMeasured | ( | ) | const |
Access the commanded joint quantity if available, if not; access the desired ones, it they are not available; access the measured ones.
This is a common pattern to compute compatible commands for different robot firmwares.
| const JointQuantity & desiredOrMeasured | ( | ) | const |
Access the desired joint quantity if provided; otherwise, return the measured joint positions.
This pattern is commonly used to compute compatible commands for different robot firmwares.
| JointQuantity measured |
Measured joint positions.
Each value corresponds to a specific joint, with the angles measured in radians.
| std::optional<JointQuantity> desired |
Desired joint positions.
If not specified, the robot firmware typically uses the measured joint positions. They may deviate from the commanded ones to satisfy constraints or to incorporate additional information available to the firmware.
| std::optional<JointQuantity> commanded |
Commanded joint positions.
If not provided, the robot firmware typically uses the measured joint positions instead.