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

Problems about the agent-action mapping in some scenarios #354

Open
sharinka0715 opened this issue May 4, 2023 · 0 comments
Open

Problems about the agent-action mapping in some scenarios #354

sharinka0715 opened this issue May 4, 2023 · 0 comments

Comments

@sharinka0715
Copy link

Hi there, I would like to know the agent-action mapping rule in multi-agent scenarios, and I have no idea about it.

Here are some examples:

  • academy_3_vs_1_with_keeper, number_of_left_players_agent_controls=3, it controls the 3 center midfields.
  • academy_3_vs_1_with_keeper, number_of_left_players_agent_controls=4, it controls the 3 center midfields and the goalkeeper, and agent 0 is the goalkeeper.
  • academy_3_vs_1_with_keeper + AddPlayer(0.4 ,0.0, e_PlayerRole_CM), number_of_left_players_agent_controls=3, it controls 3 center midfields.
  • academy_3_vs_1_with_keeper + AddPlayer(0.4 ,0.0, e_PlayerRole_CM), number_of_left_players_agent_controls=4, it controls 3 center midfields and the goalkeeper, instead of 4 center midfields.
  • academy_3_vs_1_with_keeper + AddPlayer(0.4 ,0.0, e_PlayerRole_CM), number_of_left_players_agent_controls=5, it controls 4 center midfields and the goalkeeper, and agent 0 is the goalkeeper.

This also exists in pass_and_shot_with_keeper, and run_pass_and_shot_with_keeper. I drew some conclusions that might be strange:

  • The mapping order between number_of_left_players_agent_controls!=number_of_left_controllable_agents and number_of_left_players_agent_controls==number_of_left_controllable_agents is different.
  • The goalkeeper will not be controlled following the default setting, but when an extra player is added, I cannot controll all agents except the goalkeeper. (This might be resolved by setting controllable=False, but that is not what I want to figure out.)

By the way, the mapping order seems to be determined in the C++ code of football engine, but I can only understand the Python code. If there is someone can help me to understand the agent-action mapping order?

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

1 participant