Skip to content
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

How to get the minimap channel for one of the groups? #84

Open
IpadLi opened this issue Mar 3, 2021 · 2 comments
Open

How to get the minimap channel for one of the groups? #84

IpadLi opened this issue Mar 3, 2021 · 2 comments

Comments

@IpadLi
Copy link

IpadLi commented Mar 3, 2021

I have add three groups, the first two groups are foods, the third gropu is agent. Here, I found the observation for the agents is, for example (1000, 15, 15, 10), here 1000 means 1000 agents, 15x15 is calculated according to the view range, that is, 7x2+1=15, 10 is the number of channels. Now how can I get the minimap channel of the agent? I understand that the sequence of the channels is "wall -- group 1 -- group 1's hp -- group 1's minimap -- group 2 -- group 2's hp -- group 2's minimap -- group 3 -- group 3's hp -- group 3's minimap". My problem is which one is the agent's minimap? 0 or 9?

@IpadLi
Copy link
Author

IpadLi commented Mar 4, 2021

I found the sequence of adding groups is contrary with the sequence of observation presented in the figure in the get_strated document. In my code, I use magent.gridworld.Config().add_group to add three groups: add_group(food0), add_group(food1), add_group(agent), then the handles for them are: 0 for food 0, 1 for food 1, 2 for agent. I have thought that the sequence of the observation channels may use the same sequence, that is, 0 for wall -- 1 for food 0 -- 2 for food 0's hp -- 3 for food 0's minimap -- ..... But I found that it is on the contrary: 0 for wall -- 1 for agent -- 2 for agent's hp -- 3 for agent's minimap -- .... I don't know whether it is correct.

@Howrhy
Copy link

Howrhy commented Apr 8, 2021

你好 请问你能打开index.html看到战斗的画面而不出现socketerror吗?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants