Page 1 of 1

How to sense the color of a light entity??

Posted: Fri Jul 16, 2021 7:22 am
by joonhee
I want to make an elementary example of consensus achievement using several eyebots and light entities with the color red or blue. I have found CEyebotLightSensor and some different sensors, but I couldn't find a sensor handling with the color of a light entity. And there was no search result about this (at least when I searched). How can I do what I want?

If there is anyone who can help me, please give me some advice. Thanks!!

Re: How to sense the color of a light entity??

Posted: Tue Jul 20, 2021 1:48 pm
by pincy
To see the color of lights, you need to use a camera sensor. Make sure that the LED medium you specify in the .argos is referenced by both the camera sensor and the LED entity. Check the output of argos3 -q led and argos3 -q camera for more information.