LUA, footbot going directly at destroy()

Discussions regarding ARGoS bugs. Report bugs here.
guiMaitre
Posts: 5
Joined: Mon Mar 04, 2019 9:26 am

LUA, footbot going directly at destroy()

Postby guiMaitre » Thu Mar 14, 2019 3:30 pm

Hello,

The problem:
Some of my footbot (not always the same) will directly go to the function destroy(). The proportion is between 2-10 footbot destroying themself out of 100 footbot. The screenshot show what is happening.
The code to write the log is in the destroy function and the only way to get there is the end of the experiment (50000 ticks normally ).

After spending some times looking for an answer or something wrong in my code that would run the destroy function, I don't see anything wrong and get 0 error of compilation. Is this normal or something like the 2 footbot spawning in each other and destroying each other?

It would be great to know how to avoid this problem because I need the right amount of footbot.

Thank a lot for the futur response,
Best regards.
Attachments
Capture d’écran 2019-03-14 à 15.12.53.png
Capture d’écran 2019-03-14 à 15.12.53.png (151.28 KiB) Viewed 205 times

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

Re: LUA, footbot going directly at destroy()

Postby pincy » Thu Mar 14, 2019 3:35 pm

Without your code it's impossible to tell. Please share your code and your argos file.
I made ARGoS.

guiMaitre
Posts: 5
Joined: Mon Mar 04, 2019 9:26 am

Re: LUA, footbot going directly at destroy()

Postby guiMaitre » Thu Mar 14, 2019 3:49 pm

Sorry here is the code.
Attachments
comsecurisation1.txt
argos file
(4.47 KiB) Downloaded 6 times
receiver0.txt
footbotCode
(4.63 KiB) Downloaded 6 times

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

Re: LUA, footbot going directly at destroy()

Postby pincy » Thu Mar 14, 2019 3:54 pm

I can't run your files because one_spot.png is missing.
I made ARGoS.

guiMaitre
Posts: 5
Joined: Mon Mar 04, 2019 9:26 am

Re: LUA, footbot going directly at destroy()

Postby guiMaitre » Thu Mar 14, 2019 3:59 pm

Everything is here this time
Attachments
zipCode.zip
(13.06 KiB) Downloaded 6 times

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

Re: LUA, footbot going directly at destroy()

Postby pincy » Thu Mar 14, 2019 4:18 pm

I tested your code and it works perfectly. I don't observe the issue you mention. What can I do to make it happen?
I made ARGoS.

guiMaitre
Posts: 5
Joined: Mon Mar 04, 2019 9:26 am

Re: LUA, footbot going directly at destroy()

Postby guiMaitre » Thu Mar 14, 2019 4:53 pm

Some more information: I runned the code with that problem on 2 computer : a MacBook air 2014 (macOS 10.14.3) and a desktop computer (latest Ubuntu available) with 12gb RAM and a coreI7 @ 4.8Ghz. Both of them had the problem.
The version of ARGoS I use is the last one, (started not long ago).
If you need more information on my setup just ask me.
I have an other footbot experiment that do something else working without this bug.
But it's strange since it occur before the simulation even start I think.


Return to “Bugs”



cron