robots communication / information sharing

Requests regarding how to set up experiments in ARGoS.
Posts: 2
Joined: Sat Aug 12, 2023 10:33 am

robots communication / information sharing

Postby pelegs » Sat Aug 12, 2023 11:46 am

I'm trying to do flocking with perfect information (each robot has full knowledge of all other robots position and orientation).

I was going over the examples and they all use Omnidirectional camera and lights sensors. Since each robot knows its own Position and orientation I'm trying to find a way to share that information with all the others.
My direction of think now is using the loop function to somehow share that.

I know this is not a real world scenario but its just a POC.

Thank you in advance for the help and for the awesome simulator !


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

Re: robots communication / information sharing

Postby pincy » Sat Aug 12, 2023 11:50 am

Yes, the correct way to use the loop functions. You can copy what the foraging example already does: you endow the robot controllers of a way to get the information about the position of all the other robots, such as a Set() method of some sort. Then in the loop function you access the embodied entity of each robot you want and give that info to the controllers that need it.
I made ARGoS.

Return to “How to... ?”