Skip to content

Commit

Permalink
Modfiy description of delay
Browse files Browse the repository at this point in the history
Signed-off-by: kosuke55 <[email protected]>
  • Loading branch information
kosuke55 committed Jul 2, 2021
1 parent 5383a5e commit f7d5d60
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion ros2bag/ros2bag/verb/play.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ def add_arguments(self, parser, cli_name): # noqa: D102
'Value must be positive. Defaults to not publishing.')
parser.add_argument(
'-d', '--delay', type=float, default=0.0,
help='Sleep SEC seconds after play. Valid range > 0.0')
help='Sleep SEC seconds before play. Valid range > 0.0')

def main(self, *, args): # noqa: D102
qos_profile_overrides = {} # Specify a valid default
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ struct PlayOptions
// 0 (or negative) means that no publisher will be created
double clock_publish_frequency = 0.0;

// Sleep SEC seconds after play. Valid range > 0.0.
// Sleep SEC seconds before play. Valid range > 0.0.
float delay = 0.0;
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ TEST_F(PlayerTestFixture, playing_respects_delay)

float delay_margin = 1.0;

// Sleep 5.0 seconds after play
// Sleep 5.0 seconds before play
{
play_options_.delay = 5.0;
std::chrono::duration<float> delay(play_options_.delay);
Expand Down

0 comments on commit f7d5d60

Please sign in to comment.