Forked from tilk/h264_image_transport.
H264 subscription plugin for the ROS image transport.
This repo has been created to be used in pair with
the nvidia_gmsl_driver_ros but can be used to decode any h264
packets published with the sensor_msgs/CompressedImage
message.
- Create a workspace
mkdir -p catkin_ws/src cd catkin_ws
- Clone the repo
git clone git@github.com:UT-ADL/h264_image_transport.git src/h264_image_transport
- Build and source the workspace
catkin build source devel/setup.bash
- The H264 plugin for the ROS image transport is now available.
-
You can verify that the plugin is loaded correctly with :
rosrun image_transport list_transports
You should see :
"image_transport/h264" - Provided by package: h264_image_transport - No publisher provided - Subscriber: This plugin decodes a h264 video stream.
-
You can then decompress h264 messages like so :
rosrun image_transport republish h264 in:=/interfacea/link0/image out:=/interfacea/link0/image/repub
For details see the image transport republish doc.