-
Notifications
You must be signed in to change notification settings - Fork 133
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Quad 2d with 5 states and attitude ctrl
- Loading branch information
Showing
12 changed files
with
269 additions
and
35 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
28 changes: 28 additions & 0 deletions
28
examples/rl/config_overrides/quadrotor_2D_attitude_5s/ppo_quadrotor_2D_attitude_5s.yaml
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,28 @@ | ||
algo_config: | ||
# model args | ||
hidden_dim: 128 | ||
activation: "relu" | ||
|
||
# loss args | ||
use_gae: True | ||
entropy_coef: 0.01 | ||
|
||
# optim args | ||
opt_epochs: 20 | ||
mini_batch_size: 256 | ||
actor_lr: 0.001 | ||
critic_lr: 0.001 | ||
|
||
# runner args | ||
max_env_steps: 480000 | ||
rollout_batch_size: 4 | ||
rollout_steps: 600 | ||
eval_batch_size: 50 | ||
|
||
# misc | ||
log_interval: 9600 | ||
save_interval: 480000 | ||
num_checkpoints: 0 | ||
eval_interval: 9600 | ||
eval_save_best: True | ||
tensorboard: False |
74 changes: 74 additions & 0 deletions
74
examples/rl/config_overrides/quadrotor_2D_attitude_5s/quadrotor_2D_attitude_5s_track.yaml
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,74 @@ | ||
task_config: | ||
seed: 1337 | ||
info_in_reset: True | ||
ctrl_freq: 60 | ||
pyb_freq: 1200 | ||
physics: pyb | ||
quad_type: 5 | ||
normalized_rl_action_space: True | ||
|
||
init_state: | ||
init_x: 0 | ||
init_x_dot: 0 | ||
init_z: 1.15 | ||
init_z_dot: 0 | ||
init_theta: 0 | ||
init_theta_dot: 0 | ||
randomized_init: True | ||
randomized_inertial_prop: False | ||
|
||
init_state_randomization_info: | ||
init_x: | ||
distrib: 'uniform' | ||
low: -0.01 | ||
high: 0.01 | ||
init_x_dot: | ||
distrib: 'uniform' | ||
low: -0.01 | ||
high: 0.01 | ||
init_z: | ||
distrib: 'uniform' | ||
low: -0.01 | ||
high: 0.01 | ||
init_z_dot: | ||
distrib: 'uniform' | ||
low: -0.01 | ||
high: 0.01 | ||
init_theta: | ||
distrib: 'uniform' | ||
low: -0.02 | ||
high: 0.02 | ||
|
||
task: traj_tracking | ||
task_info: | ||
trajectory_type: figure8 | ||
num_cycles: 1 | ||
trajectory_plane: 'xz' | ||
trajectory_position_offset: [0, 1.2] | ||
trajectory_scale: 0.5 | ||
|
||
inertial_prop: | ||
M: 0.027 | ||
Iyy: 1.4e-05 | ||
|
||
episode_len_sec: 10 | ||
cost: rl_reward | ||
obs_goal_horizon: 1 | ||
|
||
# RL Reward | ||
rew_state_weight: [1.0, 0.01, 1.0, 0.01, 0.1] | ||
rew_act_weight: 0.1 | ||
rew_exponential: True | ||
|
||
# constraints: | ||
# - constraint_form: default_constraint | ||
# constrained_variable: state | ||
# upper_bounds: [2, 1, 2, 1, 0.2, 2.5] | ||
# lower_bounds: [-2, -1, 0, -1, -0.2, -2.5] | ||
# - constraint_form: default_constraint | ||
# constrained_variable: input | ||
# upper_bounds: [0.58, 0.8] | ||
# lower_bounds: [0.06, -0.8] | ||
|
||
done_on_out_of_bound: True | ||
done_on_violation: False |
29 changes: 29 additions & 0 deletions
29
examples/rl/config_overrides/quadrotor_2D_attitude_5s/sac_quadrotor_2D_attitude_5s.yaml
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,29 @@ | ||
algo_config: | ||
# model args | ||
hidden_dim: 128 | ||
activation: "relu" | ||
use_entropy_tuning: True | ||
|
||
# optim args | ||
train_interval: 100 | ||
train_batch_size: 256 | ||
actor_lr: 0.001 | ||
critic_lr: 0.001 | ||
entropy_lr: 0.001 | ||
|
||
# runner args | ||
max_env_steps: 200000 | ||
warm_up_steps: 1000 | ||
rollout_batch_size: 4 | ||
num_workers: 1 | ||
max_buffer_size: 50000 | ||
deque_size: 50 | ||
eval_batch_size: 50 | ||
|
||
# misc | ||
log_interval: 4000 | ||
save_interval: 0 | ||
num_checkpoints: 0 | ||
eval_interval: 4000 | ||
eval_save_best: True | ||
tensorboard: False |
29 changes: 29 additions & 0 deletions
29
examples/rl/config_overrides/quadrotor_2D_attitude_5s/td3_quadrotor_2D_attitude_5s.yaml
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,29 @@ | ||
algo: sac | ||
algo_config: | ||
# model args | ||
hidden_dim: 128 | ||
activation: "relu" | ||
use_entropy_tuning: False | ||
|
||
# optim args | ||
train_interval: 100 | ||
train_batch_size: 256 | ||
actor_lr: 0.001 | ||
critic_lr: 0.001 | ||
|
||
# runner args | ||
max_env_steps: 200000 | ||
warm_up_steps: 1000 | ||
rollout_batch_size: 4 | ||
num_workers: 1 | ||
max_buffer_size: 50000 | ||
deque_size: 10 | ||
eval_batch_size: 50 | ||
|
||
# misc | ||
log_interval: 2000 | ||
save_interval: 0 | ||
num_checkpoints: 0 | ||
eval_interval: 2000 | ||
eval_save_best: True | ||
tensorboard: False |
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
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
Oops, something went wrong.