Can I use image transport for the two different image topics?
Using an RGBD camera (RealSense D435), we want to log compressed color images (JPEG 'compressed'), and depth images (PNG 'compressedDepth'). The realsense driver publishes these compressed topics which is great.
However the problem comes in processing the two types data: Image transport gives some tutorials on how to subscribe to a compressed topic using a single param 'image_transport compressed'
But these two topics are of a different type, so we cannot set a single 'image_transport' variable to compressed or compressedDepth.
Question: Can a single application use image_transport to subscribe to both a compressed JPEG topic and a compressedDepth PNG topic. This is needed to be able to run Visual Odometry on this data.