Difference between revisions of "Advantech Robotic Suite/ROS DOMAIN ID"
m (Ray.zheng moved page ROS2 Suite/ROS DOMAIN ID to Robotic Dev SDK/ROS DOMAIN ID: rename ROS2 suite to Robotic_Dev_SDK) |
|||
(4 intermediate revisions by the same user not shown) | |||
Line 2: | Line 2: | ||
<span style="font-size:larger;">ROS2 uses for communication is DDS. In DDS, the primary mechanism for having different logical networks share a physical network is known as the Domain ID. ROS2 nodes on the same domain can freely discover and send messages to each other, while ROS2 nodes on different domains cannot. All ROS2 nodes use domain ID 0 by default. To avoid interference between different groups of computers running ROS2 on the same network, a different domain ID should be set for each group.</span> | <span style="font-size:larger;">ROS2 uses for communication is DDS. In DDS, the primary mechanism for having different logical networks share a physical network is known as the Domain ID. ROS2 nodes on the same domain can freely discover and send messages to each other, while ROS2 nodes on different domains cannot. All ROS2 nodes use domain ID 0 by default. To avoid interference between different groups of computers running ROS2 on the same network, a different domain ID should be set for each group.</span> | ||
<br><br> | <br><br> | ||
− | <span style="font-size: larger;">The | + | <span style="font-size: larger;">The Advantech Robotic Suite offers a convenient method for modifying the ROS_DOMAIN_ID (default is 0).</span> |
= Prerequisite = | = Prerequisite = | ||
− | Supported Version: | + | Supported Version: Advantech Robotic Suite v1.3.0 or higher. |
Supported Platform: x86_64 | Supported Platform: x86_64 | ||
Line 31: | Line 31: | ||
=== Note === | === Note === | ||
− | If you want to set ROS_DOMAIN_ID in host or container by manually, please refer to [[ | + | If you want to set ROS_DOMAIN_ID in host or container by manually, please refer to [[Advantech_Robotic_Suite/Q&A#How to set ROS_DOMAIN_ID|Q&A : How to set ROS_DOMAIN_ID]] |
− | |||
− |
Latest revision as of 04:09, 5 March 2024
Introduction
ROS2 uses for communication is DDS. In DDS, the primary mechanism for having different logical networks share a physical network is known as the Domain ID. ROS2 nodes on the same domain can freely discover and send messages to each other, while ROS2 nodes on different domains cannot. All ROS2 nodes use domain ID 0 by default. To avoid interference between different groups of computers running ROS2 on the same network, a different domain ID should be set for each group.
The Advantech Robotic Suite offers a convenient method for modifying the ROS_DOMAIN_ID (default is 0).
Prerequisite
Supported Version: Advantech Robotic Suite v1.3.0 or higher.
Supported Platform: x86_64
How to
Set ROS_DOMAIN_ID
Script to set ROS_DOMAIN_ID in range 0~101.
$ cd /usr/local/Advantech/ros $ ./change-ros-domain-id.sh
Confirm whether the variable is modified successfully in host.
$ echo $ROS_DOMAIN_ID
Confirm whether the variable is modified successfully in container.
$ docker exec -it edge-ros2-foxy bash $ echo $ROS_DOMAIN_ID
Note
If you want to set ROS_DOMAIN_ID in host or container by manually, please refer to Q&A : How to set ROS_DOMAIN_ID