@@ -39,16 +39,30 @@ They can be enabled by running:
39
39
sudo dnf install ' dnf-command(config-manager)' epel-release -y
40
40
sudo dnf config-manager --set-enabled powertools
41
41
42
+ <<<<<<< HEAD
42
43
.. note :: This step may be slightly different depending on the distribution you are using.
43
44
`Check the EPEL documentation <https://docs.fedoraproject.org/en-US/epel/#_quickstart >`_
45
+ =======
46
+ .. code-block :: console
47
+
48
+ $ sudo dnf install 'dnf-command(config-manager)' epel-release -y
49
+ $ sudo dnf config-manager --set-enabled crb
50
+
51
+ .. note :: This step may be slightly different depending on the distribution you are using.
52
+ `Check the EPEL documentation <https://docs.fedoraproject.org/en-US/epel/#_quickstart >`_
53
+
54
+ .. group-tab :: Fedora
55
+
56
+ No additional setup required.
57
+ >>>>>>> 2901e65 (Add $ to Installation/Alternatives (#5354))
44
58
45
59
46
60
Install development tools and ROS tools
47
61
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
48
62
49
- .. code-block :: bash
63
+ .. code-block :: console
50
64
51
- sudo dnf install -y \
65
+ $ sudo dnf install -y \
52
66
cmake \
53
67
gcc-c++ \
54
68
git \
@@ -64,9 +78,9 @@ Install development tools and ROS tools
64
78
python3-setuptools \
65
79
python3-vcstool
66
80
67
- # install some pip packages needed for testing and
68
- # not available as RPMs
69
- python3 -m pip install -U --user \
81
+ ~ install some pip packages needed for testing and
82
+ ~ not available as RPMs
83
+ $ python3 -m pip install -U --user \
70
84
flake8-blind-except==0.1.1 \
71
85
flake8-builtins \
72
86
flake8-class-newline \
@@ -84,11 +98,11 @@ Get ROS 2 code
84
98
85
99
Create a workspace and clone all repos:
86
100
87
- .. code-block :: bash
101
+ .. code-block :: console
88
102
89
- mkdir -p ~ /ros2_{DISTRO}/src
90
- cd ~ /ros2_{DISTRO}
91
- vcs import --input https://raw.githubusercontent.com/ros2/ros2/{REPOS_FILE_BRANCH}/ros2.repos src
103
+ $ mkdir -p ~/ros2_{DISTRO}/src
104
+ $ cd ~/ros2_{DISTRO}
105
+ $ vcs import --input https://raw.githubusercontent.com/ros2/ros2/{REPOS_FILE_BRANCH}/ros2.repos src
92
106
93
107
.. _rhel-development-setup-install-dependencies-using-rosdep :
94
108
@@ -97,11 +111,17 @@ Install dependencies using rosdep
97
111
98
112
.. include :: ../_Dnf-Update-Admonition.rst
99
113
100
- .. code-block :: bash
114
+ .. code-block :: console
101
115
116
+ <<<<<<< HEAD
102
117
sudo rosdep init
103
118
rosdep update
104
119
rosdep install --from-paths src --ignore-src -y --skip-keys "asio cyclonedds fastcdr fastrtps ignition-cmake2 ignition-math6 python3-babeltrace python3-mypy rti-connext-dds-6.0.1 urdfdom_headers"
120
+ =======
121
+ $ sudo rosdep init
122
+ $ rosdep update
123
+ $ rosdep install --from-paths src --ignore-src -y --skip-keys "fastcdr rti-connext-dds-7.3.0 urdfdom_headers"
124
+ >>>>>>> 2901e65 (Add $ to Installation/Alternatives (#5354))
105
125
106
126
Install additional DDS implementations (optional)
107
127
-------------------------------------------------
@@ -118,28 +138,47 @@ The output should be empty.
118
138
119
139
More info on working with a ROS workspace can be found in :doc: `this tutorial <../../Tutorials/Beginner-Client-Libraries/Colcon-Tutorial >`.
120
140
121
- .. code-block :: bash
141
+ .. code-block :: console
122
142
143
+ <<<<<<< HEAD
123
144
cd ~/ros2_{DISTRO}/
124
145
colcon build --symlink-install --cmake-args -DTHIRDPARTY_Asio=ON -DPython3_EXECUTABLE=/usr/bin/python3 --no-warn-unused-cli
146
+ =======
147
+ $ cd ~/ros2_{DISTRO}/
148
+ $ colcon build --symlink-install
149
+ >>>>>>> 2901e65 (Add $ to Installation/Alternatives (#5354))
125
150
126
151
Note: if you are having trouble compiling all examples and this is preventing you from completing a successful build, you can use ``COLCON_IGNORE `` in the same manner as `CATKIN_IGNORE <https://github.com/ros-infrastructure/rep/blob/master/rep-0128.rst >`__ to ignore the subtree or remove the folder from the workspace.
127
152
Take for instance: you would like to avoid installing the large OpenCV library.
128
153
Well then simply run ``touch COLCON_IGNORE `` in the ``cam2image `` demo directory to leave it out of the build process.
129
154
155
+ <<<<<<< HEAD
130
156
Environment setup
157
+ =======
158
+ If you are having trouble compiling all examples and this is preventing you from completing a successful build, you can use the ``--packages-skip `` colcon flag to ignore the package that is causing problems.
159
+ For instance, if you don't want to install the large OpenCV library, you could skip building the packages that depend on it using the command:
160
+
161
+ .. code-block :: console
162
+
163
+ $ colcon build --symlink-install --packages-skip image_tools intra_process_demo
164
+
165
+ Setup environment
166
+ >>>>>>> 2901e65 (Add $ to Installation/Alternatives (#5354))
131
167
-----------------
132
168
133
169
Source the setup script
134
170
^^^^^^^^^^^^^^^^^^^^^^^
135
171
136
172
Set up your environment by sourcing the following file.
137
173
138
- .. code-block :: bash
174
+ .. code-block :: console
175
+
176
+ $ . ~/ros2_{DISTRO}/install/local_setup.bash
139
177
140
- # Replace ".bash" with your shell if you're not using bash
141
- # Possible values are: setup.bash, setup.sh, setup.zsh
142
- . ~ /ros2_{DISTRO}/install/local_setup.bash
178
+ .. note ::
179
+
180
+ Replace ``.bash `` with your shell if you're not using bash.
181
+ Possible values are: ``setup.bash ``, ``setup.sh ``, ``setup.zsh ``.
143
182
144
183
.. _rhel_talker-listener :
145
184
@@ -148,17 +187,17 @@ Try some examples
148
187
149
188
In one terminal, source the setup file and then run a C++ ``talker ``\ :
150
189
151
- .. code-block :: bash
190
+ .. code-block :: console
152
191
153
- . ~ /ros2_{DISTRO}/install/local_setup.bash
154
- ros2 run demo_nodes_cpp talker
192
+ $ . ~/ros2_{DISTRO}/install/local_setup.bash
193
+ $ ros2 run demo_nodes_cpp talker
155
194
156
195
In another terminal source the setup file and then run a Python ``listener ``\ :
157
196
158
- .. code-block :: bash
197
+ .. code-block :: console
159
198
160
- . ~ /ros2_{DISTRO}/install/local_setup.bash
161
- ros2 run demo_nodes_py listener
199
+ $ . ~/ros2_{DISTRO}/install/local_setup.bash
200
+ $ ros2 run demo_nodes_py listener
162
201
163
202
You should see the ``talker `` saying that it's ``Publishing `` messages and the ``listener `` saying ``I heard `` those messages.
164
203
This verifies both the C++ and Python APIs are working properly.
@@ -184,12 +223,12 @@ Clang
184
223
185
224
To configure CMake to detect and use Clang:
186
225
187
- .. code-block :: bash
226
+ .. code-block :: console
188
227
189
- sudo dnf install clang
190
- export CC=clang
191
- export CXX=clang++
192
- colcon build --cmake-force-configure
228
+ $ sudo dnf install clang
229
+ $ export CC=clang
230
+ $ export CXX=clang++
231
+ $ colcon build --cmake-force-configure
193
232
194
233
Stay up to date
195
234
---------------
@@ -209,6 +248,6 @@ Uninstall
209
248
210
249
2. If you're also trying to free up space, you can delete the entire workspace directory with:
211
250
212
- .. code-block :: bash
251
+ .. code-block :: console
213
252
214
- rm -rf ~ /ros2_{DISTRO}
253
+ $ rm -rf ~/ros2_{DISTRO}
0 commit comments