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

Revision history [back]

The filter statement is just python, so you can do

rosbag filter old_bag.bag new_bag.bag "topic == '/stereo/left/image_rect' or topic == '/stereo/right/image_rect' or topic == '/stereo/left/camera_info' or topic == '/stereo/right/camera_info'"

The filter statement is just python, so you can do

rosbag filter old_bag.bag new_bag.bag "topic == '/stereo/left/image_rect' or topic == '/stereo/right/image_rect' or topic == '/stereo/left/camera_info'  or topic ==  '/stereo/right/camera_info'"

'/stereo/right/camera_info'"

The filter statement is just python, so you can do

rosbag filter old_bag.bag new_bag.bag "topic == '/stereo/left/image_rect' or topic == '/stereo/right/image_rect' or topic == '/stereo/left/camera_info'  or topic ==  '/stereo/right/camera_info'"

The filter statement is just python, so you can do use or:

rosbag filter old_bag.bag new_bag.bag "topic == '/stereo/left/image_rect' or topic == '/stereo/right/image_rect' or topic == '/stereo/left/camera_info' or topic ==  '/stereo/right/camera_info'"