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

rosbag recording pointclouds

asked 2011-09-30 01:59:31 -0600

kang gravatar image

updated 2012-01-05 05:14:03 -0600

tfoote gravatar image

Hi, I am using rosbag in rosdiamonback for recording pointcoulds sequences (video). So far, I feel it could not provide smooth running video, there is always lagging or even lost on some frames. While recording on images give nice smooth video from frame to frame, at least no obvious lost frames. I am wondering if it is the problem from the rosbag itself for pointclouds recording or I am missing something.

If someone has alternative solution for pointcloud sequences recording, pls let me know.

Best, Kang

edit retag flag offensive close merge delete

Comments

Are you recording on the same machine in which the video is taken?
DimitriProsser gravatar image DimitriProsser  ( 2011-09-30 02:08:29 -0600 )edit
yes. Btw, I check using rosinfo and notice there is no much lost frames. It's still between 25-30 frames/s. But, when viewing with rosbag play on rviz, it looks there's a lot of frames lost.
kang gravatar image kang  ( 2011-10-02 20:50:42 -0600 )edit

2 Answers

Sort by ยป oldest newest most voted
3

answered 2011-10-03 23:27:51 -0600

Pointclouds are extremely demanding in terms of bandwidth and space usage. I am surprised to see that you are recording at full frame rate. Unless you really have a fast computer (at least an I7 processor) you will have problems running rosbag play on a pointcloud bag and rviz on the same machine.

You should have a look at various pointcloud compress packages, for example:

As a rule of thumb, always try to save the pointcloud from the same computer it is producing it, and load it from the same computer it is processing it.

edit flag offensive delete link more

Comments

Hi, thanks for comment. I did some experiments and recording again. Now, I am still not sure where the problem the problem exists, whether when recording or when playing. using rosinfo, I got AVERAGE frame/s can be 20frames/s. While playing I notice the frequency of frame/s is not stable.
kang gravatar image kang  ( 2011-10-11 02:04:35 -0600 )edit
Regarding the two compress packages you mention, could you pls tell a little more what they do (or maybe link) since the links doon't provide any information.
kang gravatar image kang  ( 2011-10-11 02:05:37 -0600 )edit
I only know the second package, as I co-develop it. The source code is very short and readable. There are two scripts: compress.py takes a /camera/depth/points2 message, compresses it and outputs a message on '/camera/depth/points2_compressed'. decompress.py does the opposite.
Lorenzo Riano gravatar image Lorenzo Riano  ( 2011-10-11 02:35:30 -0600 )edit

Neither seem to be part of ROS anymore (at least they are not indexed and the provided links don't work). Any advice what to do using a newer version of ROS (mine is Indigo)?

rbaleksandar gravatar image rbaleksandar  ( 2015-08-14 11:03:36 -0600 )edit
0

answered 2011-09-30 03:13:04 -0600

joq gravatar image

Tools like rostopic hz and rostopic bw are useful for determining how quickly your device is publishing data. If the bandwidth is too high, your system may be having trouble storing it fast enough.

You say the pointclouds are being recorded as video. With image_transport, compressed JPEG video can be recorded by appending /compressed to the topic name.

edit flag offensive delete link more

Comments

Thanks for the comment. What I meant with video here is sequences of pointclouds, not 2D sequences. Yes, one of the thing I suspect now is that my machine is too busy while storing.
kang gravatar image kang  ( 2011-09-30 03:32:52 -0600 )edit

Question Tools

1 follower

Stats

Asked: 2011-09-30 01:59:31 -0600

Seen: 2,529 times

Last updated: Jan 05 '12