Raw data of bag file is completely empty but seems full

asked 2018-02-20 06:46:42 -0500

anonymous user



Phone -> pointcloud2 -> laser_scan_matcher package -> topic android/imu and others

Making bag file:

Terminal 1: $ roscore Terminal 2: $ rostopic list -v: android/imu topic exists Terminal 2: $ rostopic echo /android/imu: not empty Terminal 2: $ rosbag record -a: record all

Looking at the rosbag:

Terminal 3: $rqt_bag > navigate to folder where bagfile is located, open bagfile.

/imu topic is filled with blue. Right click > view > Raw > completely empty.


I'm a novice. Why is /imu empty?

Provided: photo

image description

Additional infortmation

Ubuntu 16.04

Python 2.7


edit retag flag offensive close merge delete


rosbag play your bag from the command line and see if you can echo imu out of that. I think with rqt_bag you have to click forward or back arrows so the cursor will be on a message and not in-between them.

lucasw gravatar image lucasw  ( 2018-02-20 11:25:59 -0500 )edit

Nope. Nothing. I don't understand.

anonymous userAnonymous ( 2018-02-21 06:44:58 -0500 )edit

Check if all your bags are empty (check the other topics) and try recording only /imu topic.

Nico__ gravatar image Nico__  ( 2018-02-21 07:55:52 -0500 )edit

Update your question with the output of rosbag info your_bag_file

lucasw gravatar image lucasw  ( 2018-02-21 08:31:54 -0500 )edit