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

Add bagfile splitting support to storage_options and Writer #182

Merged

Conversation

zmichaels11
Copy link
Contributor

@zmichaels11 zmichaels11 commented Oct 17, 2019

Refactored changes in PR #171
This is part of an effort to rework PR #158 into multiple, smaller PRs.

Changes

  • Add max_bagfile_size to storage_options. This is used to indicate when a bagfile should be split. A default value of 0 indicates no splitting.
  • Add function should_split_bagfile to Writer. This will be used by Writer to determine when a bagfile should be split.

Issues

  • ros-security/aws-roadmap#11

Copy link
Contributor

@piraka9011 piraka9011 left a comment

Choose a reason for hiding this comment

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

LGTM!

Note to add should_split_bagfile as a mocked method to the unit tests. (You probably already did that).

@zmichaels11
Copy link
Contributor Author

zmichaels11 commented Oct 17, 2019

@Karsten1987
also see PR #183 #184 #185

Copy link
Contributor

@thomas-moulard thomas-moulard left a comment

Choose a reason for hiding this comment

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

Could the new function be private or protected, if yes -> move to private, if no -> it needs a test.

rosbag2/include/rosbag2/writer.hpp Outdated Show resolved Hide resolved
Copy link
Collaborator

@Karsten1987 Karsten1987 left a comment

Choose a reason for hiding this comment

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

a few nitpicks on top of thomas' comments.

rosbag2/include/rosbag2/writer.hpp Outdated Show resolved Hide resolved
rosbag2/include/rosbag2/storage_options.hpp Show resolved Hide resolved
rosbag2/src/rosbag2/writer.cpp Show resolved Hide resolved
@Karsten1987
Copy link
Collaborator

This PR has to be rebased on top of master.

Signed-off-by: Zachary Michaels <zmichaels11@gmail.com>
Signed-off-by: Zachary Michaels <zmichaels11@gmail.com>
Signed-off-by: Zachary Michaels <zmichaels11@gmail.com>
Signed-off-by: Zachary Michaels <zmichaels11@gmail.com>
Signed-off-by: Zachary Michaels <zmichaels11@gmail.com>
@zmichaels11 zmichaels11 force-pushed the splitting/storage-options-changes branch from d0f240a to f995257 Compare October 21, 2019 15:18
@zmichaels11
Copy link
Contributor Author

@Karsten1987 rebased

@Karsten1987
Copy link
Collaborator

  • Linux Build Status
  • Linux-aarch64 Build Status
  • macOS Build Status
  • Windows Build Status

This should fix the issue on Windows

Signed-off-by: Zachary Michaels <zmichaels11@gmail.com>
@Karsten1987
Copy link
Collaborator

new round of MS CI:
Build Status

@zmichaels11
Copy link
Contributor Author

new round of MS CI:
Build Status

we did it!

Copy link
Collaborator

@Karsten1987 Karsten1987 left a comment

Choose a reason for hiding this comment

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

this looks good to me. Just a little nitpick about naming convention.

rosbag2/include/rosbag2/writer.hpp Outdated Show resolved Hide resolved
Signed-off-by: Zachary Michaels <zmichaels11@gmail.com>
@Karsten1987 Karsten1987 merged commit d659129 into ros2:master Oct 21, 2019
@Karsten1987
Copy link
Collaborator

thanks for iterating with me over this.

@zmichaels11 zmichaels11 deleted the splitting/storage-options-changes branch October 21, 2019 18:25
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.

None yet

4 participants