Skip to main content

JointState

The state of a single joint (revolute or prismatic).

Parent schema

JointState appears in the JointStates message schema.

Schema

fieldtypedescription
namestringJoint name
position (optional)float64Joint position. Radians for revolute joints, meters for prismatic joints. Use NaN to indicate that the value is not present if the message definition does not support optional fields.
velocity (optional)float64Joint velocity. Rad/s for revolute joints, m/s for prismatic joints. Use NaN to indicate that the value is not present if the message definition does not support optional fields.
acceleration (optional)float64Joint acceleration. Rad/s² for revolute joints, m/s² for prismatic joints. Use NaN to indicate that the value is not present if the message definition does not support optional fields.
effort (optional)float64Joint effort (force or torque). Nm for revolute joints, N for prismatic joints. Use NaN to indicate that the value is not present if the message definition does not support optional fields.

Reference implementations

Foxglove schemas are framework-agnostic, and can be implemented using any supported message encoding:

encodingschema
ROS 1foxglove_msgs/JointState
ROS 2foxglove_msgs/msg/JointState
JSONfoxglove.JointState
Protobuffoxglove.JointState
FlatBuffersfoxglove.JointState
OMG IDLfoxglove::JointState

You must use the schema names specified above for Foxglove to recognize the schema.