This repository was archived by the owner on May 31, 2025. It is now read-only.
Repository navigation
Record a maximum number of splits and then begin deleting old files - #866
Merged
Merged
Conversation
| ("bz2,j", "use BZ2 compression") | ||
| ("lz4", "use LZ4 compression") | ||
| ("split", po::value<int>()->implicit_value(0), "Split the bag file and continue recording when maximum size or maximum duration reached.") | ||
| ("max-splits", po::value<int>()->default_value(0), "Split the bag file at most splits times, then begin erasing the oldest split to keep a constant number of files.") |
Member
There was a problem hiding this comment.
Since the new options isn't doing the actual splitting but limits the number of log files I would suggest a help text like this:
Keep a maximum of N bag files, when reaching the maximum erase the oldest one to keep a constant number of files.
The same / similar for the Python help string.
Member
|
This is a nice feature. The patch looks fine - I only commented inline on some minor things. |
contradict
force-pushed
the
rosbag_fixedsize
branch
from
August 13, 2016 21:59
527cc30 to
b38e80a
Compare
Member
|
Thank you for the patch and iterating on it. Please consider updating the wiki page to mention the new command line option (with |
Member
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This patch allows creating a fixed size recording of the most recent data. It add a --max-splits option to rosbag record. When --split is used, after max-splits files have been created, the oldest one is deleted so a fixed size (or fix duration if --duration is used) recording can be made.