Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The rosbag record problem #345

Closed
sunmiaobo opened this issue Dec 12, 2018 · 5 comments
Closed

The rosbag record problem #345

sunmiaobo opened this issue Dec 12, 2018 · 5 comments
Assignees

Comments

@sunmiaobo
Copy link

Hi author,
I used ros to record those three topic zed/right/image_raw_color,zed/left/image_raw_color and zed/imu/raw_data.The terminal showed "buffsize exceeded".
Firstly, I try to use all the momory to record the three topic,but the 16GB memory can't support the 10 mins.
Secondly,I used the topic_tools throttle message to set the the right and left topics' publishing frequency .About 10 hz the ros can deal the message which buffer don't exceed.
I want to get the the right camera ,left camera and imus' synchronization time data .How can I get those.
buffer exceeded
buffersize 0
memory

@Myzhar
Copy link
Member

Myzhar commented Dec 12, 2018

Hi,
please give us more information about your system (Nvidia Jetson, PC Desktop, Laptop, ecc).

Meanwhile you can read more on this old issue:
#333

@sunmiaobo
Copy link
Author

I use Thinkpad laptop T480.
2018-12-12 20-52-22
And PC Desktop
2018-12-12 20-55-54
The laptop is installed the cuda 10 and the Desktop is installed the cuda 9.Both of them installed the Ubuntu 16.04 and Ros kinetic.

@AdamPengG
Copy link

Hi Myzhar,
Would I redefine and summarize my questions.
I used rosbag to record those three topic zed/right/image_raw_color,zed/left/image_raw_color and zed/imu/raw_data.The terminal showed "buffsize exceeded".Pic 1 shows that.
Firstly, I try the ros commond "rosbag record -o zed zed/right/image_raw_color,zed/left/image_raw_color and zed/imu/raw_data --buffsize=0 " use all the momory to record the three topic,but the 16GB memory can't support the 10 mins.When I record 3 topics the Desktop's memory reduce fast.
As the Pic 2 and Pic 3 shows.
Secondly,I used the topic_tools throttle message to set the the right camera raw pic and left camera raw pic topics' publishing frequency.I have tried the 25Hz,20Hz,15Hz and 10Hz.And about 10 Hz the ros can deal the message which buffer don't exceed.
I will show you my Laptop's and Desktop's Configuration.Pic 4 is Laptop Pic 5 is Desktop.
1
2
3
4
5

@Myzhar
Copy link
Member

Myzhar commented Dec 14, 2018

Please stop opening new issues

@Myzhar Myzhar closed this as completed Dec 14, 2018
@hanzheteng
Copy link

@sunmiaobo @AdamPengG From my guess, the issue is that your local disk cannot offer fast enough writing speed. (probably not SSD?)

Given the current computer configuration, The walk around solutions could be 1) reduce the resolution of camera frame, 2) reduce the frame rate, or 3) reduce the number of topics to be recorded at the same time. The main objective here is to reduce the throughput to be written on your disk.

Another walkaround could be using rosbag record -b 2048 <topic name> to extend the buffer size. However, this can only make the warning happen later (probably double the amount of time) but cannot fix the problem. Also, you have to wait for a while after you terminate the rosbag command, and make sure the xxx.bag.active file has been turned into xxx.bag file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

4 participants