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

error: \u2018hardware_interface::return_type xarm_control::FakeXArmHW::configure(const hardware_interface::HardwareInfo&)\u2019 marked \u2018override\u2019, but does not override #9

Closed alienshek337 closed 2 years ago

alienshek337 commented 2 years ago

image

got this issue while colcon build

vimior commented 2 years ago

@alienshek337 Can you provide the ros version you are currently using and which branch of xarm_ros2 are you using?

alienshek337 commented 2 years ago

i am using ros foxy and ubuntu 20.04 and I followed the instruction from the read so it should be master branch. Also, when I switched to the foxy branch, still got the same error after the colcon build in step 4.5 .

4.1 Create a workspace

Skip this step if you already have a target workspace

$ cd ~ $ mkdir -p dev_ws/src 4.2 Obtain source code of "xarm_ros2" repository $ cd ~/dev_ws/src

DO NOT omit "--recursive",or the source code of dependent submodule will not be downloaded.

$ git clone https://github.com/xArm-Developer/xarm_ros2.git --recursive 4.3 Update "xarm_ros2" repository $ cd ~/dev_ws/src/xarm_ros2 $ git pull $ git submodule sync $ git submodule update --init --remote 4.4 Install dependencies

Remember to source ros foxy environment settings first

$ cd ~/dev_ws/src/ $ rosdep update $ rosdep install --from-paths . --ignore-src --rosdistro $ROS_DISTRO 4.5 Build xarm_ros2

Remember to source ros foxy and moveit2 environment settings first

$ cd ~/dev_ws/

build all packages

$ colcon build

build selected packages

$ colcon build --packages-select xarm_api

vimior commented 2 years ago

@alienshek337 Ok, I updated ros foxy to the latest test

vimior commented 2 years ago

@alienshek337 Hello, I have upgraded ros foxy here and I have not reproduced this problem for the time being. Can you check the version of the ros2_control package of your computer? apt search ros-foxy-ros2-control && apt search ros-foxy-hardware-interface

alienshek337 commented 2 years ago

image

vimior commented 2 years ago

@alienshek337 Hello, I am not sure whether the version of ros-foxy-hardware-interface does not correspond to the cause, you can try to upgrade ros-foxy-hardware-interface sudo apt upgrade ros-foxy-hardware-interface ros-foxy-ros2-control-test-asserts

alienshek337 commented 2 years ago

I upgraded the ros-foxy-hardware-interface and I got new error: image

alienshek337 commented 2 years ago

I build successfully after I remove the install , log and build folder in the workspace.