Robotics StackExchange | Archived questions

How does ~ (tilda) resolve in a gazebo topic name

I've seen a convention of advertising '~/foo' as a topic name for gazebo publishers. How does that resolve?

Asked by tfoote on 2016-09-22 19:40:35 UTC

Comments

Answers

I dug into the source and found the resolution is here: https://bitbucket.org/osrf/gazebo/src/8b62f4f655d5744004c367c33eccd9dfba89f87c/gazebo/transport/Node.cc?at=default&fileviewer=file-view-default#Node.cc-125

It resolves to "/gazebo/" + this->topicNamespace where this->topicNamespace is what is passed to the Transport.Init method for the transport upon which is being advertised.

Asked by tfoote on 2016-09-22 19:42:49 UTC

Comments