robot_msg_viz

Robot state

The question it answers

What is the robot doing right now, and is anything unhealthy? A live page: the URDF arm moved by the JointState with its wrist wrench, the joints, efforts and base IMU over time, and apart from them the health: a lane per component, drive temperatures and the warnings.

robot state · a dashboard from robot_dashboards

Viewers RerunFoxglove · roadmapViser · roadmapStatic HTML report · roadmap

Takes (adapters) robot_msgsros2

Its code on GitHub

Download .rrd1.1 MB

Sample data: robot_state.rrd (1.1 MB), 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_dashboards as dash

with dash.stream("robot_state") as live:
    for t, state, wrench, imu in robot.read():          # e.g. 25-500 Hz
        live.log(t=t, joint_state=state, wrench=wrench, imu=imu)
        if t >= next_health:                            # e.g. 1 Hz
            live.log(t=t, servos=drives.read(), diagnostics=monitor.records())
            next_health += 1.0

JointStateWrenchImuServoStateDiagnosticRecord