robot_msg_viz

JointState

Each joint's position (deg), velocity (deg/s) and effort over time, one colour per joint, and a labelled bar per joint showing where it is now.

robot_msgs.sensor.JointState · its fields and functions on robotmsgs.com

Download .rrd275 KB

Sample data: sensor-JointState.rrd (275 KB), a recording over time: drag the timeline at the bottom to scrub it. The layout (a Rerun blueprint) is inside the file.

Use it in your code

import robot_msg_viz as viz

# live: opens the viewer; time comes from each message's header.stamp
with viz.stream("arm") as live:
    for state in joint_states:  # your robot_msgs.sensor.JointState messages
        live.log(state)

# or a file, t in seconds (open it with: rerun arm.rrd)
viz.save_series("arm.rrd", [(i / 25.0, state) for i, state in enumerate(joint_states)])

Robot state