- Python3
- Pytorch
- OpenAI gym
- Box2D
- swig
conda create -f environment.yaml
conda activate ICRA
sudo apt-get install swig # or install from source
pip3 install gym box2d box2d-kengz
pip3 install pytorch
python3 ICRABattleField.py
You can use WASD to move the red robot, QE to rotate it, SPACE to shoot projectiles (the gun will aim the enemy automatically) and R to supply projectiles (in the red supply area, top middle).
python3 train.py --seed 233 --enemy hand --save_model_path "ICRA_save.model" --epoch 1000 --update_step 10
Use the hand-written agent as the enemy. Save the trained model to ICRA_save.model. Train 1000 epoches and update the model every 10 epoch.
python3 test.py --seed 233 --enemy hand --load_model --load_model_path "ICRA_save.model" --epoch 50
Use the hand-written agent as the enemy. Use the trained model in ICRA.model. Test 50 epoches.
ICRA Map ConstructionBullet SimulationDamage and blood calculationSimple strategy implementionPath planningMoving behaviour with mecanum wheels