diff --git a/README.md b/README.md index 2e1c0fc1d17d92891860eef49add63dafffc0a80..4c262e0adb02929df2902a0437b82855b9f86dfe 100644 --- a/README.md +++ b/README.md @@ -9,7 +9,9 @@ ## Docker -To quickly run the graphical example applications, you can use Docker. For development purposes, please use the regular installation instructions further below in this document. +To quickly run the graphical example applications, you can use Docker. For development purposes, please use the regular installation +instructions further below in this document. Please note that the setup for Windows and Mac OS systems uses X11 forwarding and thus +offers limited graphics performance. - Clone this repo and its submodules: - as a guest: `git clone --recurse-submodules https://git-st.inf.tu-dresden.de/ceti/ros/panda_gazebo_workspace.git panda_gazebo_workspace` diff --git a/docker-run-mac.sh b/docker-run-mac.sh index 8eaa744a02b15b94537d7bcfef9e00e5c2f0928f..bdaa1487a963a14f2a51eab99800d9573712c548 100644 --- a/docker-run-mac.sh +++ b/docker-run-mac.sh @@ -1,10 +1,11 @@ #!/bin/sh -xhost + 127.0.0.1 - docker build . -t ceti-panda-gazebo-workspace +XSOCK=/tmp/.X11-unix + docker run -it \ + --volume=$XSOCK:$XSOCK:rw \ --env="DISPLAY=host.docker.internal:0" \ --user="ros" \ ceti-panda-gazebo-workspace \