-
Notifications
You must be signed in to change notification settings - Fork 495
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 moveit_core building #1553
Fix moveit_core building #1553
Conversation
Codecov Report
@@ Coverage Diff @@
## main #1553 +/- ##
==========================================
+ Coverage 51.10% 51.10% +0.01%
==========================================
Files 380 380
Lines 31802 31802
==========================================
+ Hits 16248 16249 +1
+ Misses 15554 15553 -1
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
Why would you re-enable Galactic support on main? We dropped it a while ago because of API breakages, Focal, etc... |
I'm running Focal. However, all fixes suggested here are independent of Galactic. Galactic-specific patches I will keep locally only. |
@@ -185,8 +185,7 @@ class MoveGroupInterface::MoveGroupInterfaceImpl | |||
if (constraints_init_thread_) | |||
constraints_init_thread_->join(); | |||
|
|||
if (callback_executor_.is_spinning()) |
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 don't see the need to test for spinning. cancel()
should also work when the executor isn't spinning (anymore).
That's the only Galactic-specific change I propose here.
This pull request is in conflict. Could you fix it @rhaschke? |
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.
These all look straightforward and are a nice cleanup of the export name.
moveit_planning_scene's include directories have to be appended to the include directories found by ament_target_dependencies().
@AndyZe, looks like |
Sorry. I thought it was fixed recently in #1543 (which passed CI 5x successfully) but I guess we'll have to disable it again, for now. |
- Replace ament_export_libraries() -> ament_export_targets(HAS_LIBRARY_TARGET) - Replace ament_export_include_directories() -> INCLUDES DESTINATION include See https://docs.ros.org/en/foxy/How-To-Guides/Ament-CMake-Documentation.html#building-a-library
Trying to build branch
main
onGalactic
, I ran into the following compiler error:There were actually two issues (having srdfdom part of the current workspace):
srdfdom
was missing as an explicit dependency. Its includes were only found accidentally in /opt/rosament_target_dependencies()
, which handles correct ordering for the overlay. Thus srdfdom was found in /opt/ros instead of the local overlay.Skimming through the cmake files, I noticed inconsistent naming of export targets: Most packages used
export_${PROJECT_NAME}
, while some also used the standard (by convention)${PROJECT_NAME}Targets
. I changed all to the latter.