Storing sensor_msgs::Image from cv_bridge
Hello everyone,
I am having some trouble to store the result of cv_bridge::CvImage::toImageMsg() as a sensor_msgs::Image.
The reason why I want to do this is because the sensor_msgs::Image belongs to a custom message I have created which contains some other piece of information.
Is there any way to store a cv::Mat in a sensor_msgs::Image besides doing it "manually" in a for loop?
Thank you in advance.