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

clock option ignores delay #1858

Open
hayato-m126 opened this issue Nov 18, 2024 · 0 comments
Open

clock option ignores delay #1858

hayato-m126 opened this issue Nov 18, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@hayato-m126
Copy link

hayato-m126 commented Nov 18, 2024

Description

Even if delay option is specified, clock option ignores delay and publishes /clock.
Also, after the time of delay elapses, clock time returns to the start time of bag.

Expected Behavior

/clock is published after the delay time as well as the topic in the bag.

Actual Behavior

/clock is published ignoring delay

To Reproduce

  1. Prepare a bag file that does not contain /clock
  2. play bag with --clock and --delay
  3. echo /clock before delay time elapses

demo

# use bag in the sample dataset https://tier4.github.io/driving_log_replayer/quick_start/setup/
ros2 bag play input_bag --delay 10 --clock 200
# open another terminal
ros2 topic echo /clock
clock_ignores_delay.mp4

demo bag start Apr 5 2022 15:07:31.594430720 (1649138851.594430720)
clock 1649138851 -> 1649138861 -> 1649138851(start time)

clock_reverse_after_10sec.txt

System (please complete the following information)

  • OS: Ubuntu 22.04
  • ROS 2 Distro: humble
  • Install Method: APT
  • Version: ros-humble-rosbag2/jammy,now 0.15.12-1jammy.20240730.153849

Additional context

** Add any other context about the problem here **

@hayato-m126 hayato-m126 added the bug Something isn't working label Nov 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant