Ask Your Question

Revision history [back]

You have to create a custom message which includes the sensor_msgs/Image as well as the additional data that you want. Those could be primitives (e.g. int8) or other compound messages (e.g. geometry_msgs/Polygon, not quite sure if this specific one helps, though).

There is a tutorial about how to create custom m essages. Then you need to fill the respective fields and adapt your publisher accordingly.