I was trying to running animal AI on a yaml file which has three versions of an arena, the goal was to have it randomized when it is training so it shuffles through the arenas randomly. Therefore, I used the following code "-1: !Arena" to instantiate all three arenas. This did not work as expected and results in only training on the last arena.
!ArenaConfig
arenas:
-1: !Arena
pass_mark: 0
t: 250
items:
- !Item
name: Agent
- !Item
name: GoodGoal
- !Item
name: Wall
positions:
- !Vector3 {x: 0.1, y: 0, z: 20}
- !Vector3 {x: 39.9, y: 0, z: 20}
- !Vector3 {x: 20, y: 0, z: 0.1}
- !Vector3 {x: 20, y: 0, z: 39.9}
rotations: [0, 0, 0, 0]
sizes:
- !Vector3 {x: 0.2, y: 10, z: 40}
- !Vector3 {x: 0.2, y: 10, z: 40}
- !Vector3 {x: 39.6, y: 10, z: 0.2}
- !Vector3 {x: 39.6, y: 10, z: 0.2}
colors: #list
- !RGB {r: 0, g: 0, b: 255}
- !RGB {r: 0, g: 0, b: 255}
- !RGB {r: 0, g: 0, b: 255}
- !RGB {r: 0, g: 0, b: 255}
-1: !Arena
pass_mark: 0
t: 250
items:
- !Item
name: Agent
- !Item
name: GoodGoal
- !Item
name: Wall
positions:
- !Vector3 {x: 0.1, y: 0, z: 20}
- !Vector3 {x: 39.9, y: 0, z: 20}
- !Vector3 {x: 20, y: 0, z: 0.1}
- !Vector3 {x: 20, y: 0, z: 39.9}
rotations: [0, 0, 0, 0]
sizes:
- !Vector3 {x: 0.2, y: 10, z: 40}
- !Vector3 {x: 0.2, y: 10, z: 40}
- !Vector3 {x: 39.6, y: 10, z: 0.2}
- !Vector3 {x: 39.6, y: 10, z: 0.2}
colors: #list
- !RGB {r: 255, g: 0, b: 0}
- !RGB {r: 255, g: 0, b: 0}
- !RGB {r: 255, g: 0, b: 0}
- !RGB {r: 255, g: 0, b: 0}
-1: !Arena
pass_mark: 0
t: 250
items:
- !Item
name: Agent
- !Item
name: GoodGoal
- !Item
name: Wall
positions:
- !Vector3 {x: 0.1, y: 0, z: 20}
- !Vector3 {x: 39.9, y: 0, z: 20}
- !Vector3 {x: 20, y: 0, z: 0.1}
- !Vector3 {x: 20, y: 0, z: 39.9}
rotations: [0, 0, 0, 0]
sizes:
- !Vector3 {x: 0.2, y: 10, z: 40}
- !Vector3 {x: 0.2, y: 10, z: 40}
- !Vector3 {x: 39.6, y: 10, z: 0.2}
- !Vector3 {x: 39.6, y: 10, z: 0.2}
colors: #list
- !RGB {r: 255, g: 255, b: 255}
- !RGB {r: 255, g: 255, b: 255}
- !RGB {r: 255, g: 255, b: 255}
- !RGB {r: 255, g: 255, b: 255}