ros-industrial / ros2_canopen

CANopen driver framework for ROS2
https://ros-industrial.github.io/ros2_canopen/manual/rolling/
131 stars 55 forks source link

ros2_canopen - colcon build #190

Closed zhiyiopp closed 9 months ago

zhiyiopp commented 11 months ago

Describe the bug after download the package, following the operation steps, in "colcon build" then: Starting >>> lely_core_libraries --- stderr: lely_core_libraries
CMake Error at /opt/ros/foxy/share/ament_cmake_python/cmake/ament_python_install_package.cmake:34 (message): ament_python_install_package() called with unused arguments: SCRIPTS_DESTINATION;lib/cogen Call Stack (most recent call first): /opt/ros/foxy/share/ament_cmake_python/cmake/ament_python_install_package.cmake:28 (_ament_cmake_python_install_package) CMakeLists.txt:41 (ament_python_install_package)

Failed <<< lely_core_libraries [0.30s, exited with code 1] Aborted <<< canopen_interfaces [9.23s]

Logs Add build or execution log for context.

Setup:

Additional context Add any other context about the problem here.

hellantos commented 11 months ago

We don't support foxy anymore. It is end of life. Please use humble (humble branch) or iron or rolling.

zhiyiopp commented 11 months ago

oh, i will upgrade it and try again.

sam-tj commented 11 months ago

I had the same problem with humble, used humble branch to make it work.

hellantos commented 11 months ago

@sam-tj can you post the exact error?

sam-tj commented 11 months ago

This is the error.

image

hellantos commented 11 months ago

This is because QoS initialization as it was done in humble is deprecated in Iron and Rolling and the new way does not work in humble. You currently use master branch of this repo but you have to use the Humble branch to work with humble.

sam-tj commented 11 months ago

Yes, that's why I moved to humble branch and that works for me.