MAgent icon indicating copy to clipboard operation
MAgent copied to clipboard

env.add_agents can not add all agents

Open ElizabethDuo opened this issue 3 years ago • 0 comments

Hi MAgent team, thank you for your great project!

I am trying adding more agents by env.add_agents(handles[0], method="custom", pos=pos_a) env.add_agents(handles[1], method="custom", pos=pos_b) env.add_agents(handles[2], method="custom", pos=pos_c) env.add_agents(handles[3], method="custom", pos=pos_d) pos_a, pos_b, pos_c, pos_d are lists of xy cordinations without repeat. And all positions are within the map. Each position list has 64 positions, that is adding 64 agents. But when adding the pos_d, there are only 24 agents being added.

Any idea of why it happens? Thanks for the help!

ElizabethDuo avatar Jun 24 '21 03:06 ElizabethDuo