Skip to main content

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

  1. Run the helper script (range 0–101):
    cd /usr/local/Advantech/ros
    ./change-ros-domain-id.sh
    ROS2_set_ROS_DOMAIN_ID
  2. Verify on host:
    echo $ROS_DOMAIN_ID
  3. 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.