Skip to content

Commit 680d12d

Browse files
j3soonYuZhong-ChenAssume-Zhan
committed
feat(template_ws): Change default to allow non-localhost communications and set domain ID to zero
Co-authored-by: YuZhong-Chen <yuzhong1214@gmail.com> Co-authored-by: assume <assume0701@gmail.com>
1 parent 9d43032 commit 680d12d

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

template_ws/docker/compose.yaml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,10 @@ services:
1818
# - https://docs.ros.org/en/humble/Concepts/Intermediate/About-Domain-ID.html
1919
# - https://docs.ros.org/en/humble/Tutorials/Beginner-CLI-Tools/Configuring-ROS2-Environment.html
2020
# - https://docs.ros.org/en/humble/Tutorials/Demos/Logging-and-logger-configuration.html#console-output-colorizing
21-
- ROS_LOCALHOST_ONLY=1
22-
- ROS_DOMAIN_ID=42
21+
- ROS_LOCALHOST_ONLY=0
22+
# Localhost only is disabled by default to allow communication with external devices.
23+
- ROS_DOMAIN_ID=0
24+
# Domain ID is set to 0 to allow communication through ros1_bridge.
2325
- RCUTILS_COLORIZED_OUTPUT=1
2426
- ROS2_WS=/home/ros2-essentials/template_ws
2527
# TODO: Uncomment the lines below to enable GPU support.

0 commit comments

Comments
 (0)