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

Revision history [back]

click to hide/show revision 1
initial version

AFAIK, rosbag does not implement such a feature.

However, you can easily take advantage of the Linux shell by running the following command:

$ rosbag play file_0.bag && rosbag play file_1.bag && rosbag play file_3.bag

The result will be a sequential execution of those 3 commands, provided the previous finished execution successfully. If you do not care about whether the previous command finished successfully, replace '&&' with ';'.

See this link for more info.

UPDATE: Tully's answer is the correct way of doing it, also because (after thinking more about my suggestion) the command below would result in a lag between playing one bag and starting to play the next one (which, from my experience, varies according to the size of the bag).


AFAIK, rosbag does not implement such a feature.

However, you can easily take advantage of the Linux shell by running the following command:

$ rosbag play file_0.bag && rosbag play file_1.bag && rosbag play file_3.bag

The result will be a sequential execution of those 3 commands, provided the previous finished execution successfully. If you do not care about whether the previous command finished successfully, replace '&&' with ';'.

See this link for more info.

UPDATE: Tully's answer is the correct way of doing it, also because (after thinking more about my suggestion) the command below would result in a lag between playing one bag and starting to play the next one (which, (lag which, from my experience, varies according to the size of the bag).


AFAIK, rosbag does not implement such a feature.

However, you can easily take advantage of the Linux shell by running the following command:

$ rosbag play file_0.bag && rosbag play file_1.bag && rosbag play file_3.bag

The result will be a sequential execution of those 3 commands, provided the previous finished execution successfully. If you do not care about whether the previous command finished successfully, replace '&&' with ';'.

See this link for more info.