SetChanged()

Requests regarding how to set up experiments in ARGoS.
badri86
Posts: 8
Joined: Thu May 16, 2019 10:02 am

SetChanged()

Postby badri86 » Wed Jul 03, 2019 1:28 pm

I'm using SetChanged() function to update floor texture, but the simulation becomes slow and heavy when NBR of targets > 100 :!: :?:

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

Re: SetChanged()

Postby pincy » Wed Jul 03, 2019 4:07 pm

Every time you use SetChanged(), a new texture is created. This makes the simulation slow. If you run ARGoS without visualization, there is no need for a new texture and the simulation is very fast.
I made ARGoS.

badri86
Posts: 8
Joined: Thu May 16, 2019 10:02 am

Re: SetChanged()

Postby badri86 » Wed Jul 03, 2019 6:20 pm

there is no another methods to replace stchange() in foraging example??

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

Re: SetChanged()

Postby pincy » Wed Jul 03, 2019 6:24 pm

If you tell me what you're trying to accomplish, I can try and help you.
I made ARGoS.

badri86
Posts: 8
Joined: Thu May 16, 2019 10:02 am

Re: SetChanged()

Postby badri86 » Wed Jul 03, 2019 6:37 pm

I'm devloping an algorithm of foragin with multi-nest and distribution, I'm starting with modified foraging example of ARGoS but when I use plus of 100 targets and 24 robots, the simulation will be slow

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

Re: SetChanged()

Postby pincy » Wed Jul 03, 2019 6:41 pm

There really isn't a way around this if you want to visualize the simulation. Without the GUI, ARGoS is extremely fast because no texture needs to be generated. You can make the textures less heavy to generate by working on the resolution - check the inline help of "argos3 -q floor" and read the part about "pixels_per_meter".
I made ARGoS.

badri86
Posts: 8
Joined: Thu May 16, 2019 10:02 am

Re: SetChanged()

Postby badri86 » Wed Jul 03, 2019 6:55 pm

thank you, i'm changed value of pixels_per_meter to 25, :idea:


Return to “How to... ?”