Robotics StackExchange | Archived questions

Connect host gazebo gzclient to to docker's gzserver

I run gzserver and ros master in docker container. open the port with -p 11345:11345 -p:11311:11311. On my MacOs host, i connect with

ROS_MASTER_URI=http://localhost:11311  GAZEBO_MASTER_URI=http://localhost:11345 gzclient --verbose

I get below error

Gazebo multi-robot simulator, version 7.15.0
Copyright (C) 2012 Open Source Robotics Foundation.
Released under the Apache 2 License.
http://gazebosim.org

[Msg] Waiting for master.
[Msg] Connected to gazebo master @ http://127.0.0.1:11345
[Msg] Publicized address: 192.168.1.88
[Err] [ModelMaker.cc:383] Couldn't find model element in sdf, won't create entity. 

libc++abi.dylib: terminating with uncaught exception of type boost::wrapexcept<boost::lock_error>: boost: mutex lock failed in pthread_mutex_lock: Invalid argument
Abort trap: 6

Asked by cometta on 2019-09-01 05:14:33 UTC

Comments

For now this looks like a Gazebo question only, and those should be posted on answers.gazebosim.org.

If you post there as well, please add a comment here with the link to your new question, so we can keep things connected.

Asked by gvdhoorn on 2019-09-01 06:14:37 UTC

Answers