Switch off LED light during simulation in LUA

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

Switch off LED light during simulation in LUA

Postby Waqar731 » Mon Mar 23, 2020 9:06 am

Hi everyone,
How can we off the LED during the simulation in LUA? For example when we want to on the LED then we use the following command.

Code: Select all

robot.leds.set_single_color(13, "red")
By which command we can turn off the LED during simulation which we had turn on before?

Thanks
Waqar Hussain

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

Re: Switch off LED light during simulation in LUA

Postby pincy » Tue Mar 24, 2020 2:29 pm

I made ARGoS.

Waqar731
Posts: 65
Joined: Thu Oct 23, 2014 12:33 pm
Location: Pakistan
Contact:

Re: Switch off LED light during simulation in LUA

Postby Waqar731 » Tue Mar 24, 2020 4:48 pm

Hi Sir,
I have seen the link, where only discussed about switch on of LED while there is no mechanism about turning off the LED during the simulation. How can we turn off the LED light once it has been turn on?

Thank You
Last edited by Waqar731 on Tue Mar 24, 2020 4:50 pm, edited 1 time in total.
Waqar Hussain

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

Re: Switch off LED light during simulation in LUA

Postby pincy » Tue Mar 24, 2020 4:49 pm

Set LEDs to black.
I made ARGoS.

Waqar731
Posts: 65
Joined: Thu Oct 23, 2014 12:33 pm
Location: Pakistan
Contact:

Re: Switch off LED light during simulation in LUA

Postby Waqar731 » Tue Mar 24, 2020 4:52 pm

I have also set it as black. But still it is being detecting by omni-directional camera. I thought that there may be a way to proper switch off the LED. By the way, I am getting it by setting it black.


Thanks a lot.
Waqar Hussain

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

Re: Switch off LED light during simulation in LUA

Postby pincy » Tue Mar 24, 2020 4:55 pm

I don't understand the problem then, sorry.
I made ARGoS.

Waqar731
Posts: 65
Joined: Thu Oct 23, 2014 12:33 pm
Location: Pakistan
Contact:

Re: Switch off LED light during simulation in LUA

Postby Waqar731 » Tue Mar 24, 2020 5:07 pm

No worry,
Thanks for always helping.
Waqar Hussain


Return to “How to... ?”