Visualizing the camera input images with rqt_image_view

In Chapter 3, Visualization and Debugging Tools, we explained how to visualize any image published in the ROS framework by using the image_view node of the image_view package or rqt_image_view. The following code encapsulates this discussion:

$ rosrun image_view image_view image:=/camera/image_raw

What is important here is the fact that by using the image transport, we can select different topics for viewing images using compressed formats if required. Also, in the case of stereo vision, as we will see later, we can use rqt rviz to see the point cloud obtained with the disparity image.

Get Effective Robotics Programming with ROS - Third Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.