rosshow: Visualize ROS topics in a terminal
Have you ever SSH'ed into a robot to debug whether sensors are outputting
what they should, e.g.
rostopic echo /camera/image_raw?
If so, rosshow is for you.
This displays various sensor messages in a useful fashion using Unicode Braille art in the terminal so you don't need to fire up port forwards, rviz, or any other shenanigans just to see if something is working. It currently only supports types from std_msgs and sensor_msgs but support for more types is coming. Contributions welcome!
sudo pip install numpy pillow requests
This package will install to your ROS bin directory, i.e. where other ROS binaries such as rostopic, rosnode, etc. are located. Or if you don't want to do that or don't have permissions, you can add it to your catkin workspace and run it using rosrun.
To install to the system:
source /opt/ros/<kinetic, melodic, noetic>/setup.bash ./configure-ros1 ./ros-install-this
If you installed it to the system:
If you're using it from a catkin workspace:
rosrun rosshow rosshow <topicname>
Most visualizations use Unicode Braille characters to render visualizations. If your terminal supports only ASCII, you can use the
-a option for a purely ASCII-art render:
rosshow -a <topicname>
You can also force 1-bit, 4-bit, or 24-bit color modes if your terminal type is not detected correctly. You may need these when using rosshow inside of a
rosshow -c1 <topicname> rosshow -c4 <topicname> rosshow -c24 <topicname>
You can rotate and tilt with the arrow keys, and zoom with the +/- keys. This has been tested with Velodyne data. PointClouds from devices that don't have "x", "y", and "z" fields are not supported.
You can zoom with the +/- keys.
The NavSatFix visualization fetches map tiles from OpenStreetMaps, so your machine or robot needs to have internet access to be able to view those. Otherwise, you'll still be able to see a trace of points.
The ASCII-only "-a" option works for all types. Here's what the NavSatFix message looks like on pure ASCII:
std_msgs/Int32, std_msgs/Float32, etc.
For most std_msgs numeric types you will get a time series plot.
Neat trick: You can reduce your terminal font size to get slightly higher resolution. Here's a nav_msgs/OccupancyGrid:
Full list of supported types