Skip to content

Allow adding time-stamp to the custom output name #1910

@PfeifferMicha

Description

@PfeifferMicha

Description

When giving a bag name via -o or --output the time-stamp is no longer added to the output folder name. I'd like to be able to write bags that have both a custom name and a time-stamp.
I frequently record multiple bags where I want the custom name to be the same except for the added timestamp. Example:

  • calibration_data_2025_02_11-09_01_53
  • calibration_data_2025_02_11-09_10_30

Completion Criteria

  • implement --prefix for rolling
  • back-port to jazzy
  • back-port to humble

Implementation Notes / Suggestions

I see three options:

  1. Always append the time-stamp when -o is used, unless --no-time-stamp is specified
  2. Add the time-stamp when -o is given and --time-stamp is specified
  3. Add a new --prefix PREFIX (mutually exclusive with -o) option which turns the folder name into PREFIX_timestamp

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestwontfixThis will not be worked on

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions