Skip to Content
ROS Programming: Building Powerful Robots
book

ROS Programming: Building Powerful Robots

by Anil Mahtani, Luis Sanchez, Enrique Fernandez, Aaron Martinez, Lentin Joseph
March 2018
Intermediate to advanced content levelIntermediate to advanced
1396 pages
42h 14m
English
Packt Publishing
Content preview from ROS Programming: Building Powerful Robots

Visualizing a single image

We cannot use rostopic echo /camera because, as it's an image, the amount of information in plain text would be huge and not human-readable. Hence, we are going to use the following command:

    $ rosrun image_view image_view image:=/camera
  

This is the image_view node, which shows the images in the given topic (the image argument) in a window. This way, we can visualize every image or frame published in a topic in a very simple and flexible manner-even over a network. If you press the right button of your mouse in the window, you can save the current frame in the disk, usually in your home directory, or ~/.ros.

ROS Kinetic also has rqt_image_view, which supports viewing multiple images in a single window but does ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Programming Robots with ROS

Programming Robots with ROS

Morgan Quigley, Brian Gerkey, William D. Smart
Machine Learning Design Patterns

Machine Learning Design Patterns

Valliappa Lakshmanan, Sara Robinson, Michael Munn

Publisher Resources

ISBN: 9781788627436Supplemental Content