openai / multiagent-particle-envs

Code for a multi-agent particle environment used in the paper "Multi-Agent Actor-Critic for Mixed Cooperative-Competitive Environments"
https://arxiv.org/pdf/1706.02275.pdf
MIT License
2.33k stars 785 forks source link

How to delete a landmark when training #91

Open liuqi8827 opened 3 years ago

liuqi8827 commented 3 years ago

How to delete a landmark when training.

Thanks a lot.

dperr5910 commented 3 years ago

removing it from the world.landmarks list worked for me. It even removed it from the rendered window, although it did take a second. You will have to do this in the world object of the scenario you are working with, and put the condition to delete somewhere that will run every iteration, such as possibly the observation or step methods.

Hope this helps!