File tree Expand file tree Collapse file tree 1 file changed +11
-4
lines changed Expand file tree Collapse file tree 1 file changed +11
-4
lines changed Original file line number Diff line number Diff line change @@ -115,11 +115,18 @@ see for instance [here](https://gitlab.com/boldhearts/ros2_v4l2_camera/-/blob/fo
115115Here the ROS parameters work as expected to modify the mapping between
116116encoding 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.
119119For 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
124131Republishing is generally not necessary so long as publisher and subscriber both properly use
125132an image transport. Some nodes however, notably the rosbag player, do not support a proper transport,
You can’t perform that action at this time.
0 commit comments