[ros-users] Groovy migration, CvBridge

トップ ページ
添付ファイル:
Eメールのメッセージ
+ (text/plain)
+ (text/html)
このメッセージを削除
このメッセージに返信
著者: User discussions
日付:  
To: User discussions
題目: [ros-users] Groovy migration, CvBridge
Hello,
I am trying to migrate code to groovy and have problems with CvBridge.
Since the tutorials for CvBridge[0] haven't been updated to groovy, I don't
know if the API has changed. Could anyone tell me if CvBridge works now
differently?

The offending code is this one:

void imageDepth_callback(const sensor_msgs::ImageConstPtr& msg)
{
    sensor_msgs::CvBridge bridge;
    IplImage *aux=NULL;
    aux = bridge.imgMsgToCv(msg, msg->encoding.c_str());
    cvCopy(aux, PointCloud_image);
}
The error message is:
error: ‘CvBridge’ is not a member of ‘sensor_msgs’


Regards,
Oier

[0]
http://www.ros.org/wiki/cv_bridge/Tutorials/UsingCvBridgeToConvertBetweenROSImagesAndOpenCVImages