RobotWebTools / web_video_server

HTTP Streaming of ROS Image Topics in Multiple Formats
http://ros.org/wiki/web_video_server
BSD 3-Clause "New" or "Revised" License
280 stars 190 forks source link

Fall back to mjpeg if ros_compressed is unavailable #87

Closed sfalexrog closed 5 years ago

sfalexrog commented 5 years ago

As it turns out, ROS's image_transport does not yet support Python. For us this means that if we're trying to use ros_compressed as our compression type by default, then we won't get any images from Python nodes unless we explicitly request another compression method. This is somewhat unintuitive and frustrating for our users.

My proposed fix is to check whether there's a /compressed topic for the requested image topic and to fall back to mjpeg compression if there isn't.