Page 1 of 1

Switch off LED light during simulation in LUA

Posted: Mon Mar 23, 2020 9:06 am
by Waqar731
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

Re: Switch off LED light during simulation in LUA

Posted: Tue Mar 24, 2020 2:29 pm
by pincy

Re: Switch off LED light during simulation in LUA

Posted: Tue Mar 24, 2020 4:48 pm
by Waqar731
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

Re: Switch off LED light during simulation in LUA

Posted: Tue Mar 24, 2020 4:49 pm
by pincy
Set LEDs to black.

Re: Switch off LED light during simulation in LUA

Posted: Tue Mar 24, 2020 4:52 pm
by Waqar731
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.

Re: Switch off LED light during simulation in LUA

Posted: Tue Mar 24, 2020 4:55 pm
by pincy
I don't understand the problem then, sorry.

Re: Switch off LED light during simulation in LUA

Posted: Tue Mar 24, 2020 5:07 pm
by Waqar731
No worry,
Thanks for always helping.