Publish JointState commands for velocity-only and effort-only interfaces#118
Merged
christophfroehlich merged 5 commits intoMay 8, 2026
Conversation
…ion command interface changed
…nterfaces still get published
…inal joint_state_topic_hardware_interface before the fix
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #118 +/- ##
==========================================
+ Coverage 77.68% 78.65% +0.97%
==========================================
Files 6 6
Lines 457 506 +49
Branches 46 45 -1
==========================================
+ Hits 355 398 +43
- Misses 70 78 +8
+ Partials 32 30 -2
Flags with carried forward coverage won't be shown. Click here to find out more.
🚀 New features to boost your workflow:
|
Contributor
Author
|
Thanks @christophfroehlich. Merged latest main back into this branch. Does this need another approval, or is this ready for merge from your side? |
Member
|
yes, a review by another maintainer would be great |
Contributor
Author
MarqRazz
approved these changes
May 8, 2026
Collaborator
MarqRazz
left a comment
There was a problem hiding this comment.
Sorry for taking so long to get to this!
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Fixes the
JointStateTopicSystem::write()publish threshold so it considers all supported command interfaces, not justposition.Previously, the rate limiter only accumulated command/state differences for
positioninterfaces. Velocity-only and effort-only hardware configurations could update command values without publishing asensor_msgs/msg/JointStatecommand message.This PR updates the threshold check to include:
positionvelocityeffortIt also adds regression tests covering position-only, velocity-only, and effort-only command publishing.
Is this user-facing behavior change?
Yes. Users with velocity-only or effort-only command interfaces should now see command messages published on the configured
joint_commands_topicwhen those command values change beyond the trigger threshold.Did you use Generative AI?
Yes. I used OpenAI Codex to help implement the fix, add regression tests, and run local verification.
Additional Information
Regression check: with the new tests applied but the production fix reverted to the pre-fix implementation, the velocity-only and effort-only publish tests fail because no
JointStatecommand message is received:With the fix restored, local verification passes:
TODOs
To send us a pull request, please:
colcon testandpre-commit run(requires you to install pre-commit bypip3 install pre-commit)