How to use opencv codes in ROS nodes?

asked Jul 13 '15

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.

Preview: (hide)

Comments

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

thdrksdfthmn gravatar imagethdrksdfthmn (Jul 13 '15)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 (Jul 13 '15)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 (Jul 13 '15)edit