Getting Started with ROS on Embedded Systems - User Guide - C++ - Names

From RidgeRun Developer Wiki






Previous: User Guide/C++/Messages Index Next: User Guide/C++/Publishers_and_subscribers




Introduction

This wiki is based on the following ros2 wiki: https://docs.ros.org/en/foxy/Tutorials/Intermediate/Launch/Using-ROS2-Launch-For-Large-Projects.html. In here you can find the usage of names and namespaces.

Namespaces

These are prefixes that can help divide systems into sections and even allow the usage of same node names without conflicts. For example if on a system we have n number of the same sensors, we would have n nodes and topics that would be named the same. We can use a namespace to distinguish them, and allows us to use the same nodes and setup without the need to change node names and topics.


Previous: User Guide/C++/Messages Index Next: User Guide/C++/Publishers_and_subscribers