0
$\begingroup$

Rosanswers logo

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)


Originally posted by Kansai on ROS Answers with karma: 170 on 2021-03-26

Post score: 0

$\endgroup$

1 Answer 1

0
$\begingroup$

Rosanswers logo

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>

Originally posted by Kansai with karma: 170 on 2021-03-26

This answer was ACCEPTED on the original site

Post score: 1

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.