On MacOS: Running ROS and its gui tools through a docker image edit

asked 2019-12-25 14:12:36 -0600

pitosalas gravatar image

I would like to run ROS including its gui tools such as Gazebo through a docker image on MacOS. I've so far not succeeded in getting this to work at all.

I asked a version of this question in general (here.) You can see the things proposed all of which I tried. And none of which seem to work with MacOS (or at least its latest version) directly. There are a variety of rather inscrutable errors (like too many linked directories or bash xhost: command not found and others) which I can try to fix one at a time but before long I've diverged from the proposed command. When I post an issue it seems regularly that the developer believe that "it should work on mac" but really haven't actually done it.

Singularity is proposed and they have a new version which states that it works on Mac. But the command sequence proposed in the referred to question fails. I believe it too has not been actually worked on MacOS.

So my request here is for someone a current successful experience on MacOS. I am glad to do experiments, install other software and whatever can help me get there. Thanks.

edit retag flag offensive close merge delete

Comments

Lets take a step back: can you run any programs with a UI in a Docker image on OSX?

There's nothing special about RViz, RQT and/or Gazebo. If using a Linux-based Docker image, you'll just need to make sure you have a working X server on the OSX side. Preferably one with OpenGL support.

I'd forget about ROS for now and try to get some other tool with a UI to work when running it in a Docker container. If/when that works, we can take a look at getting RViz and the others to work.

I asked a version of this question in general (here.) You can see the things proposed all of which I tried. And none of which seem to work with MacOS (or at least its latest version) directly. [..] When I post an issue it seems regularly that the developer believe that ...

(more)
gvdhoorn gravatar imagegvdhoorn ( 2019-12-26 07:09:47 -0600 )edit