yujinrobot / kobuki_desktop

Visualisation and simulation tools for Kobuki
http://www.ros.org/wiki/kobuki_desktop
37 stars 58 forks source link

Keep namespace relative if base_prefix is empty string #40

Open slivingston opened 9 years ago

slivingston commented 9 years ago

Suppose that rather than use base_prefix to change the default of "mobile_base", a user wishes to entirely remove the base prefix. If the param base_prefix is set to the empty string, then the topic names would become absolute, i.e., would begin with "/". This changeset ensures that they remain relative in this case.

The motivating use-case is spawning multiple instances of the Kobuki model, each with a unique namespace, while trying to keep topic names short.