Sharing of array of values among foot-bots

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

Sharing of array of values among foot-bots

Postby Waqar731 » Sun Jun 30, 2019 7:12 am

Hi,
Is there any mechanism to share the table value among foot-bots. Means how foot-bots can access the same array values. For example I have a array which store the information about victims robots means their position there id, there position from safe place to danger place. And three foot-bots as rescuer are searching in the arena. So all robots must access the values from the same array. If there are 10 victims then after rescuing any victim robot from the rescuer robot the value of victims should be now 9. And this 9 should be available for all the other rescuer foot-bots. Any example in which we have the common array for values for all the foot-bots in arena.

Thanks
Waqar Hussain

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

Re: Sharing of array of values among foot-bots

Postby pincy » Mon Jul 01, 2019 2:16 pm

This is something ARGoS cannot offer natively because it's not realistic.

You can either simulate it in the loop functions (see the foraging example). A better approach is a distributed database based on message passing. The correct solution depends on your needs. If you're after an unrealistic proof of concept, just use the loop functions. If you need a solution that might work in real life, you can look into distributed hash tables.
I made ARGoS.


Return to “How to... ?”