Skip to Content
Learning Robotics using Python - Second Edition
book

Learning Robotics using Python - Second Edition

by Lentin Joseph
June 2018
Beginner to intermediate
280 pages
6h 58m
English
Packt Publishing
Content preview from Learning Robotics using Python - Second Edition

Creating a ROS package with OpenCV support

We can create a package called sample_opencv_pkg with the following dependencies: sensor_msgs, cv_bridge, rospy, and std_msgs. The sensor_msgs dependency defines ROS messages for commonly used sensors, including cameras and scanning-laser rangefinders. The cv_bridge dependency is the OpenCV interface of ROS.

The following command will create the ROS package with the aforementioned dependencies:

    $ catkin-create-pkg sample_opencv_pkg sensor_msgs cv_bridge  rospy std_msgs  

After creating the package, create a scripts folder inside the package; we will use it as a location in which to save the code that will be mentioned in the next section.

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

Learning Robotics using Python

Learning Robotics using Python

Lentin Joseph
Python Robotics Projects

Python Robotics Projects

Prof. Diwakar Vaish

Publisher Resources

ISBN: 9781788623315Supplemental Content