[Bug] move_group.launch.py doesn't work

This is an error report.


Screenshot of the error


Error details

ros2 launch my_moveit_config move_group.launch.py doesn't work

user:~/ros2_ws$ ros2 launch my_moveit_config move_group.launch.py
[INFO] [launch]: All log files can be found below /home/user/.ros/log/2024-11-08-06-30-29-358726-1_xterm-7641
[INFO] [launch]: Default logging verbosity is set to INFO
Using load_yaml() directly is deprecated. Use xacro.load_yaml() instead.
[INFO] [move_group-1]: process started with pid [7642]
[move_group-1] [INFO] [1731047430.674359795] [moveit_rdf_loader.rdf_loader]: Loaded robot model in 0.0968077 seconds
[move_group-1] [INFO] [1731047430.674616931] [moveit_robot_model.robot_model]: Loading robot model 'name'…
[move_group-1] [INFO] [1731047430.990401518] [moveit_ros.planning_scene_monitor.planning_scene_monitor]: Publishing maintained planning scene on 'monitored_planning_scene'
[move_group-1] [INFO] [1731047430.990580789] [moveit.ros_planning_interface.moveit_cpp]: Listening to 'joint_states' for joint states
[move_group-1] [INFO] [1731047430.991425312] [moveit_ros.current_state_monitor]: Listening to joint states on topic 'joint_states'
[move_group-1] [INFO] [1731047430.998262334] [moveit_ros.planning_scene_monitor.planning_scene_monitor]: Listening to '/attached_collision_object' for attached collision objects
[move_group-1] [INFO] [1731047430.998877767] [moveit_ros.planning_scene_monitor.planning_scene_monitor]: Starting planning scene monitor
[move_group-1] [INFO] [1731047430.999662417] [moveit_ros.planning_scene_monitor.planning_scene_monitor]: Listening to '/planning_scene'
[move_group-1] [INFO] [1731047431.000090347] [moveit_ros.planning_scene_monitor.planning_scene_monitor]: Starting world geometry update monitor for collision objects, attached objects, octomap updates.
[move_group-1] [INFO] [1731047431.000882869] [moveit_ros.planning_scene_monitor.planning_scene_monitor]: Listening to 'collision_object'
[move_group-1] [INFO] [1731047431.001952902] [moveit_ros.planning_scene_monitor.planning_scene_monitor]: Listening to 'planning_scene_world' for planning scene world geometry
[move_group-1] [WARN] [1731047431.007911711] [moveit.ros.occupancy_map_monitor.middleware_handle]: Resolution not specified for Octomap. Assuming resolution = 0.1 instead
[move_group-1] freeglut failed to open display ':0'
[ERROR] [move_group-1]: process has died [pid 7642, exit code 1, cmd '/opt/ros/humble/lib/moveit_ros_move_group/move_group --ros-args --params-file /tmp/launch_params__5lztnw4 --params-file /tmp/launch_params_wl77ojyv'].

I try serveral things… like below

  1. export display
    export DISPLAY=:0
    –> error is same
  2. install xvfb
    sudo apt-get install xvfb
    xvfb-run ros2 launch my_moveit_config move_group.launch.py
    –> error is same
    xvfb-run --auto-servernum --server-args='-screen 0 1024x768x24' ros2 launch my_moveit_config move_group.launch.py
    –> error is same
  3. reinstallation
    sudo apt-get install --reinstall freeglut3-dev
    sudo apt-get install libgl1-mesa-glx
    –> error is same…

Hello @dldmsgnl1212 ,

Please check this previous post to see how to solve this issue: My_moveit_config robot unable to load - [move_group-1] freeglut failed to open display ':0'' - #3 by pbnpama

We will update the notebook in order to clarify this point. Many thanks for your feedback.

This topic was automatically closed 5 days after the last reply. New replies are no longer allowed.