-
Notifications
You must be signed in to change notification settings - Fork 99
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
Better bridge bagger #708
Better bridge bagger #708
Conversation
Signed-off-by: Nate Koenig <nate@openrobotics.org>
Signed-off-by: Nate Koenig <nate@openrobotics.org>
Signed-off-by: Nate Koenig <nate@openrobotics.org>
Build finished. 15 tests run, 0 skipped, 0 failed. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
rosbag::RecorderOptions recorderOptions; | ||
recorderOptions.append_date=false; | ||
recorderOptions.split=true; | ||
recorderOptions.max_splits=1; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Before it was 2 :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, please don't make the logs smaller, thanks.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The previous implementation was incorrect. According to the API, up to 2 GB across 2 log files should be recorded. This equates to 1 split, which allows 2 log files.
This PR will produce up two 2 bag files, each with a maximum of 1GB.
Signed-off-by: Nate Koenig <nate@openrobotics.org>
Build finished. 15 tests run, 0 skipped, 0 failed. |
This moves rosbag from launch into the SubtRosRelay node so that the bag file can be shutdown on
finish
. This switch makes sure that the bag file ends cleanly on Cloudsim.