Skip to content

generate_move_group_launch assumes DISPLAY=:0 #2026

@fnivek

Description

@fnivek

In moveit_configs_utils launches.py generate_move_group_launch the code assumes the users DISPLAY is :0 mine happens to be :1 which causes the following error and then crash of move_group

[move_group-1] freeglut (<): failed to open display ':0'

Here is a snippet of the code that overwrites the users DISPLAY environment variable.

add_debuggable_node(
        ld,
        package="moveit_ros_move_group",
        executable="move_group",
        commands_file=str(moveit_config.package_path / "launch" / "gdb_settings.gdb"),
        output="screen",
        parameters=move_group_params,
        extra_debug_args=["--debug"],
        # Set the display variable, in case OpenGL code is used internally
        additional_env={"DISPLAY": ":0"},
    )

Removing the additional_env line and setting my DISPLAY environment variable correctly resolved the issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions