-
Notifications
You must be signed in to change notification settings - Fork 333
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
What the turn action means? #45
Comments
ps. It seems Positive rewards(>0) are better than negative rewards(<0), is that right? |
By default direction system is disabled because we found it is hard for agents to learn. MAgent/src/gridworld/GridWorld.cc Line 21 in 92256aa
Originally we designed our agent with a direction and a sector view range. But we found agents cannot learn how to deal with directions (You know in a map, it is even hard for a human being.) |
Thank you for your reply. It seems that the framework defines Agent's 12 move actions in a world coordinate, which is enough to use. |
You can use MAgent/examples/train_battle.py Lines 64 to 65 in 92256aa
|
Thanks for your reply. However, obs[i] = env.get_observation(handles[i]) is something like |
How can I obtain the velocity information of one agent? |
Where can I add( or reduce or modified) the original actions in code? |
I can only point some related code to you. You have to modify c++ code. Hopefully you are okay with c++.
Another method is that we can get positions of all agents by MAgent/python/magent/gridworld.py Lines 361 to 368 in 92256aa
|
Thanks for your reply. seems only have move actions. I still have not found the attack action. Can someone turnoff the attack actions? |
Well, I have found the action space layout. |
Actions are discrete actions. They can be move, attack and turn.
The move and attack action can be comprehend easily.
However, what does turn means?
I check the frames in render. I found the turn action correspond half-line. So I am confused with the turn action.
Hope for your reply.
The text was updated successfully, but these errors were encountered: