-
Notifications
You must be signed in to change notification settings - Fork 233
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
Mulit-Agent 2 image window #239
Comments
There is like a overlay of POV, how to i separate it into two different window? |
And when i run my mulit-agent, it says my multi-agent has AttributeError: 'MultiAgentEvent' object has no attribute 'frame' |
For displaying the each view in a multi-agent environment, the easiest way would probably be use opencv to display the window as follows import cv2
multi_agent_event = controller.step(action=dict(action='RotateRight'))
for i,e in enumerate(multi_agent_event.events):
cv2.imshow('agent%s' % i, e.cv2img) There doesn't appear to be a trivial way to display a window per agent using Unity. I am not clear what you mean by overlay of the POV. If it is the instance segmentation mask, you could display it separately using opencv. To get access to the frame parameter, you must index in to the agent you want to see the frame for: multi_agent_event = controller.step(action=dict(action='RotateRight'))
multi_agent_event.events[0].frame # frame for agent 1
multi_agent_event.events[1].frame # frame for agent 2 (if one exists)
|
Im messing around with this and trying to understand the framework and trying to understand some stuff but wanted to do what @jiafei1224 is doing. It seems like it should be feasible to have multiple controllers that work on the same "server" ? Im confused about a few terms and they dont seem documented really, what is a "controller" supposed to be and what is the "server" supposed to be doing? Was hoping something like
Is it even possible to see the same scene with multiple controllers or is a controller supposed an isolated unity process? I guess can the agents be gotten from server for a controller? |
#343 (comment) |
Hi, |
Can check with you if when running the multi-agent, is it suppose to have two separate pop up window with two different POV? Cause i have only one POV but still able to control both agent.
The text was updated successfully, but these errors were encountered: