How to use opencv codes in ROS nodes?

asked 2015-07-13 06:16:05 -0600

Kishore Kumar gravatar image

What are all the syntax rules should be followed while using opencv codes in ROS nodes. I used the opencv codes as it is in opencv in ROS and got errors, post me some tutorials or examples to use opencv codes in ROS packages and nodes.

edit retag flag offensive close merge delete

Comments

have you search on google? I found it on the first result...

thdrksdfthmn gravatar imagethdrksdfthmn ( 2015-07-13 06:33:57 -0600 )edit

Yeah i executed that node successfully but when i try to replace that circle drawing code with other codes available in opencv docs like rgb to grey converter, i get some errors and cannot compile

Kishore Kumar gravatar imageKishore Kumar ( 2015-07-13 08:19:10 -0600 )edit

Is it about the number of channels? I have a feeling that it is RGBA2GRAY (or even BGRA2GRAY; OpneCV is loading the image automatically in BGR format)...

Anyway, you shall add the error lines for getting more help

thdrksdfthmn gravatar imagethdrksdfthmn ( 2015-07-13 08:27:13 -0600 )edit