How to use namespaces?

Namespaces are expanded for you automatically. You can see some examples here:

In your particular case, you might need to know the target node’s name and do something like this:

communicationNode.createClient("/" + nodeName + "/get_state");

But I’m not 100% sure without seeing what you’re doing exactly.

1 Like