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.
velocity (optional)float64Joint velocity. Rad/s for revolute joints, m/s for prismatic joints.
acceleration (optional)float64Joint acceleration. Rad/s² for revolute joints, m/s² for prismatic joints.
effort (optional)float64Joint effort (force or torque). Nm for revolute joints, N for prismatic joints.

Reference implementations

Foxglove messages 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.