Skip to Content
Robot Operating System Cookbook
book

Robot Operating System Cookbook

by Kumar Bipin
June 2018
Intermediate to advanced
484 pages
11h 36m
English
Packt Publishing
Content preview from Robot Operating System Cookbook

How it works…

In this section, we will discuss program8 (refer to chapter4_tutorials/src/program8.cpp on GitHub), which implements a basic camera capture program using OpenCV and ROS binding to convert cv::Mat images into ROS image messages. This node publishes the image messages from camera frames in the /camera topic and enables us to display images coming from a camera on-the-fly. We will discuss more about source code and implementation in the upcoming chapter, or interested readers could refer to the online resources (https://docs.opencv.org/3.0-beta/modules/videoio/doc/reading_and_writing_video.html).

However, we can run the node using the launch file:

$ roslaunch chapter4_tutorials program8.launch

We can't use rostopic echo /camera ...

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

Mobile Intelligent Autonomous Systems

Mobile Intelligent Autonomous Systems

Jitendra R. Raol, Ajith K. Gopal
Wheeled Mobile Robotics

Wheeled Mobile Robotics

Gregor Klancar, Andrej Zdesar, Saso Blazic, Igor Skrjanc

Publisher Resources

ISBN: 9781783987443Supplemental Content