File tree Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -41,8 +41,8 @@ Basic testing
41
41
For the purposes of this illustration we will use the image
42
42
`murilomarinho/sas `.
43
43
44
- Docker run
45
- ++++++++++
44
+ Docker run interactively
45
+ ++++++++++++++++++++++++
46
46
47
47
Firstly it would be easier to tackle docker in simple commands before tackling complex
48
48
scenarios.
@@ -82,8 +82,13 @@ Then, in the container and in the host we do as follows.
82
82
export ROS_DOMAIN_ID=1
83
83
ros2 topic echo /chatter
84
84
85
- And notice that it will communicate without any issues. Changing the network settings of the
86
- docker image may cause this to stop working. For instance, a very popular setting is to use
85
+ .. note ::
86
+
87
+ In the container we have `ROS_DOMAIN_ID=1 `. If this is modified in the container, this must
88
+ be also modified in the host or they will not find and communicate with each other.
89
+
90
+ Notice that it will communicate without any issues. Changing the network settings of the
91
+ docker container may cause this to stop working. For instance, a very popular setting is to use
87
92
`--net=host `. This is not recommended unless strictly necessary because it will generate issues
88
93
with ROS2 networking.
89
94
You can’t perform that action at this time.
0 commit comments