Changing color of led lights of movable and immovable boxes

Requests regarding how to set up experiments in ARGoS.
Arun_AR
Posts: 10
Joined: Tue Aug 22, 2017 6:37 am

Changing color of led lights of movable and immovable boxes

Postby Arun_AR » Thu Nov 16, 2017 2:29 pm

Is there a way to change the color of light these boxes during the course of the experiment dynamically.
<box id="box1" size="0.1,0.1,0.1" movable="true" mass="2.5">
<leds medium="leds">
<led offset=" 0, -0.05,0" anchor="origin" color="red" />
<led offset="0, 0.05,0" anchor="origin" color="red" />
<led offset=" 0.05, 0,0" anchor="origin" color="red" />
<led offset=" -0.05,0,0" anchor="origin" color="red" />
</leds>
</box>

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

Re: Changing color of led lights of movable and immovable boxes

Postby pincy » Thu Nov 16, 2017 7:30 pm

Yes, use the loop functions. There are a few examples already of how to loop through foot-bots. Just change those to loop through LED entities.
I made ARGoS.

Arun_AR
Posts: 10
Joined: Tue Aug 22, 2017 6:37 am

Re: Changing color of led lights of movable and immovable boxes

Postby Arun_AR » Fri Nov 24, 2017 6:36 am

Thank you professor for your kind clarification. I surely will try.


Return to “How to... ?”