Skip to content

doc: Added warning to not instantiate Clock directly with RCL_ROS_TIME (backport #2768)#2769

Merged
christophebedard merged 1 commit intojazzyfrom
mergify/bp/jazzy/pr-2768
Mar 15, 2025
Merged

doc: Added warning to not instantiate Clock directly with RCL_ROS_TIME (backport #2768)#2769
christophebedard merged 1 commit intojazzyfrom
mergify/bp/jazzy/pr-2768

Conversation

@mergify
Copy link
Copy Markdown
Contributor

@mergify mergify bot commented Mar 14, 2025

If one instantiates a clock with RCL_ROS_TIME one needs to make sure, to attach a valid time source, or the clock will fall back to system time, which is highly unexpected for users of the clock.


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

#2768)

Signed-off-by: Janosch Machowinski <J.Machowinski@cellumation.com>
Signed-off-by: Janosch Machowinski <jmachowinski@users.noreply.github.com>
Co-authored-by: Janosch Machowinski <J.Machowinski@cellumation.com>
Co-authored-by: Tomoya Fujita <Tomoya.Fujita@sony.com>
(cherry picked from commit 30e61c9)
@fujitatomoya
Copy link
Copy Markdown
Collaborator

Pulls: #2769
Gist: https://gist.githubusercontent.com/fujitatomoya/ad0835c8efae21b243bbaeb9487aa8a1/raw/bb96219e3547ee1d954d93a4b8bd86be5a91e56a/ros2.repos
BUILD args: --packages-up-to rclcpp
TEST args: --packages-select rclcpp
ROS Distro: jazzy
Job: ci_launcher
ci_launcher ran: https://ci.ros2.org/job/ci_launcher/15399

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

@christophebedard christophebedard merged commit 6d586d1 into jazzy Mar 15, 2025
2 checks passed
jplapp pushed a commit to pixel-robotics/rclcpp that referenced this pull request Apr 9, 2025
ros2#2768) (ros2#2769)

Signed-off-by: Janosch Machowinski <J.Machowinski@cellumation.com>
Signed-off-by: Janosch Machowinski <jmachowinski@users.noreply.github.com>
Co-authored-by: Janosch Machowinski <J.Machowinski@cellumation.com>
Co-authored-by: Tomoya Fujita <Tomoya.Fujita@sony.com>
(cherry picked from commit 30e61c9)

Co-authored-by: Janosch Machowinski <jmachowinski@users.noreply.github.com>
@MichaelOrlov MichaelOrlov deleted the mergify/bp/jazzy/pr-2768 branch July 29, 2025 17:53
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