Skip to content

Commit e2f6f9f

Browse files
committed
Specified that ROS 2 must be source during the setup of communication between host and docker
1 parent 4e72628 commit e2f6f9f

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

docs/setup/setup_docker.md

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,25 +48,31 @@ docker build -t rai:jazzy --build-arg ROS_DISTRO=jazzy --build-arg DEPENDENCIES=
4848

4949
To allow the container to communicate with the host machine, configure the host environment as presented below:
5050

51-
1. If not configured, set the `ROS_DOMAIN_ID` environment variable to a domain ID between 0 and 101, inclusive. Example:
51+
1. Source ROS 2 on the host machine:
52+
53+
```shell
54+
source /opt/ros/jazzy/setup.bash # or humble
55+
```
56+
57+
2. If not configured, set the `ROS_DOMAIN_ID` environment variable to a domain ID between 0 and 101, inclusive. Example:
5258

5359
```shell
5460
export ROS_DOMAIN_ID=99
5561
```
5662

57-
2. Install the eProsima Fast DDS middleware (should come preinstalled with ROS 2):
63+
3. Install the eProsima Fast DDS middleware (should come preinstalled with ROS 2):
5864

5965
```shell
6066
apt install ros-"${ROS_DISTRO}"-fastrtps
6167
```
6268

63-
3. Configure the DDS middleware using the `fastrtps_config.xml` file included in the RAI repository:
69+
4. Configure the DDS middleware using the `fastrtps_config.xml` file included in the RAI repository:
6470

6571
```shell
6672
export FASTRTPS_DEFAULT_PROFILES_FILE=/path/to/fastrtps_config.xml
6773
```
6874

69-
4. Set the RMW to use eProsima Fast DDS:
75+
5. Set the RMW to use eProsima Fast DDS:
7076

7177
```shell
7278
export RMW_IMPLEMENTATION=rmw_fastrtps_cpp

0 commit comments

Comments
 (0)