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
100 stars 57 forks source link

hardware_interface_status_values.hpp #74

Closed WhySoZed closed 4 weeks ago

WhySoZed commented 4 weeks ago

Hi, im trying to setup a ufactory lite 6. Im following the tutorial on this page step by step: https://docs.ufactory.cc/xarm_ros2/readme_en#id-4.-how-to-use but colcon build fails building the xarm_controller package and i get this error message:

colcon build Starting >>> xarm_description Starting >>> xarm_msgs Starting >>> xarm_sdk Finished <<< xarm_description [0.10s]
Finished <<< xarm_sdk [0.19s] Finished <<< xarm_msgs [1.19s]
Starting >>> xarm_api Finished <<< xarm_api [0.13s]
Starting >>> xarm_controller --- stderr: xarm_controller
In file included from /home/loya/dev_ws/src/xarm_ros2/xarm_controller/src/hardware/uf_robot_system_hardware.cpp:9: /home/loya/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. 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.... In file included from /home/loya/dev_ws/src/xarm_ros2/xarm_controller/src/hardware/uf_robot_fake_system_hardware.cpp:9: /home/loya/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" | ^~~~~~~~~~~~~~~ compilation terminated. 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 [0.25s, exited with code 2]

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


I tried everything i know (its not much). But it seems like this file: "hardware_interface_status_values.hpp" doesn't exist in ros humble or anywhere... I also don't know why i get this issue now, because a month ago i got it to work on a VM. Now i installed ubuntu 22.04 on a harddrive and get this issue.

WhySoZed commented 4 weeks ago

its seems like git clone https://github.com/xArm-Developer/xarm_ros2.git --recursive downloaded the files for ros foxy for me

I instead used: git clone -b humble https://github.com/xArm-Developer/xarm_ros2.git --recursive and now it worked (so far)