-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Matteo Bettini <[email protected]>
- Loading branch information
1 parent
0b08681
commit e764b02
Showing
25 changed files
with
331 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
defaults: | ||
- _self_ | ||
- pettingzoo_pursuit_config | ||
|
||
task: "pursuit_v4" | ||
# Size of environment world space | ||
x_size: 16 | ||
y_size: 16 | ||
# Whether the rewards should be distributed among all agents | ||
shared_reward: true | ||
# Number of evaders | ||
n_evaders: 30 | ||
# Number of pursuers | ||
n_pursuers: 8 | ||
# Size of the box around the agent that the agent observes. | ||
obs_range: 7 | ||
# Number pursuers required around an evader to be considered caught | ||
n_catch: 2 | ||
# Toggles if evaders can move or not | ||
freeze_evaders: false | ||
# Reward for ‘tagging’, or being single evader. | ||
tag_reward: 0.01 | ||
# Reward added when a pursuer or pursuers catch an evade | ||
cetch_reward: 5.0 | ||
#Reward to agent added in each step | ||
urgency_reward: -0.1 | ||
# Toggles whether evader is removed when surrounded, or when n_catch pursuers are on top of evader | ||
surround: true | ||
# Size of box (from center, in proportional units) which agents can randomly spawn into the environment world. | ||
# Default is 1.0, which means they can spawn anywhere on the map. A value of 0 means all agents spawn in the center. | ||
constraint_window: 1.0 | ||
max_cycles: 500 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
defaults: | ||
- _self_ | ||
- pettingzoo_simple_adversary_config | ||
|
||
task: "simple_adversary_v3" | ||
N: 2 | ||
max_cycles: 100 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
defaults: | ||
- _self_ | ||
- pettingzoo_simple_crypto_config | ||
|
||
task: "simple_crypto_v3" | ||
max_cycles: 100 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
defaults: | ||
- _self_ | ||
- pettingzoo_simple_push_config | ||
|
||
task: "simple_push_v3" | ||
max_cycles: 100 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
defaults: | ||
- _self_ | ||
- pettingzoo_simple_reference_config | ||
|
||
task: "simple_reference_v3" | ||
max_cycles: 100 | ||
local_ratio: 0.5 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
defaults: | ||
- _self_ | ||
- pettingzoo_simple_speaker_listener_config | ||
|
||
task: "simple_speaker_listener_v4" | ||
max_cycles: 100 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
defaults: | ||
- _self_ | ||
- pettingzoo_simple_spread_config | ||
|
||
task: "simple_spread_v3" | ||
max_cycles: 100 | ||
N: 3 | ||
local_ratio: 0.5 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
defaults: | ||
- _self_ | ||
- pettingzoo_simple_world_comm_config | ||
|
||
task: "simple_world_comm_v3" | ||
num_good: 2 | ||
num_adversaries: 4 | ||
num_obstacles: 1 | ||
num_food: 2 | ||
num_forests: 2 | ||
max_cycles: 100 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
defaults: | ||
- _self_ | ||
- pettingzoo_waterworld_config | ||
|
||
task: "waterworld_v4" | ||
max_cycles: 500 | ||
n_pursuers: 2 | ||
n_evaders: 5 | ||
n_poisons: 10 | ||
n_obstacles: 1 | ||
n_coop: 1 | ||
n_sensors: 30 | ||
sensor_range: 0.2 | ||
radius: 0.015 | ||
obstacle_radius: 0.1 | ||
pursuer_max_accel: 0.5 | ||
pursuer_speed: 0.2 | ||
evader_speed: 0.1 | ||
poison_speed: 0.1 | ||
poison_reward: -1.0 | ||
food_reward: 10.0 | ||
encounter_reward: 0.01 | ||
thrust_penalty: -0.5 | ||
local_ratio: 1.0 | ||
speed_features: True |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
from dataclasses import dataclass, MISSING | ||
|
||
|
||
@dataclass | ||
class TaskConfig: | ||
task: str = MISSING | ||
n_walkers: int = MISSING | ||
shared_reward: bool = MISSING | ||
max_cycles: int = MISSING | ||
x_size: int = MISSING | ||
y_size: int = MISSING | ||
n_evaders: int = MISSING | ||
n_pursuers: int = MISSING | ||
obs_range: int = MISSING | ||
n_catch: int = MISSING | ||
freeze_evaders: bool = MISSING | ||
tag_reward: float = MISSING | ||
catch_reward: float = MISSING | ||
urgency_reward: float = MISSING | ||
surround: bool = MISSING | ||
constraint_window: float = MISSING |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
from dataclasses import dataclass, MISSING | ||
|
||
|
||
@dataclass | ||
class TaskConfig: | ||
task: str = MISSING | ||
N: int = MISSING | ||
max_cycles: int = MISSING |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
from dataclasses import dataclass, MISSING | ||
|
||
|
||
@dataclass | ||
class TaskConfig: | ||
task: str = MISSING | ||
max_cycles: int = MISSING |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
from dataclasses import dataclass, MISSING | ||
|
||
|
||
@dataclass | ||
class TaskConfig: | ||
task: str = MISSING | ||
max_cycles: int = MISSING | ||
local_ratio: float = MISSING |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
from dataclasses import dataclass, MISSING | ||
|
||
|
||
@dataclass | ||
class TaskConfig: | ||
task: str = MISSING | ||
max_cycles: int = MISSING |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
from dataclasses import dataclass, MISSING | ||
|
||
|
||
@dataclass | ||
class TaskConfig: | ||
task: str = MISSING | ||
max_cycles: int = MISSING |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
from dataclasses import dataclass, MISSING | ||
|
||
|
||
@dataclass | ||
class TaskConfig: | ||
task: str = MISSING | ||
max_cycles: int = MISSING | ||
local_ratio: float = MISSING | ||
N: int = MISSING |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
from dataclasses import dataclass, MISSING | ||
|
||
|
||
@dataclass | ||
class TaskConfig: | ||
task: str = MISSING | ||
max_cycles: int = MISSING | ||
num_good: int = MISSING | ||
num_adversaries: int = MISSING | ||
num_obstacles: int = MISSING | ||
num_food: int = MISSING | ||
num_forests: int = MISSING |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
from dataclasses import dataclass, MISSING | ||
|
||
|
||
@dataclass | ||
class TaskConfig: | ||
task: str = MISSING | ||
max_cycles: int = MISSING | ||
n_pursuers: int = MISSING | ||
n_evaders: int = MISSING | ||
n_poisons: int = MISSING | ||
n_obstacles: int = MISSING | ||
n_coop: int = MISSING | ||
n_sensors: int = MISSING | ||
sensor_range: float = MISSING | ||
radius: float = MISSING | ||
obstacle_radius: float = MISSING | ||
pursuer_max_accel: float = MISSING | ||
pursuer_speed: float = MISSING | ||
evader_speed: float = MISSING | ||
poison_speed: float = MISSING | ||
poison_reward: float = MISSING | ||
food_reward: float = MISSING | ||
encounter_rewar: float = MISSING | ||
thrust_penalty: float = MISSING | ||
local_ratio: float = MISSING | ||
speed_features: bool = MISSING |
Oops, something went wrong.