Linking Gazebo on Host Computer to ROS2 environment on docker container

asked 2023-07-02 13:41:43 -0500

I was originally trying to run gazebo and ros in the same docker container provided by using this image tiryoh/ros2-desktop-vnc:humble, but it seems that gazebo has some issue running in the container. Here is the below error for that setup. image description

So i started looking for other solutions as when I googled this error, I couldn't find a way to solve it. I landed upon the possibility of running Gazebo natively on m1 macbook and then somehow connect this to ROS2 running in the container. I have been able to install Gazebo on my machine, but I cannot figure out how to tell ros2 running in the container to communicate with the instance of Gazebo running on my host machine.

I appreciate any solutions to fix gazebo within the container itself, or a way to connect ros2 to the gazebo instance running on my host machine.

edit retag flag offensive close merge delete