ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
The best way in general is to record the following:
/tf is not strictly required but helpful depending on the use case. The rosbag command is then:
rosbag record -O filename-prefix /tf /camera/rgb/image_color /camera/rgb/camera_info /camera/depth/image /camera/depth/camera_info
Have a look at the file launch/rgbdslam.launch. Use it as is, except if you want to omit color, change the first topic to /camera/rgb/image_mono
Play the bagfile:
rosbag play filename-prefix-some-date-string.bag
Have a look at the options (rosbag help play). Reducing the playback rate might help unless you have a really fast computer.
Alternatively, you can set the bagfile_name parameter (see the example config launchfile to your bagfile. Use an absolute path.
2 | No.2 Revision |
The best way in general is to record the following:
/tf is not strictly required but helpful depending on the use case. The rosbag command is then:
rosbag record -O filename-prefix /tf /camera/rgb/image_color /camera/rgb/camera_info /camera/depth/image /camera/depth/camera_info
I still use the openni_camera package to get the data, that would be:
roslaunch openni_camera openni_node.launch
Have a look at the file launch/rgbdslam.launch. Use it as is, except if you want to omit color, If necessary adapt to your choice of grayscale image: change the first topic parameter to /camera/rgb/image_mono
Play the bagfile:bagfile (but stop the openni_node first):
rosbag play filename-prefix-some-date-string.bag
Have a look at the options (rosbag help play). Reducing the playback rate might help unless you have a really fast computer.
Alternatively, you can set the bagfile_name parameter (see the example config launchfile to your bagfile. Use an absolute path.
Then run rgbdslam from the (adapted) launch file
roslaunch rgbdslam rgbdslam.launch