@@ -12,12 +12,12 @@ Install needed dependencies:
12
12
13
13
```
14
14
$ cd ~/image_transport_tutorials_ws/
15
- $ source /opt/ros/galactic /setup.bash
16
- $ rosdep install -i --from-path src --rosdistro galactic -y
15
+ $ source /opt/ros/iron /setup.bash
16
+ $ rosdep install -i --from-path src --rosdistro iron -y
17
17
$ colcon build
18
18
```
19
19
20
- Make sure to include the correct setup file (in the above example it is for Galactic on Ubuntu and for bash).
20
+ Make sure to include the correct setup file (in the above example it is for Iron on Ubuntu and for bash).
21
21
22
22
## Writing a Simple Image Publisher (C++)
23
23
Description: This tutorial shows how to create a publisher node that will continually publish an image.
@@ -239,13 +239,13 @@ Notice that `compressed_image_transport` is not a dependency of your package; `i
239
239
The easiest way to add the "compressed" transport is to install the package:
240
240
241
241
```
242
- $ sudo apt-get install ros-galactic -compressed-image-transport
242
+ $ sudo apt-get install ros-iron -compressed-image-transport
243
243
```
244
244
245
245
Or install all the transport plugins at once:
246
246
247
247
```
248
- $ sudo apt-get install ros-galactic -image-transport-plugins
248
+ $ sudo apt-get install ros-iron -image-transport-plugins
249
249
```
250
250
251
251
But you can also build from source.
@@ -256,7 +256,7 @@ The key is that `image_transport` subscribers check the parameter `_image_transp
256
256
Let's set this parameter and start a subscriber node with name "compressed_listener":
257
257
258
258
```
259
- $ ros2 run image_transport_tutorials my_subscriber --ros-args --remap __name:=compressed_listener -p _image_transport :=compressed
259
+ $ ros2 run image_transport_tutorials my_subscriber --ros-args --remap __name:=compressed_listener -p image_transport :=compressed
260
260
```
261
261
262
262
You should see an identical image window pop up.
0 commit comments