fix(joint_state_broadcaster): suppress confusing warning for standard interfaces#2276
Conversation
… interfaces When using standard interfaces like 'velocity' with the default mapping, the warning 'Mapping from velocity to interface velocity will not be done' is confusing because no mapping is actually needed. This change only shows the warning when there's a custom mapping being ignored (i.e., when interface name differs from the JointState field name). Fixes ros-controls#2261
|
@christophfroehlich, I opened a PR for this issue. Would you be able to review when you have a chance? I am a beginner so any feedback will be appreciated. |
We're here for the community! Either beginner or expert. Welcome aboard to the project, @greencookie-afk! |
Co-authored-by: Surya! <thedevmystic@gmail.com>
|
@thedevmystic thanks buddy i updated it.!! |
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #2276 +/- ##
=======================================
Coverage 84.72% 84.73%
=======================================
Files 153 153
Lines 15362 15364 +2
Branches 1332 1333 +1
=======================================
+ Hits 13016 13018 +2
Misses 1858 1858
Partials 488 488
Flags with carried forward coverage won't be shown. Click here to find out more.
🚀 New features to boost your workflow:
|
christophfroehlich
left a comment
There was a problem hiding this comment.
Thank you. The changes LGTM, but I ask you to
- clarify the wrong configuration (i.e., when the warning is printed) in the parameter description of
interfacesand joint_state_broadcaster_parameter_context.yml - Add a test for this case to have coverage. You could copy TestCustomInterfaceMapping but run it with a velocity interface parameter.
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