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

How do you start to play a bag paused?

asked 2021-03-26 06:57:40 -0500

Kansai gravatar image

I am playing a rosbag through a launch file (that also contains a python script and rviz) and it works fine.

However, rosbag play starts to run after some time (of course). I can pause it by pressing the space bar and reinitiate again. Great.

My question is, is there a way to specify that the playing of the rosbag should start paused? (and wait for my space bar pressing)

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2021-03-26 07:48:42 -0500

Kansai gravatar image

Found the answer!

use --pause

<launch>
   <node pkg="rosbag" type="play" name="rosbag_play" output="screen" required="true"
         args="--pause /opt/robomaker/datasources/mybaggroup_1/myS3prefix/log_0.bag"/>
</launch>
edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2021-03-26 06:57:40 -0500

Seen: 939 times

Last updated: Mar 26 '21