doosan-robotics / doosan-robot2

ROS 2 for Doosan Robot
BSD 3-Clause "New" or "Revised" License
69 stars 48 forks source link

hardware_interface fail Windows colcon #16

Closed ClemGRob closed 1 year ago

ClemGRob commented 2 years ago

hello, i'm trying to use your package with ros2 foxy on Windows 10, and i'm having an issue when I try to use colcon.

this is what I do : for there is no apt-get on windows, for the poco, I followed this : https://pocoproject.org/download.html

then on a regular prompt

mkdir -p ~/ros2_ws/src cd ~/ros2_ws/src git clone https://github.com/doosan-robotics/doosan-robot2.git git clone https://github.com/ros-controls/ros2_control.git git clone https://github.com/ros-controls/ros2_controllers.git git clone https://github.com/ros-simulation/gazebo_ros2_control.git cd ros2_control && git reset --hard 3dc62e28e3bc8cf636275825526c11d13b554bb6 && cd .. cd ros2_controllers && git reset --hard 83c494f460f1c8675f4fdd6fb8707b87e81cb197 && cd .. cd gazebo_ros2_control && git reset --hard 3dfe04d412d5be4540752e9c1165ccf25d7c51fb && cd .. git clone -b ros2 --single-branch https://github.com/ros-planning/moveit_msgs cd ~/ros2_ws rosdep update rosdep install --from-paths src --ignore-src --rosdistro foxy -r -y

and on a x64 prompt c:\opt\ros\foxy\x64\setup.bat c:\opt\ros\foxy\x64\share\gazebo\setup.bat set "SDF_PATH=c:\opt\ros\foxy\x64\share\sdformat\1.6" colcon build

this is my output

[1.258s] root DEBUG Using proactor: IocpProactor Starting >>> hardware_interface Starting >>> controller_manager_msgs
Starting >>> dsr_msgs2
Starting >>> moveit_msgs [Processing: controller_manager_msgs, dsr_msgs2, hardware_interface, moveit_msgs] Failed <<< hardware_interface [43.3s, exited with code 1] Aborted <<< controller_manager_msgs [1min 0s] Aborted <<< moveit_msgs [1min 23s] Aborted <<< dsr_msgs2 [1min 24s] Summary: 0 packages finished [1min 25s] 1 package failed: hardware_interface 3 packages aborted: controller_manager_msgs dsr_msgs2 moveit_msgs 2 packages had stderr output: dsr_msgs2 moveit_msgs 22 packages not processed

do you know where the problem comes from, and how to solve it?

with a colcon test i have this at the end :

Failed to find the following files: - C:\doosan\install\joint_limits_interface\share\joint_limits_interface\package.bat - C:\doosan\install\gazebo_ros2_control\share\gazebo_ros2_control\package.bat - C:\doosan\install\gazebo_ros2_control_demos\share\gazebo_ros2_control_demos\package.bat Check that the following packages have been built: - joint_limits_interface - gazebo_ros2_control - gazebo_ros2_control_demos

doosan-robotics commented 2 years ago

Currently not tested on Windows. Are you using ROS2 on Windows?

ClemGRob commented 2 years ago

Hello, Yes, i'm using ROS2 foxy on windows 10.

doosan-robotics commented 1 year ago

Can you try on WSL environment? It was confirmed that it operates normally in a WSL environment.

Here is the link you can install https://keep-steady.tistory.com/45.