Skip to content

Adjust moveit_servo clock to work with fake_hardware (backport #3529) - #3876

Open
130s wants to merge 2 commits into
moveit:jazzyfrom
130s:jazzy-backport-pr3529
Open

130s wants to merge 2 commits into
moveit:jazzyfrom
130s:jazzy-backport-pr3529

Conversation

@130s

@130s 130s commented Sep 25, 2026

Copy link
Copy Markdown
Contributor

Backport of #3529 to jazzy.

Original PR: #3529
Author: @Zarnack

Fixes issue #3040

Description

Resolves an initialization issue in moveit_servo when used with ros2_control mock/fake hardware components.

  • The planning scene monitor may use a different clock type (RCL_SYSTEM_TIME) than the servo node (RCL_ROS_TIME), causing timestamp comparison failures that prevented servo from starting properly with fake_hardware controllers.
  • Adds convertClockType() helper function to handle clock type conversions so freshness checks compare times consistently.

Checklist

  • Required by CI: Code is auto formatted

* fixed moveit_servo to work with fake_hardware (fixes issue moveit#3040)

The planning scene monitor may use a different clock type (e.g., system clock)
than the servo node (ROS clock), causing timestamp comparison failures that
prevented servo from starting properly with fake_hardware controllers.
--> Add convert_clock_type() helper function to handle clock type conversions

* Function naming

* Anonymous namespace

* Better comments

---------

Co-authored-by: sebastian zarnack <[email protected]>
Co-authored-by: AndyZe <[email protected]>
(cherry picked from commit 0dd551d)
@coderabbitai

coderabbitai Bot commented Sep 25, 2026 •

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 0d9c6767-b023-4f33-aaf8-15016de54fd8

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • Trigger review
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@mergify

mergify Bot commented Sep 25, 2026

Copy link
Copy Markdown

Please target the main branch for development, we will backport the changes to jazzy for you if approved and if they don't break API.

@130s
130s requested a review from pac48 September 25, 2026 15:36
@codecov

codecov Bot commented Sep 25, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 46.31%. Comparing base (aa64747) to head (09a1adb).

Additional details and impacted files
@@            Coverage Diff             @@
##            jazzy    #3876      +/-   ##
==========================================
+ Coverage   46.28%   46.31%   +0.03%     
==========================================
  Files         718      718              
  Lines       59242    59248       +6     
  Branches     7610     7614       +4     
==========================================
+ Hits        27415    27433      +18     
+ Misses      31661    31649      -12     
  Partials      166      166              

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@130s 130s mentioned this pull request Sep 28, 2026
@mergify

mergify Bot commented Nov 23, 2026

Copy link
Copy Markdown

Tick the box to add this pull request to the merge queue (same as @mergifyio queue). If it does not match the queue conditions yet, it enters the queue once it does.

  • Queue this pull request once it meets the queue conditions

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.

2 participants