sensor_msgs::CvBridge::cvToImgMsg in Groovy?
Hello everyone,
Following the tutorial in Ros Wiki for creating a simple image publisher (from a set of .png files) http://ros.org/wiki/image_transport/Tutorials/PublishingImages I found a compilation error in groovy (in fuerte everything works fine):
cv::WImageBuffer3_b image(cvLoadImage(filePath.c_str(), CV_LOAD_IMAGE_COLOR));
sensor_msgs::ImagePtr msg = sensor_msgs::CvBridge::cvToImgMsg(image.Ipl(), "bgr8");
This is the error I found:
error: ‘sensor_msgs::CvBridge’ has not been declared
I suppose that the API has changed, but I cannot find an alternative way. Can somebody help me?
Thank you in advance