RobotState#
rb::RobotState<T> is the live state snapshot delivered through
StartStateUpdate() or returned by GetState(). The page also covers the
smaller state records that appear inside the top-level snapshot.
Header
Header |
|
Declaration
Namespace |
|
Kind |
|
Primary role |
Represent the live measured state of the robot and its peripherals. |
Public Attributes
Field group |
Meaning |
Notes |
|---|---|---|
|
Host-level and battery-related status. |
Useful during bring-up and power diagnosis. |
|
Per-device and per-joint subsystem state. |
These are the main discrete device-status records. |
|
Tool-flange I/O and status. |
Present for both end-effectors. |
|
Force-torque sensor data. |
Includes freshness information in nested timestamp helpers. |
|
Main measured vectors. |
Aligned with the robot model’s joint ordering. |
|
Command targets tracked by the control loop. |
Useful when comparing request and measured output. |
|
Higher-level computed state and environment-related outputs. |
Often consumed by monitoring and model-based code. |
|
Readiness flag for command execution. |
Use alongside ControlManagerState. |
Units & Ranges
Field |
Unit / encoding |
Notes |
|---|---|---|
|
Absolute timestamp |
Captured as |
|
|
Host resource usage percentages. |
|
|
Elapsed uptime counters. |
|
|
Battery pack measurements and charge estimate. |
|
|
Supply voltage for one power-controlled device. |
|
Elapsed time |
Freshness durations stored as |
|
|
Joint-space positions in model order. |
|
|
Joint-space velocity values in model order. |
|
|
Joint motor currents. |
|
|
Measured torque, feedforward torque, and gravity term are all reported in joint torque units. |
|
Dimensionless |
Public headers document the per-joint target gain range as |
|
|
Joint temperatures are stored as integers. |
|
|
End-effector IMU and output-rail measurements. |
|
|
Three-axis force and torque vectors. |
|
|
Homogeneous planar pose. Translation terms are in meters and heading is encoded in the rotation block. |
|
|
Center-of-mass position expressed in the base frame. |
|
|
|
Detailed Reference
-
template<typename T>
struct RobotState# Public Members
-
BatteryState battery_state = {}#
-
Eigen::Vector<double, 3> center_of_mass#
-
std::vector<dyn::CollisionResult> collisions#
-
FTSensorData ft_sensor_left#
-
FTSensorData ft_sensor_right#
-
std::array<JointState, T::kRobotDOF> joint_states = {}#
-
math::SE2::MatrixType odometry = {math::SE2::Identity()}#
-
std::vector<PowerState> power_states = {}#
-
SystemStat system_stat = {}#
-
Eigen::Vector<uint32_t, T::kRobotDOF> target_feedback_gain = {Eigen::Vector<uint32_t, T::kRobotDOF>::Zero()}#
-
Eigen::Vector<double, T::kRobotDOF> target_feedforward_torque = {Eigen::Vector<double, T::kRobotDOF>::Zero()}#
-
Eigen::Vector<double, T::kRobotDOF> target_position = {Eigen::Vector<double, T::kRobotDOF>::Zero()}#
-
Eigen::Vector<double, T::kRobotDOF> target_velocity = {Eigen::Vector<double, T::kRobotDOF>::Zero()}#
-
ToolFlangeState tool_flange_left#
-
ToolFlangeState tool_flange_right#
-
struct timestamp#
-
BatteryState battery_state = {}#
-
struct SystemStat#
-
struct BatteryState#
-
struct PowerState#
Public Types
-
struct EMOState#
-
struct JointState#
Public Types
Public Members
-
double current = {0.}#
-
InitializationState init_state = {InitializationState::kUnknown}#
-
bool is_ready = {false}#
-
uint64_t motor_state = {}#
-
uint32_t motor_type = {}#
-
double position = {0.}#
-
bool power_on = {false}#
-
uint32_t target_feedback_gain = {10}#
-
double target_feedforward_torque = {0.}#
-
double target_position = {0.}#
-
double target_velocity = {0.}#
-
int temperature = {}#
-
double torque = {0.}#
-
double velocity = {0.}#
-
struct time_since_last_update#
-
double current = {0.}#
-
struct ToolFlangeState#
Public Members
-
Eigen::Vector<double, 3> acceleration#
-
bool digital_input_A = {}#
-
bool digital_input_B = {}#
-
bool digital_output_A = {}#
-
bool digital_output_B = {}#
-
Eigen::Vector<double, 3> gyro#
-
int output_voltage#
-
bool switch_A = {}#
-
struct time_since_last_update#
-
Eigen::Vector<double, 3> acceleration#
Related Types
Examples
get_robot_state.cppandget_robot_state2.cppare the most direct examples for this page.