-
Notifications
You must be signed in to change notification settings - Fork 494
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
Fix wrong use of C msg headers #1844
Conversation
Codecov ReportBase: 50.43% // Head: 50.42% // Decreases project coverage by
Additional details and impacted files@@ Coverage Diff @@
## main #1844 +/- ##
==========================================
- Coverage 50.43% 50.42% -0.01%
==========================================
Files 374 374
Lines 31335 31335
==========================================
- Hits 15802 15797 -5
- Misses 15533 15538 +5
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
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 found quite a few more, for example:
moveit_core/planning_scene/src/planning_scene.cpp:#include <octomap_msgs/conversions.h>
Found with:
grep -r ".h>" | grep "_msg"
You need to use this regex: |
You mean that messages from debians should be included differently than messages built along with MoveIt packages? Hmm, that's annoying. I'll defer to somebody else to review the PR, then. |
I mean that only header files auto-generated via |
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.
Thank you!
(cherry picked from commit 4765028) # Conflicts: # moveit_ros/moveit_servo/src/servo_calcs.cpp # moveit_ros/planning/moveit_cpp/include/moveit/moveit_cpp/planning_component.h
* Cleanup msg includes: Use C++ instead of C header * Remove obsolete include: moveit_msgs/srv/execute_known_trajectory.hpp
* Cleanup msg includes: Use C++ instead of C header * Remove obsolete include: moveit_msgs/srv/execute_known_trajectory.hpp
You inconsistently use C++ and C msg headers! This PR fixes all occurrences of wrong C header usage.
I'm really wondering why you didn't run into issues due to this before. When including
moveit/utils/moveit_error_code.h
, I'm getting these errors:That's not surprising as the C++ and C types are fundamentally different, e.g.
moveit_msgs::msg::MoveItErrorCodes
vs.moveit_msgs__msg__MoveItErrorCodes
.I guess you include the corresponding
.hpp
header somewhere else then...