-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Send message from gridworld on behalf of agent, e.g. from an action #111
Comments
@jwaa help |
Help is on the way! This functionality is currently missing. This will probably be part of the next version that revolves around events/scenario-management. The idea then is to have a kind of event system nested in the Your second question is about why the However, you did found a bug. Previously we decided to enforce all messages to be of type |
AIMS was in need of this feature, but I fixed it in a different manner, so for now there is no hurry. In AIMS, agents have a memory in which they memorize things they have seen. Agents exchanged memory items through messages, which needed to be done in an action now: Agent A performs action IdentifyBuildingStatus, which in the mutate identifies the building status, updates the memory of Agent A, and was suppossed to sent a message to Agent B with the new info. The latter part was thus not possible, so I fixed this by directly changing the memory of Agent B in the action's mutate function. So for now, no high priority for this feature, but it is something we do indeed need in the long term for the event system, and overal is a handy feature to have. As for the second question, I refer to this line of code: https://github.com/matrx-software/matrx/blob/dev/matrx/agents/agent_brain.py#L517
Why is the message (assumed to be) packed as the content of a message? I can't wrap my head around the logic behind this, so I can't determine if it is a bug or not, but I would say so. By the way, I remember we talked about that messages should not be deleted anymore, but only set to read? |
It seems there still some bugs out there regarding Message. I gues it originates when we transitioned from a more 'closed' message system ("just provide the content, MATRX does the rest"), to a more open system ("create your own message [type], en MATRX does the sending"). In this specific case the inline comment is misleading: Since it seems messaging is littered with bugs and unclarity, I made a single bug report to encapsulate all of these: #112 Finally, I added a feature request to include an action with which an message can be send: #113 |
What is your question?
Is it possible from the gridworld, e.g. from an action, to send a message?
I thought of using the get_messages_func, adding the new message, and then adding it to the agent using the set_messages_func. However, that does not work, as the set_messages_func puts every message as the content of a new message (???). Why do we want that?
To what is your question related?
The text was updated successfully, but these errors were encountered: