ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Revision history [back]

You also have to specify rosbag as a dependency of your package correctly. The first example package I found where this is done is https://github.com/ros-perception/perception_pcl/tree/hydro-devel/pcl_ros. Have a look at the package package.xml and CMakeLists.txt files, search for "rosbag" and add the analogous (basically the same) lines to your package.

Also have a look at the related catkin wiki pages.