Closed PeterS-mBryonics closed 1 year ago
Which command is hanging? colcon build --merge-install --packages-select tutorial_interfaces
? In that case, can you upload the ros2_ws/logs
directory?
See attached. Yes, that's the command that hangs
Can you try to run in a tutorial that does not have a space in the path, i.e. not in G:\My Drive
? So we understand if that is the problem.
Yup! Horay, different output: colcon build --merge-install --packages-select tutorial_interfaces_2 Starting >>> tutorial_interfaces_2 [Processing: tutorial_interfaces_2] [Processing: tutorial_interfaces_2] [Processing: tutorial_interfaces_2] [Processing: tutorial_interfaces_2] --- stderr: tutorial_interfaces_2 CMake Warning (dev) at C:/Users/peter/mambaforge/envs/ros/Library/share/rosidl_generator_py/cmake/rosidl_generator_py_generate_interfaces.cmake:20 (find_package): Policy CMP0148 is not set: The FindPythonInterp and FindPythonLibs modules are removed. Run "cmake --help-policy CMP0148" for policy details. Use the cmake_policy command to set the policy and suppress this warning.
Call Stack (most recent call first): C:/Users/peter/mambaforge/envs/ros/Library/share/ament_cmake_core/cmake/core/ament_execute_extensions.cmake:48 (include) C:/Users/peter/mambaforge/envs/ros/Library/share/rosidl_cmake/cmake/rosidl_generate_interfaces.cmake:286 (ament_execute_extensions) CMakeLists.txt:16 (rosidl_generate_interfaces) This warning is for project developers. Use -Wno-dev to suppress it.
CMake Warning (dev) at C:/Users/peter/mambaforge/envs/ros/Library/share/python_cmake_module/cmake/Modules/FindPythonExtra.cmake:52 (find_package): Policy CMP0148 is not set: The FindPythonInterp and FindPythonLibs modules are removed. Run "cmake --help-policy CMP0148" for policy details. Use the cmake_policy command to set the policy and suppress this warning.
Call Stack (most recent call first): C:/Users/peter/mambaforge/envs/ros/Library/share/rosidl_generator_py/cmake/rosidl_generator_py_generate_interfaces.cmake:23 (find_package) C:/Users/peter/mambaforge/envs/ros/Library/share/ament_cmake_core/cmake/core/ament_execute_extensions.cmake:48 (include) C:/Users/peter/mambaforge/envs/ros/Library/share/rosidl_cmake/cmake/rosidl_generate_interfaces.cmake:286 (ament_execute_extensions) CMakeLists.txt:16 (rosidl_generate_interfaces) This warning is for project developers. Use -Wno-dev to suppress it.
CMake Warning (dev) at C:/Users/peter/mambaforge/envs/ros/Library/share/python_cmake_module/cmake/Modules/FindPythonExtra.cmake:140 (find_package): Policy CMP0148 is not set: The FindPythonInterp and FindPythonLibs modules are removed. Run "cmake --help-policy CMP0148" for policy details. Use the cmake_policy command to set the policy and suppress this warning.
Call Stack (most recent call first): C:/Users/peter/mambaforge/envs/ros/Library/share/rosidl_generator_py/cmake/rosidl_generator_py_generate_interfaces.cmake:23 (find_package) C:/Users/peter/mambaforge/envs/ros/Library/share/ament_cmake_core/cmake/core/ament_execute_extensions.cmake:48 (include) C:/Users/peter/mambaforge/envs/ros/Library/share/rosidl_cmake/cmake/rosidl_generate_interfaces.cmake:286 (ament_execute_extensions) CMakeLists.txt:16 (rosidl_generate_interfaces) This warning is for project developers. Use -Wno-dev to suppress it.
Finished <<< tutorial_interfaces_2 [2min 14s]
Summary: 1 package finished [2min 15s] 1 package had stderr output: tutorial_interfaces_2
That seems to have got something that runs, I'll take a closer look on Monday. Thank you!
Great! Thanks for the debugging @traversaro!
Solution to issue cannot be found in the documentation.
Issue
In a fresh ros environment creating the tutorial-interfaces package from https://docs.ros.org/en/humble/Tutorials/Beginner-Client-Libraries/Custom-ROS2-Interfaces.html results in a build that does not seem to complete - I left it running 40 mins and it hadn't finished. You also can't kill the process with CTRL-C for some reason. I've tried it on two different computers. The same package does build in WSL2 (slower than pure python but it still builds).
Attached is my minimum example (I've removed my email address). Hopefully I've just installed something poorly!
tutorial_interfaces_2.zip
Installed packages
Environment info