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

rosbag2 doesn't write meta data file

asked 2022-03-17 12:42:25 -0500

thejeeb gravatar image

updated 2022-10-21 12:09:08 -0500

ljaniec gravatar image

I'm trying to record all topics to a bagfile with command ros2 bag record --all. It looks like it is recording data to a file. However, I cannot get it to write the metadata file. I try to stop the recording with Ctrl-C which looks like it stops writing data to the file but it hangs. I cannot stop the application with Ctrl-C and I have to force kill it with Ctrl-Z followed by a kill of the stopped job.

Maybe my workflow is incorrect, but it was my understanding that you use Ctr-C to stop recording. Here's the output when I first press Ctrl-C(and subsequently as well):

[INFO] [1647537069.563878134] [rclcpp] signal_handler(signum=2)

I am running on Ubuntu 20.04 with the latest rolling sync from Jan 28, 2022.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2022-10-21 09:29:42 -0500

alexdgus gravatar image

Try pressing the Enter key.

I had this same issue. Pressing Ctrl+C repeatedly did nothing for me. Hitting Enter seemed to give ROS the extra nudge it needed.

Edit: Turns out this was a known issue https://github.com/ros2/rosbag2/issue.... A fix is available in the latest Rolling release.

edit flag offensive delete link more

Question Tools

3 followers

Stats

Asked: 2022-03-17 12:42:25 -0500

Seen: 880 times

Last updated: Oct 21 '22