Skip to content

Commit f749b92

Browse files
wentasahberndpfrommer
authored andcommitted
README: Add usage instructions for Jazzy
The syntax mentioned in the README no longer works there.
1 parent 09c09cb commit f749b92

File tree

1 file changed

+11
-4
lines changed

1 file changed

+11
-4
lines changed

‎README.md‎

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -115,11 +115,18 @@ see for instance [here](https://gitlab.com/boldhearts/ros2_v4l2_camera/-/blob/fo
115115
Here the ROS parameters work as expected to modify the mapping between
116116
encoding and decoder.
117117

118-
The following line shows how to specify the decoder when republishing.
118+
The following lines shows how to specify the decoder when republishing.
119119
For example to decode incoming ``hevc_nvenc`` packets with the ``hevc`` decoder:
120-
```
121-
ros2 run image_transport republish ffmpeg in/ffmpeg:=image_raw/ffmpeg raw out:=image_raw/uncompressed --ros-args -p "ffmpeg_image_transport.map.hevc_nvenc:=hevc"
122-
```
120+
121+
- ROS 2 Humble:
122+
```
123+
ros2 run image_transport republish ffmpeg in/ffmpeg:=image_raw/ffmpeg raw out:=image_raw/uncompressed --ros-args -p "ffmpeg_image_transport.map.hevc_nvenc:=hevc"
124+
```
125+
- ROS 2 Jazzy:
126+
```
127+
ros2 run image_transport republish --ros-args -p in_transport:=ffmpeg -p out_transport:=raw --remap in/ffmpeg:=image_raw/ffmpeg --remap out:=image_raw/uncompressed -p "ffmpeg_image_transport.map.hevc_nvenc:=hevc"
128+
```
129+
Note: The commands below use the Humble syntax and need to be changed as shown here for Jazzy.
123130

124131
Republishing is generally not necessary so long as publisher and subscriber both properly use
125132
an image transport. Some nodes however, notably the rosbag player, do not support a proper transport,

0 commit comments

Comments
 (0)