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

Better bridge bagger #708

Merged
merged 4 commits into from
Nov 24, 2020
Merged

Better bridge bagger #708

merged 4 commits into from
Nov 24, 2020

Conversation

nkoenig
Copy link
Contributor

@nkoenig nkoenig commented Nov 19, 2020

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.

Nate Koenig added 3 commits November 17, 2020 11:03
Signed-off-by: Nate Koenig <nate@openrobotics.org>
Signed-off-by: Nate Koenig <nate@openrobotics.org>
Signed-off-by: Nate Koenig <nate@openrobotics.org>
@nkoenig nkoenig requested a review from mjcarroll November 19, 2020 17:05
@osrf-jenkins
Copy link

Build finished. 15 tests run, 0 skipped, 0 failed.

Copy link
Contributor

@mjcarroll mjcarroll left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

subt_ros/launch/competition_init.launch Outdated Show resolved Hide resolved
rosbag::RecorderOptions recorderOptions;
recorderOptions.append_date=false;
recorderOptions.split=true;
recorderOptions.max_splits=1;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Before it was 2 :)

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.

Copy link
Contributor Author

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>
@osrf-jenkins
Copy link

Build finished. 15 tests run, 0 skipped, 0 failed.

@nkoenig nkoenig merged commit a92da26 into master Nov 24, 2020
@mjcarroll mjcarroll deleted the better_bridge_bagger branch November 30, 2020 18:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants