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

How to save image topics of Full-HD size with ROSBag

asked 2019-01-31 08:04:50 -0500

harderthan gravatar image

updated 2019-01-31 18:22:37 -0500

Hello.

I'm trying to save image topic from Full-HD image camera. I ran my camera package on my pc. The publisher have 5 size of queue. I have used ImageTransport for publisher. the resolution of a image is 1920x1080. It is approximately 6 MB. And, It have 30 fps.

The throughput of result .bag file is not constant. The variation is 17~30. I tried to use some option for rosbag record like --buffsize, --chunksize. But there was no change for it. When I do that, the memory of RAM has continued to increase steadily.

I want to get images without throughput decrease. Is there any good solution or advise for me?


EDITED:

I saved images on the disk without communication using Ethernet.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2019-01-31 08:25:42 -0500

updated 2019-01-31 08:26:38 -0500

So the uncompressed image topic is 180 MB per second! If these are running as separate node then I think this will also be passing through the network adaptor, its no surprise that this is not running smoothly.

I think you will have to specify that rosbag only records the compressed image topic and not the raw topic to get this working reliably. See the rosbag command line parameteres here.

Hope this gets this working.

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2019-01-31 08:04:50 -0500

Seen: 879 times

Last updated: Jan 31 '19