Page 1 of 1

robots communication / information sharing

Posted: Sat Aug 12, 2023 11:46 am
by pelegs
Hi!
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 !

Peleg

Re: robots communication / information sharing

Posted: Sat Aug 12, 2023 11:50 am
by pincy
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.