How to sense the color of a light entity??

Requests regarding how to set up experiments in ARGoS.
joonhee
Posts: 1
Joined: Wed Oct 21, 2020 6:42 am

How to sense the color of a light entity??

Postby joonhee » Fri Jul 16, 2021 7:22 am

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!!

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

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

Postby pincy » Tue Jul 20, 2021 1:48 pm

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.
I made ARGoS.


Return to “How to... ?”



cron