xArm-Developer / xarm_ros2

ROS2 developer packages for robotic products from UFACTORY
https://www.ufactory.cc/pages/xarm
BSD 3-Clause "New" or "Revised" License
102 stars 58 forks source link

Failed to colcon build xarm_controller #15

Closed Jinzhou511 closed 1 year ago

Jinzhou511 commented 1 year ago

Hi friends. When I tried to colcon build xarm in step 4.5, I encountered following issue, it seems that I don't have the hpp file named "hardware_interface/types/hardware_interface_status_values.hpp", which led to fail to build xarm_controller.

Terminal information:

walt@WaltUbuntu:~/dev_ws$ colcon build Starting >>> xarm_description Starting >>> xarm_msgs Starting >>> xarm_sdk Finished <<< xarm_description [2.88s] Finished <<< xarm_sdk [5.10s]
Finished <<< xarm_msgs [34.1s]
Starting >>> xarm_api Finished <<< xarm_api [24.0s]
Starting >>> xarm_controller stderr: xarm_controller
In file included from /home/walt/dev_ws/src/xarm_ros2/xarm_controller/src/hardware/uf_robot_fake_system_hardware.cpp:9: /home/walt/dev_ws/src/xarm_ros2/xarm_controller/include/xarm_controller/hardware/uf_robot_fake_system_hardware.h:21:10: fatal error: hardware_interface/types/hardware_interface_status_values.hpp: No such file or directory 21 | #include "hardware_interface/types/hardware_interface_status_values.hpp" | ^~~~~~~~~~~~~~~ In file included from /home/walt/dev_ws/src/xarm_ros2/xarm_controller/src/hardware/uf_robot_system_hardware.cpp:9: /home/walt/dev_ws/src/xarm_ros2/xarm_controller/include/xarm_controller/hardware/uf_robot_system_hardware.h:21:10: fatal error: hardware_interface/types/hardware_interface_status_values.hpp: No such file or directory 21 | #include "hardware_interface/types/hardware_interface_status_values.hpp" | ^~~~~~~~~~~~~~~ compilation terminated. compilation terminated. gmake[2]: [CMakeFiles/uf_robot_hardware.dir/build.make:76: CMakeFiles/uf_robot_hardware.dir/src/hardware/uf_robot_system_hardware.cpp.o] Error 1 gmake[2]: Waiting for unfinished jobs.... gmake[2]: [CMakeFiles/uf_robot_hardware.dir/build.make:90: CMakeFiles/uf_robot_hardware.dir/src/hardware/uf_robot_fake_system_hardware.cpp.o] Error 1 gmake[1]: [CMakeFiles/Makefile2:137: CMakeFiles/uf_robot_hardware.dir/all] Error 2 gmake: *** [Makefile:146: all] Error 2

Failed <<< xarm_controller [4.85s, exited with code 2]

Summary: 4 packages finished [1min 3s] 1 package failed: xarm_controller 1 package had stderr output: xarm_controller 4 packages not processed

Jinzhou511 commented 1 year ago

I'm using Ubuntu 22 and Ros2 Humble

vimior commented 1 year ago

Hi, @Jinzhou511 ros2 humble please switch to humble branch