ROS 2 Domain ID
Introduction
ROS 2 uses DDS domains to isolate logical networks. Default ROS_DOMAIN_ID is 0; use unique IDs to avoid interference. Advantech Robotic Suite provides a script to change it.
Supported since Robotic Suite v1.3.0 (x86_64).
Steps
- Run the helper script (range 0–101):
cd /usr/local/Advantech/ros
./change-ros-domain-id.sh
- Verify on host:
echo $ROS_DOMAIN_ID - Verify in container:
docker exec -it edge-ros2-foxy bash
echo $ROS_DOMAIN_ID
Note
For manual configuration, see the Q&A: How to set ROS_DOMAIN_ID.