ros2_RobotSimulation icon indicating copy to clipboard operation
ros2_RobotSimulation copied to clipboard

Colcon build Error 1 package failed: ros2_actions

Open TriKnight opened this issue 1 year ago • 7 comments

I tried to clone branch humble and following your introduction, but when I built my workspace, I got the following error, even I added the move_group_interface_improved.h in /opt/ros/humble/include/moveit/move_group_interface.

--- stderr: ros2_actions
/usr/bin/ld: CMakeFiles/moveL_action.dir/scripts/moveL_action.cpp.o: in function `ActionServer::execute(std::shared_ptr<rclcpp_action::ServerGoalHandle<ros2_data::action::MoveL> >)':
moveL_action.cpp:(.text._ZN12ActionServer7executeESt10shared_ptrIN13rclcpp_action16ServerGoalHandleIN9ros2_data6action5MoveLEEEE[_ZN12ActionServer7executeESt10shared_ptrIN13rclcpp_action16ServerGoalHandleIN9ros2_data6action5MoveLEEEE]+0x55e): undefined reference to `moveit::planning_interface::MoveGroupInterface::execute(moveit_msgs::msg::RobotTrajectory_<std::allocator<void> > const&)'
collect2: error: ld returned 1 exit status
gmake[2]: *** [CMakeFiles/moveL_action.dir/build.make:364: moveL_action] Error 1
gmake[1]: *** [CMakeFiles/Makefile2:261: CMakeFiles/moveL_action.dir/all] Error 2
gmake: *** [Makefile:146: all] Error 2
---
Failed   <<< ros2_actions [0.92s, exited with code 2]

Thanks for your support

TriKnight avatar Sep 08 '23 09:09 TriKnight

I have the same issue with MoveL_action.

amirobotic avatar Sep 14 '23 21:09 amirobotic

am getting the same issue

csharrock avatar Oct 20 '23 23:10 csharrock

I have the same problems。Has anyone solved this problem?

yctros2 avatar Nov 30 '23 09:11 yctros2

Issue is still there. Can you please provide a fix? move_group_interface_improved.h doesn't exist in MoveIt2

pbrandstet avatar Feb 14 '24 12:02 pbrandstet

this issue is still there,who solve it?

yctros2 avatar Mar 04 '24 11:03 yctros2

README file in the include folder of the package says:

The original move_group_interface.h header file is included in the ~/opt/ros/foxy/include/moveit/move_group_interface folder in your Ubuntu 20.04 machine (if MoveIt!2 has been installed). This folder has restricted access, thus the following steps must be followed to paste the move_group_interface_improved.h file into that path:

  1. Install Nautilus Admin:
    sudo apt-get install nautilus-admin
    
  2. Once the installation finishes, Nautilus must be restarted:
    nautilus -q
    
  3. Open the ~/opt/ros/foxy/include/moveit/move_group_interface folder -> Right click -> Open as administrator.
  4. Paste the move_group_interface_improved.h file.

OmkarBharambe avatar Mar 20 '24 05:03 OmkarBharambe

After copying the code from move_group_interface_improved.h folder to the move_group_interface.h folder, go to all the move_.action.cpp files and edit this line of code "#include <moveit/move_group_interface/move_group_interface_improved.h>" into "#include <moveit/move_group_interface/move_group_interface.h>" this. Its in line 43. Then it builds the ros2_actions successfully

Shashank433 avatar Mar 25 '24 09:03 Shashank433