convert iplImage to sensor_msgs::ImageConstPtr
Hi everyone,
I have some problem to understand how to convert images with cvbridge. I red the tutorial : http://wiki.ros.org/cv_bridge/Tutoria... .
But I can't find a way to convert a openCV images to ROS images message. I succed to convert from ROS to openCV.
I wanted to use the function toImageMsg() but it returns a sensor_msgs::Image but I want a sensor_msgs::ImageConstPtr.
Can somebody help me please?
Thank you.