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

Triggering rosbag

asked 2013-10-17 11:23:44 -0500

Angelika gravatar image

Is there any way of triggering the recording of signals via rosbag with a signal made available as ROS topic? Typically rosbag takes quite a bit of time to subscribe to the different topics when being started. So is there any way of making sure rosbag starts recording exactly at the moment a trigger is send over one of the topics without additional delay for connecting to topics? We would need this functionality to synchronize the rosbag recording with recordings that can only be made outside of ROS.

edit retag flag offensive close merge delete

Comments

Not that I know of. Depending on how much data you need, you could just send a trigger message, record that also and then later filter the log file to only include messages after that.

dornhege gravatar image dornhege  ( 2013-10-17 12:20:14 -0500 )edit

There is also a C++ API to rosbag to create and log data programmatically. It may be of use in your case.

Thomas gravatar image Thomas  ( 2013-10-19 21:45:21 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2013-10-19 18:00:48 -0500

tfoote gravatar image

If you need to do specialized logging, you can use the rosbag API inside a custom node which can do the triggering and other custom logic.

edit flag offensive delete link more

Question Tools

Stats

Asked: 2013-10-17 11:23:44 -0500

Seen: 546 times

Last updated: Oct 19 '13