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

Requests regarding how to set up experiments in ARGoS.
Waqar731
Posts: 31
Joined: Thu Oct 23, 2014 12:33 pm
Location: Pakistan
Contact:

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

Postby Waqar731 » Sun Jun 09, 2019 10:19 am

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.
Waqar Hussain

pincy
Site Admin
Posts: 347
Joined: Thu Mar 08, 2012 8:04 pm
Location: Boston, MA
Contact:

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

Postby pincy » Thu Jun 13, 2019 4:51 am

Just save the led color in a variable.
I made ARGoS.


Return to “How to... ?”



cron