Page 1 of 1

Sharing of array of values among foot-bots

Posted: Sun Jun 30, 2019 7:12 am
by Waqar731
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

Re: Sharing of array of values among foot-bots

Posted: Mon Jul 01, 2019 2:16 pm
by pincy
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.