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

[jazzy] Publish clock after delay is over and disable delay on next loops (backport #1861) #1878

Merged
merged 1 commit into from
Dec 8, 2024

Conversation

mergify[bot]
Copy link

@mergify mergify bot commented Dec 7, 2024

clock_publish_timer is now initialized with autostart = false, so it doesn't immediately start publishing the /clock topic. It is "activated" later with clock_publish_timer->reset() at the beginning of the playback thread, ensuring that the (optional) user-defined delay period has passed.

Additionally, the clock_ now starts in a paused state if a delay time is specified by the user. It resumes after the delay period has ended.


This is an automatic backport of pull request #1861 done by Mergify.

)

* publish clock after the delay is over

Signed-off-by: Nicola Loi <[email protected]>

* Disable delay period in subsequent loops (ros2 bag play)

Signed-off-by: Nicola Loi <[email protected]>

* Reset clock publisher timer outisde playback loop

Signed-off-by: Nicola Loi <[email protected]>

* review

Signed-off-by: Nicola Loi <[email protected]>

---------

Signed-off-by: Nicola Loi <[email protected]>
(cherry picked from commit 15b8260)
@mergify mergify bot requested a review from a team as a code owner December 7, 2024 22:56
@mergify mergify bot requested review from gbiggs and emersonknapp and removed request for a team December 7, 2024 22:56
@MichaelOrlov MichaelOrlov changed the title Publish clock after delay is over and disable delay on next loops (backport #1861) [jazzy] Publish clock after delay is over and disable delay on next loops (backport #1861) Dec 7, 2024
@MichaelOrlov
Copy link
Contributor

Pulls: #1878
Gist: https://gist.githubusercontent.com/MichaelOrlov/179a91f45579ac1f7d6db2e706a9cdea/raw/0a84d835e400c2018984aaf79423a727baf1b30f/ros2.repos
BUILD args: --packages-above-and-dependencies ros2bag rosbag2_transport
TEST args: --packages-above ros2bag rosbag2_transport
ROS Distro: jazzy
Job: ci_launcher
ci_launcher ran: https://ci.ros2.org/job/ci_launcher/14917

  • Linux Build Status
  • Linux-aarch64 Build Status
  • Linux-rhel Build Status
  • Windows Build Status

@fujitatomoya fujitatomoya merged commit cfd35ce into jazzy Dec 8, 2024
12 checks passed
@MichaelOrlov MichaelOrlov deleted the mergify/bp/jazzy/pr-1861 branch December 8, 2024 06:51
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.

3 participants