You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: robotics-ai-suite/docs/robotics/gsg_robot/index.md
+43Lines changed: 43 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -89,6 +89,49 @@ export USE_PROXY=0
89
89
> defined ``http_proxy`` and ``https_proxy`` environment variables and
90
90
> modify the command above to be `export USE_PROXY=1`
91
91
92
+
### 3. Express Setup: Prepare your ROS 2 Environment
93
+
94
+
In order to execute any ROS 2 command in a new shell, you first have to source
95
+
the ROS 2 ``setup.bash`` and set the individual ``ROS_DOMAIN_ID`` for your
96
+
ROS 2 communication graph.
97
+
98
+
::::{tab-set}
99
+
:::{tab-item} **Jazzy**
100
+
:sync: jazzy
101
+
102
+
```bash
103
+
source /opt/ros/jazzy/setup.bash
104
+
export ROS_DOMAIN_ID=42
105
+
```
106
+
107
+
:::
108
+
:::{tab-item} **Humble**
109
+
:sync: humble
110
+
111
+
```bash
112
+
source /opt/ros/humble/setup.bash
113
+
export ROS_DOMAIN_ID=42
114
+
```
115
+
116
+
:::
117
+
::::
118
+
119
+
> **Note:** The value 42 serves just as an example. Use an individual ID for every ROS 2
120
+
> node that is expected to participate in a given ROS 2 graph in order to avoid conflicts
121
+
> in handling messages.
122
+
123
+
- If you miss to source the ROS 2 setup bash script, you will not be able
124
+
to execute any ROS 2 command.
125
+
126
+
- If you forget to set a dedicated ``ROS_DOMAIN_ID``, the ROS 2 command will
127
+
be executed and may partially behave as expected. But you have to expect a diversity of
128
+
unexpected behaviors too.
129
+
130
+
- Ensure you use the same ``ROS_DOMAIN_ID`` for every ROS 2 node that is
131
+
expected to participate in a given ROS 2 graph.
132
+
- Ensure you use an individual ``ROS_DOMAIN_ID`` for every ROS 2 communication
133
+
graph, in order to avoid conflicts in message handling.
134
+
92
135
## Step-by-step Setup
93
136
94
137
The Step-by-step Setup will present a series of steps to follow which will configure and install the necessary content on your system. If you prefer to perform the steps automatically, use the [Express Setup](#express-setup) guide.
0 commit comments