Moveit2 C++ Move_Group Not Working

asked 2021-10-25 18:45:23 -0500

jamesross2 gravatar image

updated 2021-10-26 02:06:11 -0500

gvdhoorn gravatar image

Software: I'm using the Universal Robots ROS2 Driver ( and the associated moveit2 software.

  • Platform: Linux Ubuntu 20.04 LTS
  • ROS Distro: Galactic

ISSUE: The issue is that the move_group_interface appears to be getting caught up somewhere and not returning anything. I attached my code and the output with print lines to indicate which lines worked; it never leaves line 58.

I was thinking the error might have to do with using the ros2 run command to execute the program, but have no idea how to add a suitable launch file. Its also worth noting that I already do call ros launch seen by the steps in the readme of the driver software attached above. Any help and insight would be greatly appreciated!

Code To Package And Corresponding Log Files:


jtross9@en4113304:~/workspace/ros_ur_driver$ ros2 run mover guider
init 2
init 3
edit retag flag offensive close merge delete


Looks you are missing a package:

Could not find a package configuration file provided by "moveit_visual_tools“

Check if the package is installed. Here the link:

osilva gravatar image osilva  ( 2021-10-25 19:19:17 -0500 )edit

In your log file that’s the build error:

Pls post the code and error using 10101 button instead of using links. Hope this helps

osilva gravatar image osilva  ( 2021-10-25 19:23:54 -0500 )edit

You could probably fix this automatically with:

rosdep install -r --from-paths . --ignore-src --rosdistro $ROS_DISTRO -y

^ Run this from the root of your workspace, e.g. ~/ws_colcon

AndyZe gravatar image AndyZe  ( 2021-10-26 12:04:06 -0500 )edit