-
Notifications
You must be signed in to change notification settings - Fork 61
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Aggregated changes for open-sourcing
Signed-off-by: Mihir Kulkarni <[email protected]>
- Loading branch information
Showing
151 changed files
with
44,965 additions
and
217 deletions.
There are no files selected for viewing
540 changes: 540 additions & 0 deletions
540
aerial_gym/config/asset_config/dynamic_env_object_config.py
Large diffs are not rendered by default.
Oops, something went wrong.
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
45 changes: 45 additions & 0 deletions
45
aerial_gym/config/controller_config/lmf2_controller_config.py
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,45 @@ | ||
import numpy as np | ||
|
||
|
||
class control: | ||
""" | ||
Control parameters | ||
controller: | ||
lee_position_control: command_actions = [x, y, z, yaw] in environment frame scaled between -1 and 1 | ||
lee_velocity_control: command_actions = [vx, vy, vz, yaw_rate] in vehicle frame scaled between -1 and 1 | ||
lee_attitude_control: command_actions = [thrust, roll, pitch, yaw_rate] in vehicle frame scaled between -1 and 1 | ||
kP: gains for position | ||
kV: gains for velocity | ||
kR: gains for attitude | ||
kOmega: gains for angular velocity | ||
""" | ||
|
||
num_actions = 4 | ||
max_inclination_angle_rad = np.pi / 3.0 | ||
max_yaw_rate = np.pi / 3.0 | ||
|
||
K_pos_tensor_max = [2.0, 2.0, 1.0] # used for lee_position_control only | ||
K_pos_tensor_min = [2.0, 2.0, 1.0] # used for lee_position_control only | ||
|
||
K_vel_tensor_max = [ | ||
3.3, | ||
3.3, | ||
1.3, | ||
] # used for lee_position_control, lee_velocity_control only | ||
K_vel_tensor_min = [2.7, 2.7, 1.7] | ||
|
||
K_rot_tensor_max = [ | ||
1.85, | ||
1.85, | ||
0.4, | ||
] # used for lee_position_control, lee_velocity_control and lee_attitude_control | ||
K_rot_tensor_min = [1.6, 1.6, 0.25] | ||
|
||
K_angvel_tensor_max = [ | ||
0.5, | ||
0.5, | ||
0.09, | ||
] # used for lee_position_control, lee_velocity_control and lee_attitude_control | ||
K_angvel_tensor_min = [0.4, 0.4, 0.075] | ||
|
||
randomize_params = 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
from aerial_gym.config.asset_config.dynamic_env_object_config import * | ||
|
||
import numpy as np | ||
|
||
|
||
class DynamicEnvironmentCfg: | ||
class env: | ||
num_envs = 64 # overridden by the num_envs parameter in the task config if used | ||
num_env_actions = 6 # this is the number of actions handled by the environment | ||
# potentially some of these can be input from the RL agent for the robot and | ||
# some of them can be used to control various entities in the environment | ||
# e.g. motion of obstacles, etc. | ||
env_spacing = 5.0 # not used with heightfields/trimeshes | ||
|
||
num_physics_steps_per_env_step_mean = 10 # number of steps between camera renders mean | ||
num_physics_steps_per_env_step_std = 0 # number of steps between camera renders std | ||
|
||
render_viewer_every_n_steps = 1 # render the viewer every n steps | ||
reset_on_collision = ( | ||
True # reset environment when contact force on quadrotor is above a threshold | ||
) | ||
collision_force_threshold = 0.05 # collision force threshold [N] | ||
create_ground_plane = True # create a ground plane | ||
sample_timestep_for_latency = True # sample the timestep for the latency noise | ||
perturb_observations = True | ||
keep_same_env_for_num_episodes = 1 | ||
write_to_sim_at_every_timestep = True # write to sim at every timestep | ||
|
||
use_warp = True | ||
lower_bound_min = [-2.0, -4.0, 0.0] # lower bound for the environment space | ||
lower_bound_max = [-1.0, -2.5, 0.0] # lower bound for the environment space | ||
upper_bound_min = [9.0, 2.5, 4.0] # upper bound for the environment space | ||
upper_bound_max = [10.0, 4.0, 5.0] # upper bound for the environment space | ||
|
||
class env_config: | ||
include_asset_type = { | ||
"panels": False, | ||
"thin": False, | ||
"trees": False, | ||
"objects": True, | ||
"left_wall": False, | ||
"right_wall": False, | ||
"back_wall": False, | ||
"front_wall": False, | ||
"top_wall": False, | ||
"bottom_wall": False, | ||
} | ||
|
||
# maps the above names to the classes defining the assets. They can be enabled and disabled above in include_asset_type | ||
asset_type_to_dict_map = { | ||
"panels": panel_asset_params, | ||
"thin": thin_asset_params, | ||
"trees": tree_asset_params, | ||
"objects": object_asset_params, | ||
"left_wall": left_wall, | ||
"right_wall": right_wall, | ||
"back_wall": back_wall, | ||
"front_wall": front_wall, | ||
"bottom_wall": bottom_wall, | ||
"top_wall": top_wall, | ||
} |
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,37 @@ | ||
# nothing to import here as the no other modules are needed to define base class | ||
|
||
|
||
class EnvCfg2Ms: | ||
class env: | ||
num_envs = 3 # number of environments | ||
num_env_actions = 0 # this is the number of actions handled by the environment | ||
# these are the actions that are sent to environment entities | ||
# and some of them may be used to control various entities in the environment | ||
# e.g. motion of obstacles, etc. | ||
env_spacing = 1.0 # not used with heightfields/trimeshes | ||
num_physics_steps_per_env_step_mean = 5 # number of steps between camera renders mean | ||
num_physics_steps_per_env_step_std = 0 # number of steps between camera renders std | ||
render_viewer_every_n_steps = 2 # render the viewer every n steps | ||
collision_force_threshold = 0.010 # collision force threshold | ||
manual_camera_trigger = False # trigger camera captures manually | ||
reset_on_collision = ( | ||
True # reset environment when contact force on quadrotor is above a threshold | ||
) | ||
write_to_sim_at_every_timestep = False | ||
create_ground_plane = False # create a ground plane | ||
sample_timestep_for_latency = True # sample the timestep for the latency noise | ||
perturb_observations = True | ||
keep_same_env_for_num_episodes = 1 | ||
write_to_sim_at_every_timestep = False | ||
|
||
use_warp = False | ||
e_s = env_spacing | ||
lower_bound_min = [-e_s, -e_s, -e_s] # lower bound for the environment space | ||
lower_bound_max = [-e_s, -e_s, -e_s] # lower bound for the environment space | ||
upper_bound_min = [e_s, e_s, e_s] # upper bound for the environment space | ||
upper_bound_max = [e_s, e_s, e_s] # upper bound for the environment space | ||
|
||
class env_config: | ||
include_asset_type = {} | ||
|
||
asset_type_to_dict_map = {} |
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.