From 0cd71d28cc6313b876738ff53b16a11ee9f2b75b Mon Sep 17 00:00:00 2001 From: Tim Kluge <timklge@gmail.com> Date: Fri, 8 May 2020 14:43:30 +0200 Subject: [PATCH] ref #1: Mount x11 unix on Mac --- README.md | 4 +++- docker-run-mac.sh | 5 +++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 2e1c0fc..4c262e0 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 8eaa744..bdaa148 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 \ -- GitLab