Robotics StackExchange | Archived questions

cv::Point2d as a ROS Message

Hello everyone !

I would like to send a cv::Point2d as a ROS message. Is it possible ? I'm not sure whether it is or not.

Otherwise I can send a custom ROS message using 2 variables (int point.x and int point.y).

Thank you for your help !

Asked by matt27110 on 2017-02-19 18:10:49 UTC

Comments

I don't know about cv::Point2d, but whatever you do, I wouldn't use a custom msg. Would geometry_msgs/Point not work?

Asked by gvdhoorn on 2017-02-20 03:53:57 UTC

Not yet tested with geometry_msgs

Asked by matt27110 on 2017-02-20 06:48:57 UTC

I've just tested it and it works !! Thank you !

Asked by matt27110 on 2017-02-20 07:04:25 UTC

Answers