opencv_error running node created by following vision_opencv tutorial
I tried to follow this page
http://wiki.ros.org/cv_bridge/Tutorials/ConvertingBetweenROSImagesAndOpenCVImagesPython
after using catkin_make I tried to run the code following is the error:
admin-pc@admin-pc:~/mywork$ rosrun mycv mycv.py
Traceback (most recent call last):
File "/home/admin-pc/mywork/src/mycv/scripts/mycv.py", line 12, in <module>
class image_converter:
File "/home/admin-pc/mywork/src/mycv/scripts/mycv.py", line 48, in image_converter
main(sys.argv)
File "/home/admin-pc/mywork/src/mycv/scripts/mycv.py", line 39, in main
ic = image_converter()
NameError: global name 'image_converter' is not defined
Please tell how to fix this problem
Asked by lifelonglearner on 2013-10-09 17:53:11 UTC
Comments