Detect colored LED's with omnidirectionnal camera in LUA
Posted: Mon Feb 25, 2019 11:35 pm
Hello,
I am actually trying to get informations from the colored omnidirectionnal camera in a LUA script to locate cylinder with red colored LED.
I am beginner with the use of detectors and LUA, so a lot of things are a little bit difficult for me.
Actually, I try to get the color value with this line :
detected_color = robot.colored_blob_omnidirectional_camera.color
and the angle value with this one :
color_angle = robot.colored_blob_omnidirectional_camera.angle
but it doesn't work.
Thank you very much for help !
I am actually trying to get informations from the colored omnidirectionnal camera in a LUA script to locate cylinder with red colored LED.
I am beginner with the use of detectors and LUA, so a lot of things are a little bit difficult for me.
Actually, I try to get the color value with this line :
detected_color = robot.colored_blob_omnidirectional_camera.color
and the angle value with this one :
color_angle = robot.colored_blob_omnidirectional_camera.angle
but it doesn't work.
Thank you very much for help !