Add Dockerfile and run script for Webots integration; update package dependencies

This commit is contained in:
Даниил Грабарь
2026-05-18 17:53:02 +03:00
parent 8d27c01b92
commit 06c50616b4
8 changed files with 93 additions and 0 deletions
+21
View File
@@ -0,0 +1,21 @@
#!/bin/bash
# Run the Webots container with X11 forwarding.
# Usage:
# ./run.sh — interactive shell
# ./run.sh ros2 launch iiwa_bringup webots_spawn.launch.py ...
IMAGE="${WEBOTS_IMAGE:-evilfisru/lwc:jazzy-webots}"
# Allow local Docker processes to connect to the X server
xhost +local:docker > /dev/null
docker run -it --rm \
--name ros-webots \
--network host \
-e DISPLAY="${DISPLAY}" \
-e QT_X11_NO_MITSHM=1 \
-e LIBGL_ALWAYS_SOFTWARE=1 \
-e GALLIUM_DRIVER=llvmpipe \
-v /tmp/.X11-unix:/tmp/.X11-unix:rw \
"${IMAGE}" \
"$@"