June 2018
Beginner to intermediate
280 pages
6h 58m
English
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.