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

automatic playing of bag files

asked 2013-01-09 23:32:44 -0500

ubisum gravatar image

hello everyone
my question is simple: I have two bag files to be played in sequence. Is there a way (for example, a launch file) to make this sequential execution automatic without need to perform it manually from the shell? I want, in particular, first bag to be played. After end of playing, second bag must be executed. I can't use something like

rosbag play bag1.bag bag2.bag

since first bag has a timestamp whose year is 1970, so second bag cannot be played before 40 years are past...

thanks for support

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2013-01-09 23:43:29 -0500

dornhege gravatar image

What about:

rosbag play bag1.bag
rosbag play bag2.bag

in a shell script.

edit flag offensive delete link more

Question Tools


Asked: 2013-01-09 23:32:44 -0500

Seen: 70 times

Last updated: Jan 09 '13