Ask Your Question
0

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

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

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

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 -0600

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

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

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

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

Seen: 165 times

Last updated: Jan 31