RobotWebTools / rosbridge_suite

Server Implementations of the rosbridge v2 Protocol
https://robotwebtools.github.io
BSD 3-Clause "New" or "Revised" License
866 stars 506 forks source link

Compilation give unknown CMake command "add_launch_test". #922

Closed Siirko closed 2 months ago

Siirko commented 2 months ago

Description when compiling the library it gives me this error message

Starting >>> rosapi
Finished <<< rosapi [4.61s]                   
Starting >>> rosbridge_server
--- stderr: rosbridge_server                          
CMake Error at /home/yanovskyy/ros2_ws/install/launch_testing_ament_cmake/share/launch_testing_ament_cmake/cmake/launch_testing_ament_cmakeConfig.cmake:41 (include):
  include could not find requested file:

    /home/yanovskyy/ros2_ws/install/launch_testing_ament_cmake/share/launch_testing_ament_cmake/cmake/launch_testing_ament_cmake-extras.cmake
Call Stack (most recent call first):
  CMakeLists.txt:25 (find_package)

CMake Error at CMakeLists.txt:26 (add_launch_test):
  Unknown CMake command "add_launch_test".

Steps To Reproduce

  1. get ROS2 iron
  2. clone repo
  3. compile

Expected Behavior no error message

Actual Behavior CMake error

Siirko commented 2 months ago

Add to compile launch_testing and launch_testing_ament_cmake https://github.com/ros2/launch/tree/iron from to make it work