Reaching state of other agents

Hi,
Could an agent get the state of other agent by knowing it Id?
I know that it is possible to do this by messages . One agent send a message to agent and receive message with the data . Is there other way to do this ?

Hello,

Messaging is a great way to interact with a specific agent. The other way you can do this is by providing your agent with a large search_radius that is guaranteed to always capture the position of the other agent. Then you can filter context.neighbors() by searching for the specific agent_id.

This method is similar to how the Networks Library functions, so you could consider using it.

Best,
-Nur

1 Like