IMU Display
PRORoll, pitch and yaw readout
When to reach for it
IMU Display renders roll and pitch as an artificial horizon from a sensor_msgs/msg/Imu topic (odometry and pose topics work too), plus an optional raw roll, pitch, yaw readout. That is the default Ball style; Style also offers a full-card horizon, bars, three dials or pixel bars, which show yaw from 0 to 360. Use it on aerial robots and gimbal rigs, anywhere attitude, not just heading, is what matters. For heading alone, use Compass. For a full position and orientation readout, use Pose Display (Pro).
Worked example: a MAVROS flight controller
Point Topic at /mavros/imu/data (sensor_msgs/msg/Imu) on a MAVROS-bridged flight controller. Keep Style on Ball, where Display and Show Raw Euler Values live. Set Display to Horizon + Values and leave Show Raw Euler Values on so roll, pitch, and yaw print below the dial during a disturbance test. Switch Sky Color and Ground Color to the Aviation options for a cockpit-familiar read; Horizon uses them too.
Watch out for
- In the Ball style at 1x1 size, both width and height under 140px, the widget always shows the horizon regardless of Display: Values Only will not hide it there, there is no room for the numeric layout.
- Quaternion-to-Euler conversion loses information at pitch of plus or minus 90 degrees, gimbal lock. If yaw turns erratic near vertical, trust the quaternion: the displayed Euler is the artifact.
- Max Message Rate (Hz)defaults to 10, whatever the IMU's real publish rate. Fine for the dial, too coarse if you are chasing fast oscillation in the raw numbers: raise it, up to 60.
Configuration fields
An IMU (sensor_msgs/msg/Imu), odometry or pose topic that reports orientation.
On a nav_msgs/msg/Odometry, geometry_msgs/msg/PoseStamped or PoseWithCovarianceStamped topic, the orientation is read from the pose.
Messages per second this widget takes from the topic. Lower saves data, higher shows more.
0.1 to 60, step 0.1How the attitude is drawn: a ball with the values under it, a full-card horizon, bars, three dials, or pixel bars. Every style except Ball shows yaw from 0 to 360.
Every style draws the same roll, pitch and yaw in the Angle Unit you pick, yaw in gold. Ball is the default; Display and Show Raw Euler Values change Ball only, Sky Color and Ground Color change Ball and Horizon.
What to show: an artificial-horizon dial, the numeric values, or both.
Color of the sky half of the artificial horizon.
Color of the ground half of the artificial horizon.
Show the raw roll, pitch and yaw numbers alongside the dial.
Units for the orientation readout.