Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dheera/rosshow
Visualize ROS topics inside a terminal with Unicode/ASCII art
https://github.com/dheera/rosshow
Last synced: about 4 hours ago
JSON representation
Visualize ROS topics inside a terminal with Unicode/ASCII art
- Host: GitHub
- URL: https://github.com/dheera/rosshow
- Owner: dheera
- License: bsd-3-clause
- Created: 2017-05-06T00:24:02.000Z (over 7 years ago)
- Default Branch: main
- Last Pushed: 2024-06-21T05:22:00.000Z (6 months ago)
- Last Synced: 2024-11-21T05:02:15.518Z (22 days ago)
- Language: Python
- Homepage:
- Size: 2.89 MB
- Stars: 1,062
- Watchers: 23
- Forks: 89
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-ros-tools - rosshow - Displays various sensor messages in a useful fashion using Unicode Braille art in the terminal ![rosshow](https://img.shields.io/github/stars/dheera/rosshow.svg?style=flat&label=Star&maxAge=86400) (Visualization / Extracting data)
- awesome-robotic-tooling - rosshow - Visualize ROS topics inside a terminal with Unicode/ASCII art (Interaction / Command Line)
- awesome-robotic-tooling - rosshow - Visualize ROS topics inside a terminal with Unicode/ASCII art. (User Interaction / Command Line Interface)
README
# 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!
# Installation
Prerequisites:
```
sudo pip install numpy pillow requests
```This package works with both ROS1 and ROS2. You can add it to either a catkin (ROS1) or colcon (ROS2) workspace and it should work.
# Usage
If you installed it to the system:
```
rosshow
```If you're using it from a catkin or colcon workspace:
```
rosrun rosshow rosshow # ROS1
ros2 run rosshow rosshow # ROS2
```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
```
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 `screen`.
```
rosshow -c1
rosshow -c4
rosshow -c24
```# Screenshots
## sensor_msgs/PointCloud2
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.![screenshot](/screenshots/screenshot5.png?raw=true "screenshot")
## sensor_msgs/Image, sensor_msgs/CompressedImage
![screenshot](/screenshots/screenshot4.png?raw=true "screenshot")
## sensor_msgs/LaserScan
You can zoom with the +/- keys.
![screenshot](/screenshots/screenshot0.png?raw=true "screenshot")
## sensor_msgs/Imu
![screenshot](/screenshots/screenshot2.png?raw=true "screenshot")
## sensor_msgs/NavSatFix
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.
![screenshot](/screenshots/screenshot3.png?raw=true "screenshot")
The ASCII-only "-a" option works for all types. Here's what the NavSatFix message looks like on pure ASCII:
![screenshot](/screenshots/screenshot3-ascii.png?raw=true "screenshot")
## std_msgs/Int32, std_msgs/Float32, etc.
For most std_msgs numeric types you will get a time series plot.
![screenshot](/screenshots/screenshot6.png?raw=true "screenshot")
Neat trick: You can reduce your terminal font size to get slightly higher resolution. Here's a nav\_msgs/OccupancyGrid:
![screenshot](/screenshots/screenshot7.png?raw=true "screenshot")# Full list of supported types
### nav_msgs
* nav_msgs/OccupancyGrid
* nav_msgs/Odometry
* nav_msgs/Path### std_msgs
* std_msgs/Bool
* std_msgs/Float32
* std_msgs/Float64
* std_msgs/Int8
* std_msgs/Int16
* std_msgs/Int32
* std_msgs/Int64
* std_msgs/UInt8
* std_msgs/UInt16
* std_msgs/UInt32
* std_msgs/UInt64### sensor_msgs
* sensor_msgs/CompressedImage
* sensor_msgs/FluidPressure
* sensor_msgs/Illuminance
* sensor_msgs/Image
* sensor_msgs/Imu
* sensor_msgs/LaserScan
* sensor_msgs/NavSatFix
* sensor_msgs/PointCloud2
* sensor_msgs/Range
* sensor_msgs/RelativeHumidity
* sensor_msgs/Temperature