[ros-users] [Discourse.ros.org] [Next Generation ROS] How to…

Forside
Vedhæftede filer:
Indlæg som e-mail
+ (text/plain)
Slet denne besked
Besvar denne besked
Skribent: William Woodall via ros-users
Dato:  
Til: ros-users
Emne: [ros-users] [Discourse.ros.org] [Next Generation ROS] How to use namespaces?


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

https://github.com/ros2/rcl/blob/release-beta2/rcl/test/rcl/test_expand_topic_name.cpp#L131-L158

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.





---
[Visit Topic](https://discourse.ros.org/t/how-to-use-namespaces/2236/2) or reply to this email to respond.


If you do not want to receive messages from ros-users please use the unsubscribe link below. If you use the one above, you will stop all of ros-users from receiving updates.
______________________________________________________________________________
ros-users mailing list

http://lists.ros.org/mailman/listinfo/ros-users
Unsubscribe: <http://lists.ros.org/mailman//options/ros-users>