Ask Your Question
1

pause functionality in rosbag play?

asked 2012-02-29 06:26:40 -0500

rune gravatar image

The rosbag wiki says 'The main new feature being planned for rosbag is the addition of a ROS API for interacting with the playing and recording nodes via service calls.'... I was wondering what the status on this is? Will this be added any time soon?

At the moment I am running rosbag play through the roslaunch api, and I would like to have a way to pause/resume the playback through a GUI I have. Apparently, by running the rosbag application externally, you can press space to pause, but this does not really work for me. Any ideas how to do this? For instance like sending a 'space' input to the rosbag node...?

For the record I am using python at the moment.

edit retag flag offensive close merge delete

Comments

If anyone else is interested, as a temporary solution, I ended up spawning rosbag by using p = subprocess.Popen() and p.stdin.write(). This works, but a rosbag API would still be preferred :)

rune gravatar imagerune ( 2012-02-29 22:11:28 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
1

answered 2012-07-03 11:52:54 -0500

You could have a look how rxbag implements that. I believe they analyze the bag file and do play/stop themselves, but I'm not sure about that, I never used it.

Maybe it helps... :)

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

Stats

Asked: 2012-02-29 06:26:40 -0500

Seen: 2,171 times

Last updated: Jul 03 '12