image_transport 是ros的一个图像处理工具,可以很方便地进行图像数据的压缩,可惜它目前并不支持python
当你如下安装了image_transport及其plugin后
sudo apt install ros-foxy-image-transport*
运行
ros2 run image_transport list_transports
可看到如下内容
Declared transports:
image_transport/compressed
image_transport/compressedDepth
image_transport/raw
image_transport/theoraDetails:
----------
"image_transport/compressed"- Provided by package: compressed_image_transport- Publisher: This plugin publishes a CompressedImage using either JPEG or PNG compression.- Subscriber: