Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Accessing gzserver on docker from gzclient on host machine

Hello,

Inspired by @ChuiV 's suggestion from this question

I am attempting to access a gzserver that is within a container with a gzclient on my host machine to be able to see the gazebo gui.

I did so by first launching the gazebo simulation within the container. From there I was able to obtain the following information.

[Msg] Waiting for master.
[ INFO] [1561403092.973345664]: waitForService: Service [/gazebo/set_physics_properties] has not been advertised, waiting...
[Msg] Connected to gazebo master @ http://127.0.0.1:11345
[Msg] Publicized address: 172.17.0.3

With this information, I did the following on my host machine

GAZEBO_MASTER_URI=http://172.17.0.3:11345 gzclient

The gazebo window begins to show, and then closes interruptly with the following error message:

Qt has caught an exception thrown from an event handler. Throwing
exceptions from an event handler is not supported in Qt. You must
reimplement QApplication::notify() and catch all exceptions there.

terminate called after throwing an instance of 'boost::filesystem::filesystem_error'
  what():  boost::filesystem::status: Permission denied: "/root/catkin_ws/src/simulate_traversability/description/meshes/p3at_meshes/chassis.stl"
Aborted (core dumped)

Does anyone have any experience with this?

Thank you, Aaron