ros-perception / image_common

Common code for working with images in ROS
http://www.ros.org/wiki/image_common
125 stars 220 forks source link

[feature-request] Is it possible to inherit from `ros::Publisher` in `image_transport::{Camera,}Publisher`? #172

Open kunaltyagi opened 3 years ago

kunaltyagi commented 3 years ago

For devices with more than 1 camera, and different outputs, it's tedious to have to maintain 2 separate arrays of publishers, separate utility code, etc. Is it possible to inherit from ros::Publisher (or ros::PublisherInterface)? There will be small per regression due to the virtual call, but the modern deep-pipelines shouldn't see a difference after a few iterations.