Skip to content

Commit

Permalink
adapted encoder naming and fixed namespace for parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
ReykCS committed Jan 22, 2023
1 parent 7669886 commit 9bc3969
Show file tree
Hide file tree
Showing 18 changed files with 238 additions and 178 deletions.
45 changes: 23 additions & 22 deletions agents/burger/hyperparameters.json
Original file line number Diff line number Diff line change
@@ -1,24 +1,25 @@
{
"agent_name": "AGENT_24_2022_01_27__20_31",
"robot": "burger",
"actions_in_observationspace": true,
"batch_size": 19200,
"gamma": 0.99,
"n_steps": 1200,
"ent_coef": 0.005,
"learning_rate": 0.0003,
"vf_coef": 0.22,
"max_grad_norm": 0.5,
"gae_lambda": 0.95,
"m_batch_size": 15,
"n_epochs": 3,
"clip_range": 0.22,
"train_max_steps_per_episode": 250,
"eval_max_steps_per_episode": 400,
"goal_radius": 0.25,
"reward_fnc": "rule_05",
"discrete_action_space": false,
"normalize": false,
"task_mode": "staged",
"curr_stage": 6
"agent_name": "AGENT_24_2022_01_27__20_31",
"robot": "burger",
"actions_in_observationspace": true,
"batch_size": 19200,
"gamma": 0.99,
"n_steps": 1200,
"ent_coef": 0.005,
"learning_rate": 0.0003,
"vf_coef": 0.22,
"max_grad_norm": 0.5,
"gae_lambda": 0.95,
"m_batch_size": 15,
"n_epochs": 3,
"clip_range": 0.22,
"train_max_steps_per_episode": 250,
"eval_max_steps_per_episode": 400,
"goal_radius": 0.25,
"reward_fnc": "rule_05",
"discrete_action_space": false,
"normalize": false,
"task_mode": "staged",
"curr_stage": 6,
"observation_space": ["laser_scan", "goal_in_robot_frame", "last_action"]
}
47 changes: 24 additions & 23 deletions agents/jackal/hyperparameters.json
Original file line number Diff line number Diff line change
@@ -1,24 +1,25 @@
{
"agent_name": "AGENT_24_2022_02_04__11_28",
"robot": "jackal",
"actions_in_observationspace": true,
"reward_fnc": "rule_05",
"discrete_action_space": false,
"normalize": false,
"task_mode": "staged",
"train_max_steps_per_episode": 150,
"eval_max_steps_per_episode": 200,
"goal_radius": 0.7,
"curr_stage": 11,
"batch_size": 19200,
"gamma": 0.99,
"n_steps": 1600,
"ent_coef": 0.005,
"learning_rate": 0.0003,
"vf_coef": 0.22,
"max_grad_norm": 0.5,
"gae_lambda": 0.95,
"m_batch_size": 15,
"n_epochs": 3,
"clip_range": 0.22
}
"agent_name": "AGENT_24_2022_02_04__11_28",
"robot": "jackal",
"actions_in_observationspace": true,
"reward_fnc": "rule_05",
"discrete_action_space": false,
"normalize": false,
"task_mode": "staged",
"train_max_steps_per_episode": 150,
"eval_max_steps_per_episode": 200,
"goal_radius": 0.7,
"curr_stage": 11,
"batch_size": 19200,
"gamma": 0.99,
"n_steps": 1600,
"ent_coef": 0.005,
"learning_rate": 0.0003,
"vf_coef": 0.22,
"max_grad_norm": 0.5,
"gae_lambda": 0.95,
"m_batch_size": 15,
"n_epochs": 3,
"clip_range": 0.22,
"observation_space": ["laser_scan", "goal_in_robot_frame", "last_action"]
}
Binary file removed agents/jackal_barn/best_model.zip
Binary file not shown.
24 changes: 0 additions & 24 deletions agents/jackal_barn/hyperparameters.json

This file was deleted.

Empty file.
Binary file removed agents/jackal_marl/best_model.zip
Binary file not shown.
25 changes: 0 additions & 25 deletions agents/jackal_marl/hyperparameters.json

This file was deleted.

45 changes: 23 additions & 22 deletions agents/ridgeback/hyperparameters.json
Original file line number Diff line number Diff line change
@@ -1,23 +1,24 @@
{
"agent_name": "AGENT_21_2021_12_27__00_06",
"robot": "ridgeback",
"batch_size": 19200,
"gamma": 0.99,
"n_steps": 19200,
"ent_coef": 0.005,
"learning_rate": 0.0003,
"vf_coef": 0.22,
"max_grad_norm": 0.5,
"gae_lambda": 0.95,
"m_batch_size": 15,
"n_epochs": 3,
"clip_range": 0.22,
"train_max_steps_per_episode": 150,
"eval_max_steps_per_episode": 250,
"goal_radius": 0.25,
"reward_fnc": "rule_03",
"discrete_action_space": false,
"normalize": false,
"task_mode": "staged",
"curr_stage": 9
}
"agent_name": "AGENT_21_2021_12_27__00_06",
"robot": "ridgeback",
"batch_size": 19200,
"gamma": 0.99,
"n_steps": 19200,
"ent_coef": 0.005,
"learning_rate": 0.0003,
"vf_coef": 0.22,
"max_grad_norm": 0.5,
"gae_lambda": 0.95,
"m_batch_size": 15,
"n_epochs": 3,
"clip_range": 0.22,
"train_max_steps_per_episode": 150,
"eval_max_steps_per_episode": 250,
"goal_radius": 0.25,
"reward_fnc": "rule_03",
"discrete_action_space": false,
"normalize": false,
"task_mode": "staged",
"curr_stage": 9,
"observation_space": ["laser_scan", "goal_in_robot_frame", "last_action"]
}
Binary file removed agents/ridgeback_marl/best_model.zip
Binary file not shown.
25 changes: 0 additions & 25 deletions agents/ridgeback_marl/hyperparameters.json

This file was deleted.

Binary file removed agents/rto_tlabs_marl/best_model.zip
Binary file not shown.
25 changes: 0 additions & 25 deletions agents/rto_tlabs_marl/hyperparameters.json

This file was deleted.

1 change: 1 addition & 0 deletions rosnav/model/feature_extractors.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ def __init__(
robot_model: str = None,
features_dim: int = 128,
):

self._l, self._rs = get_observation_space_from_file(robot_model)
super(EXTRACTOR_1, self).__init__(observation_space, features_dim + self._rs)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
Action space: X Vel, (Y Vel), Angular Vel
"""
@BaseSpaceEncoderFactory.register("RobotSpecificEncoder")
class RobotSpecificEncoder(BaseSpaceEncoder):
@BaseSpaceEncoderFactory.register("DefaultEncoder")
class DefaultEncoder(BaseSpaceEncoder):
def __init__(self, *args):
super().__init__(*args)

Expand Down
Loading

0 comments on commit 9bc3969

Please sign in to comment.