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

rosbag keyboard controls unresponsive

asked 2011-05-27 14:42:05 -0500

mkoval gravatar image

I have been using rosbag play to test some CPU-intensive computer vision algorithms on recorded data. Periodically during playback the command-line interface to rosbag play becomes completely unresponsive: the timer stops counting and it is no longer responsive to keyboard controls. Messages are still being published while it is unresponsive (verified with rostopic hz and image_view). If I play the same data back without the CPU-intensive nodes running, everything is fine.

Stepping through the data is important for evaluating my nodes, so this has been very frustrating. Has anyone found a workaround for this problem?

edit retag flag offensive close merge delete

Comments

Im getting the same behavior, but I have noticed that (for me at least), /clock is no longer being published, even though the actual data messages are. Since /clock is so important, I am a bit surprised at this.
phil0stine gravatar image phil0stine  ( 2012-01-25 09:55:31 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
3

answered 2011-05-28 04:42:12 -0500

Hi,

I will offer some observations I made when I was playing back and processing bags with Kinect data, which may or may not fix your issue.

First, try tweaking the --rate and --queue parameters.

Second, try loading the bag using rxbag, and playing it from there, instead of the command line. Using rxbag, I was able to get better system performance than rosbag play. Also I think it gives you better control over the playback - like starting at specific times or stepping through frame by frame.

Hope this helps,

Ivan

edit flag offensive delete link more

Comments

Using the --rate options with a fractional rate fixed the problem. Thanks!
mkoval gravatar image mkoval  ( 2011-05-28 08:54:33 -0500 )edit

Question Tools

Stats

Asked: 2011-05-27 14:42:05 -0500

Seen: 556 times

Last updated: May 28 '11