Skip to content

Commit

Permalink
Merge pull request #69 from Maximellerbach/new-circuit
Browse files Browse the repository at this point in the history
New circuit
  • Loading branch information
Maximellerbach authored Jul 25, 2021
2 parents 78fa6be + 02102ed commit 484fb8a
Show file tree
Hide file tree
Showing 9 changed files with 15 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,7 @@ Example info:
- "donkey-minimonaco-track-v0"
- "donkey-warren-track-v0"
- "donkey-thunderhill-track-v0"
- "donkey-circuit-launch-track-v0"


## Codestyle
Expand Down
1 change: 1 addition & 0 deletions examples/genetic_alg/simple_gen_driver.py
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,7 @@ def on_agents_finished(self):
"donkey-minimonaco-track-v0",
"donkey-warren-track-v0",
"donkey-thunderhill-track-v0",
"donkey-circuit-launch-track-v0",
]

parser = argparse.ArgumentParser(description="simple_gen_driver")
Expand Down
1 change: 1 addition & 0 deletions examples/gym_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ def exit_scene(env):
"donkey-minimonaco-track-v0",
"donkey-warren-track-v0",
"donkey-thunderhill-track-v0",
"donkey-circuit-launch-track-v0",
]

parser = argparse.ArgumentParser(description="gym_test")
Expand Down
1 change: 1 addition & 0 deletions examples/reinforcement_learning/ddqn.py
Original file line number Diff line number Diff line change
Expand Up @@ -340,6 +340,7 @@ def signal_handler(signal, frame):
"donkey-minimonaco-track-v0",
"donkey-warren-track-v0",
"donkey-thunderhill-track-v0",
"donkey-circuit-launch-track-v0",
]

parser = argparse.ArgumentParser(description="ddqn")
Expand Down
1 change: 1 addition & 0 deletions examples/reinforcement_learning/ppo_train.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ def _init():
"donkey-minimonaco-track-v0",
"donkey-warren-track-v0",
"donkey-thunderhill-track-v0",
"donkey-circuit-launch-track-v0",
]

parser = argparse.ArgumentParser(description="ppo_train")
Expand Down
1 change: 1 addition & 0 deletions examples/test_cam_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
"donkey-minimonaco-track-v0",
"donkey-warren-track-v0",
"donkey-thunderhill-track-v0",
"donkey-circuit-launch-track-v0",
]

parser = argparse.ArgumentParser(description="gym_test")
Expand Down
3 changes: 3 additions & 0 deletions gym_donkeycar/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@

from gym_donkeycar.envs.donkey_env import (
AvcSparkfunEnv,
CircuitLaunchEnv,
GeneratedRoadsEnv,
GeneratedTrackEnv,
MiniMonacoEnv,
Expand Down Expand Up @@ -46,3 +47,5 @@
register(id="donkey-warren-track-v0", entry_point="gym_donkeycar.envs.donkey_env:WarrenTrackEnv")

register(id="donkey-thunderhill-track-v0", entry_point="gym_donkeycar.envs.donkey_env:ThunderhillTrackEnv")

register(id="donkey-circuit-launch-track-v0", entry_point="gym_donkeycar.envs.donkey_env:CircuitLaunchEnv")
5 changes: 5 additions & 0 deletions gym_donkeycar/envs/donkey_env.py
Original file line number Diff line number Diff line change
Expand Up @@ -191,3 +191,8 @@ def __init__(self, *args, **kwargs):
class ThunderhillTrackEnv(DonkeyEnv):
def __init__(self, *args, **kwargs):
super(ThunderhillTrackEnv, self).__init__(level="thunderhill", *args, **kwargs)


class CircuitLaunchEnv(DonkeyEnv):
def __init__(self, *args, **kwargs):
super(CircuitLaunchEnv, self).__init__(level="circuit_launch", *args, **kwargs)
1 change: 1 addition & 0 deletions tests/test_gym_donkeycar.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
"donkey-minimonaco-track-v0",
"donkey-warren-track-v0",
"donkey-thunderhill-track-v0",
"donkey-circuit-launch-track-v0",
]


Expand Down

0 comments on commit 484fb8a

Please sign in to comment.