Page 1 of 1

How to get the led color of foot-bot itself?

Posted: Sun Jun 09, 2019 10:19 am
by Waqar731
Hello,
I am trying to get the led color of foot-bot itself during the simulation. Actually if a foot-bot wants to get the led color of nearby robots, then it uses the omni-directional camera. But if a robot wants to get the led color of itself, then how it can do this? Once, we assign color to led of a particular foot-bot, then what line of code can get the led color of robot itself?

If we see in LED_Actuator.h file, then there is a function to set the led color, while there is no function to get the led color. In short, there is no LED sensor which can detect the LED color of the foot-bot itself.

Any help would be helpful for me.


Thanks and Best Regards.

Re: How to get the led color of foot-bot itself?

Posted: Thu Jun 13, 2019 4:51 am
by pincy
Just save the led color in a variable.