Moving footbot towards light source 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:

Moving footbot towards light source using LUA

Postby Waqar731 » Thu May 28, 2020 6:02 am

HI,
I am trying to move footbot towards one light source out of two light source. I have inserted two light sources in arena with one footbot. Means light sensor on footbot detects two light sources, when I run the simulation then robot doesn't go to one of two light sources. I want to make sure that robot should move towards the left one light source, but it first go to the center of both light sources, then it go towards the right light source and start circling there. How can we make robot straight go to left light source rather than the right light source.


Thanks
Attachments
video.mp4
(1000.48 KiB) Downloaded 520 times
Waqar Hussain

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

Re: Moving footbot towards light source using LUA

Postby pincy » Tue Jun 02, 2020 8:04 pm

The light sensor can't distinguish between light sources. In reality that would be impossible, so ARGoS does not support his scenario either. Use LEDs and a camera.
I made ARGoS.


Return to “How to... ?”