Changing LED color of Kilobots using LUA

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

Changing LED color of Kilobots using LUA

Postby Waqar731 » Wed Jul 17, 2019 4:52 am

Hi,
Can we change the led color of kilobots using lua. Because when I am trying the following command in lua then I am getting the error.

Code: Select all

robot.leds.set_single_color(1,"red")

After writing the above command in lua, I am getting the following error.

Code: Select all

attempt to index field 'leds' (a nil value)

What's wrong with the command?

The same command easily change the led color of foot-bot in Lua. But not working with kilobots :?:

Thanks
Waqar Hussain

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

Re: Changing LED color of Kilobots using LUA

Postby pincy » Wed Jul 17, 2019 7:25 am

The Kilobot does not support Lua.
I made ARGoS.


Return to “How to... ?”