Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Colcon build Error 1 package failed: ros2_actions #19

Open
TriKnight opened this issue Sep 8, 2023 · 7 comments
Open

Colcon build Error 1 package failed: ros2_actions #19

TriKnight opened this issue Sep 8, 2023 · 7 comments

Comments

@TriKnight
Copy link

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

@amirobotic
Copy link

I have the same issue with MoveL_action.

@csharrock
Copy link

am getting the same issue

@yctros2
Copy link

yctros2 commented Nov 30, 2023

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

@pbrandstet
Copy link

pbrandstet commented Feb 14, 2024

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

@yctros2
Copy link

yctros2 commented Mar 4, 2024

this issue is still there,who solve it?

@OmkarBharambe
Copy link

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.

@Shashank433
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants