Repository navigation
Conversation
moveit_ros_tests never called ament_package(), so no ament_cmake_environment_hooks were generated and the installed package had no local_setup.bash. colcon still writes a package.bash that sources it, so every shell sourcing the install space printed not found: ".../install/moveit_ros_tests/share/moveit_ros_tests/local_setup.bash" moveit_package() only calls ament_package_xml(), not ament_package(), so nothing else supplied the hooks. The call is at file scope, so the fault does not depend on BUILD_TESTING even though the package body is inside if(BUILD_TESTING).
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
|
Tick the box to add this pull request to the merge queue (same as
|
Description
moveit_ros_testsnever callsament_package(), so noament_cmake_environment_hooksare generated and the installed package hasno
local_setup.bash. colcon still writes apackage.bashthat sources it,so every shell that sources the install space prints:
moveit_package()only callsament_package_xml(), so nothing else suppliesthe hooks. The missing call is at file scope, so this happens whether
BUILD_TESTINGis on or off.One line:
ament_package()at the end ofmoveit_ros/tests/CMakeLists.txt.Checklist
Summary by CodeRabbit