Created
December 18, 2025 23:48
-
-
Save anton-matosov/dc2c71fc10ef736ded28b52bff775fb9 to your computer and use it in GitHub Desktop.
Running ros2_control demo and rviz in docker
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| docker run -it --rm \ | |
| -e DISPLAY=host.docker.internal:0 \ | |
| --env="QT_X11_NO_MITSHM=1" \ | |
| --env="FASTDDS_BUILTIN_TRANSPORTS=UDPv4" \ | |
| --env="LIBGL_ALWAYS_SOFTWARE=1" \ | |
| --env="XDG_RUNTIME_DIR=/tmp/runtime-root" \ | |
| --volume="/tmp/.X11-unix:/tmp/.X11-unix:rw" \ | |
| --volume="$HOME/.Xauthority:/root/.Xauthority:rw" \ | |
| --network host --ipc host --pid host \ | |
| --name ros2_control_demos ros2_control_demos \ | |
| bash -c "ros2 launch ros2_control_demo_example_9 view_robot.launch.py gui:=false & sleep 5 && rviz2 -d /opt/ros/rolling/share/ros2_control_demo_description/rrbot/rviz/rrbot.rviz --ros-args --log-level WARN" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment