Skip to content

Commit 6c3fb37

Browse files
gbiggshidmic
authored andcommitted
Use $CHOOSE_ROS_DISTRO uniformly (ros2#123)
Change uses of `$ROS_DISTRO` (the old variable name in previous documentation, if I recall correctly) to `$CHOOSE_ROS_DISTRO`. Going the other way and unifying on `$ROS_DISTRO` would also work, but I am not aware of why `$CHOOSE_ROS_DISTRO` was chosen so maybe that was to avoid confusion with a ROS-provided environment variable.
1 parent 534d677 commit 6c3fb37

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

source/Installation/Linux-Install-Debians.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ You may want to add this to your ``.bashrc``.
116116

117117
.. code-block:: bash
118118
119-
echo "source /opt/ros/$ROS_DISTRO/setup.bash" >> ~/.bashrc
119+
echo "source /opt/ros/$CHOOSE_ROS_DISTRO/setup.bash" >> ~/.bashrc
120120
121121
Install additional RMW implementations
122122
--------------------------------------
@@ -129,8 +129,8 @@ To install support for OpenSplice or RTI Connext on Bouncy:
129129
.. code-block:: bash
130130
131131
sudo apt update
132-
sudo apt install ros-$ROS_DISTRO-rmw-opensplice-cpp # for OpenSplice
133-
sudo apt install ros-$ROS_DISTRO-rmw-connext-cpp # for RTI Connext (requires license agreement)
132+
sudo apt install ros-$CHOOSE_ROS_DISTRO-rmw-opensplice-cpp # for OpenSplice
133+
sudo apt install ros-$CHOOSE_ROS_DISTRO-rmw-connext-cpp # for RTI Connext (requires license agreement)
134134
135135
By setting the environment variable ``RMW_IMPLEMENTATION=rmw_opensplice_cpp`` you can switch to use OpenSplice instead.
136136
For ROS 2 releases Bouncy and newer, ``RMW_IMPLEMENTATION=rmw_connext_cpp`` can also be selected to use RTI Connext.
@@ -151,13 +151,13 @@ Now you can install the remaining packages:
151151
.. code-block:: bash
152152
153153
sudo apt update
154-
sudo apt install ros-$ROS_DISTRO-ros1-bridge
154+
sudo apt install ros-$CHOOSE_ROS_DISTRO-ros1-bridge
155155
156156
The turtlebot2 packages are available in Bouncy but not Crystal.
157157

158158
.. code-block:: bash
159159
160-
sudo apt install ros-$ROS_DISTRO-turtlebot2-*
160+
sudo apt install ros-$CHOOSE_ROS_DISTRO-turtlebot2-*
161161
162162
Build your own packages
163163
-----------------------

0 commit comments

Comments
 (0)