-
Notifications
You must be signed in to change notification settings - Fork 938
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Do not override empty URDF link collision geometry #1952
Conversation
Codecov Report
@@ Coverage Diff @@
## master #1952 +/- ##
=======================================
Coverage 49.82% 49.82%
=======================================
Files 313 314 +1
Lines 24714 24715 +1
=======================================
+ Hits 12313 12314 +1
Misses 12401 12401
Continue to review full report at Codecov.
|
Thank you for the patch. The maintainer meeting actually agreed to a more drastic patch in the master branch, but no one acted on it yet. Could you change your patch to keep the warning, but not add the collision geometry? The reasoning was as follows:
Also, please add a helpful entry to the |
495f015
to
a7f3d90
Compare
a7f3d90
to
6aebe92
Compare
ROS_WARN_STREAM_NAMED(LOGNAME, "Link " << urdf_link->name << ": " | ||
"has visual geometry but no collision geometry. " | ||
"Collision geometry will be left empty. " | ||
"Fix your URDF file by explicitly specifying collision geometry."); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would actually propose to set this warning to a different logger name, so that affected users can set this logger to ERROR if they want to ignore the specific warning.
How about LOGNAME+".empty_collision_geometry"
?
ROS_WARN_STREAM_NAMED(LOGNAME, "Link " << urdf_link->name << ": " | |
"has visual geometry but no collision geometry. " | |
"Collision geometry will be left empty. " | |
"Fix your URDF file by explicitly specifying collision geometry."); | |
ROS_WARN_STREAM_NAMED(LOGNAME+".empty_collision_geometry", "Link " << urdf_link->name << ": " | |
"has visual geometry but no collision geometry. " | |
"Collision geometry will be left empty. " | |
"If you require collision checking for the link, explicitly set the collision geometry in the URDF." | |
"Otherwise, consider disabling this logger name via rosconsole."); |
6aebe92
to
6c95dd4
Compare
- use more specific variable name - avoid turning off clang-format
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I added some minor cleanup. Looks good. Thanks!
Partially addressing #130. Add a warning so that more drastic action can be taken when this issue is revisited in the future, and to ensure that the user is aware that the collision geometry has been altered.Fixes #130 and fixes #1907. Changes to no longer override collision geometry.