-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor the simulation. Add the attitude controller interface. Add d…
…ocker support. Add docs. Improve tests and tooling.
- Loading branch information
Showing
80 changed files
with
2,102 additions
and
3,077 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
.git | ||
.github | ||
.vscode | ||
.pytest_cache | ||
**/*.pyc |
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
This file was deleted.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
# Level 0 | ||
|
||
# | Evaluation Scenario | Rand. Inertial Properties | Randomized Obstacles, Gates | Rand. Between Episodes | Notes | | ||
# | :-----------------: | :-----------------------: | :-------------------------: | :--------------------: | :---------------: | | ||
# | `level0.toml` | *No* | *No* | *No* | Perfect knowledge | | ||
|
||
[sim] | ||
# Physics options: | ||
# "pyb": PyBullet | ||
# "dyn": Mathematical dynamics model | ||
# "pyb_gnd" PyBullet with ground effect | ||
# "pyb_drag": PyBullet with drag | ||
# "pyb_dw": PyBullet with downwash | ||
# "pyb_gnd_drag_dw": PyBullet with ground effect, drag, and downwash. | ||
physics = "pyb" | ||
|
||
camera_view = [5.0, -40.0, -40.0, 0.5, -1.0, 0.5] | ||
sim_freq = 500 # Simulation frequency, in Hz | ||
ctrl_freq = 500 # Controller frequency, in Hz. This frequency is used to simulate the onboard controller, NOT for the environment's step function | ||
gui = false # Enable/disable PyBullet's GUI | ||
|
||
[sim.disturbances.action] | ||
type = "GaussianNoise" | ||
std = 0.001 | ||
|
||
[sim.disturbances.dynamics] | ||
type = "UniformNoise" | ||
low = [-0.1, -0.1, -0.1] | ||
high = [0.1, 0.1, 0.1] | ||
|
||
[env] | ||
id = "DroneRacing-v0" # Either "DroneRacing-v0" or "DroneRacingThrust-v0". If using "DroneRacingThrust-v0", the drone will use the thrust controller instead of the position controller. | ||
reseed = true # Whether to re-seed the random number generator between episodes | ||
seed = 1337 # Random seed | ||
freq = 30 # Frequency of the environment's step function, in Hz | ||
symbolic = false # Whether to include symbolic expressions in the info dict. Note: This can interfere with multiprocessing! If you want to parallelize your training, set this to false. | ||
sensor_range = 0.45 # Range at which the exact location of gates and obstacles become visible to the drone. Objects that are not in the drone's sensor range report their nominal position. | ||
|
||
[env.track] | ||
# Tall gates: 1.0m height. Short gates: 0.525m height. Height is measured from the ground to the | ||
# center of the gate. | ||
[[env.track.gates]] | ||
pos = [0.45, -1.0, 0.525] | ||
rpy = [0.0, 0.0, 2.35] | ||
[[env.track.gates]] | ||
pos = [1.0, -1.55, 1.0] | ||
rpy = [0.0, 0.0, -0.78] | ||
[[env.track.gates]] | ||
pos = [0.0, 0.5, 0.525] | ||
rpy = [0.0, 0.0, 0.0] | ||
[[env.track.gates]] | ||
pos = [-0.5, -0.5, 1.0] | ||
rpy = [0.0, 0.0, 3.14] | ||
|
||
# Obstacle height: 1.05m. Height is measured from the ground to the top of the obstacle. | ||
[[env.track.obstacles]] | ||
pos = [1.0, -0.5, 0.95] | ||
[[env.track.obstacles]] | ||
pos = [0.5, -1.5, 0.95] | ||
[[env.track.obstacles]] | ||
pos = [-0.5, 0.0, 0.95] | ||
[[env.track.obstacles]] | ||
pos = [0.0, 1.0, 0.95] | ||
|
||
[env.track.drone] | ||
pos = [1.0, 1.0, 0.05] | ||
rpy = [0, 0, 0] | ||
vel = [0, 0, 0] | ||
ang_vel = [0, 0, 0] |
Oops, something went wrong.