fix(joint_state_broadcaster): suppress confusing warning for standard interfaces (backport #2276)#2333
Merged
christophfroehlich merged 1 commit intojazzyfrom Apr 28, 2026
Merged
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## jazzy #2333 +/- ##
==========================================
- Coverage 84.91% 84.88% -0.04%
==========================================
Files 154 154
Lines 15271 15378 +107
Branches 1351 1351
==========================================
+ Hits 12968 13053 +85
- Misses 1811 1834 +23
+ Partials 492 491 -1
Flags with carried forward coverage won't be shown. Click here to find out more.
🚀 New features to boost your workflow:
|
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
This PR fixes the confusing warning message from
JointStateBroadcasterwhen using standard interfaces likevelocitywith the default mapping.Problem
When configuring the broadcaster with standard interfaces:
The following confusing warning was displayed:
This warning is confusing because:
velocityfieldSolution
The warning is now only displayed when there's an actual custom mapping being ignored (i.e., when the interface name differs from the JointState field name).
For example, if someone had:
Then the warning would still be shown because the custom mapping
custom_velocity_interface->velocitywould be ignored.But for the standard case where
interfaces: [velocity]and the default mappingvelocity->velocity, no warning is shown because no mapping is needed.Changes
joint_state_broadcaster.cppto only print the warning wheninterface != interface_to_mapRelated Issue
Fixes #2261
This is an automatic backport of pull request #2276 done by Mergify.