Skip to content

Commit

Permalink
Merge pull request #56 from Maximellerbach/new-map
Browse files Browse the repository at this point in the history
New maps
  • Loading branch information
Maximellerbach authored Feb 19, 2021
2 parents 77d446c + 67cfe86 commit c834269
Show file tree
Hide file tree
Showing 9 changed files with 47 additions and 7 deletions.
6 changes: 6 additions & 0 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,8 @@ Environments
* "donkey-generated-track-v0"
* "donkey-roboracingleague-track-v0"
* "donkey-waveshare-v0"
* "donkey-minimonaco-track-v0"
* "donkey-warren-track-v0"


Credits
Expand All @@ -110,6 +112,10 @@ Tawn Kramer - https://github.com/tawnkramer/gym-donkeycar

Roma Sokolkov - https://github.com/r7vme/gym-donkeycar cloned with permission from https://github.com/tawnkramer/sdsandbox

Maintainer

Maxime Ellerbach - https://github.com/Maximellerbach/gym-donkeycar

Release Engineer

.. _Leigh Johnson: https://github.com/leigh-johnson
Expand Down
4 changes: 3 additions & 1 deletion examples/genetic_alg/simple_gen_driver.py
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,9 @@ def on_agents_finished(self):
"donkey-avc-sparkfun-v0",
"donkey-generated-track-v0",
"donkey-roboracingleague-track-v0",
"donkey-waveshare-v0"
"donkey-waveshare-v0",
"donkey-minimonaco-track-v0",
"donkey-warren-track-v0"
]

parser = argparse.ArgumentParser(description='simple_gen_driver')
Expand Down
4 changes: 3 additions & 1 deletion examples/gym_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,9 @@ def exit_scene(env):
"donkey-avc-sparkfun-v0",
"donkey-generated-track-v0",
"donkey-roboracingleague-track-v0",
"donkey-waveshare-v0"
"donkey-waveshare-v0",
"donkey-minimonaco-track-v0",
"donkey-warren-track-v0"
]

parser = argparse.ArgumentParser(description='gym_test')
Expand Down
4 changes: 3 additions & 1 deletion examples/reinforcement_learning/ddqn.py
Original file line number Diff line number Diff line change
Expand Up @@ -340,7 +340,9 @@ def signal_handler(signal, frame):
"donkey-avc-sparkfun-v0",
"donkey-generated-track-v0",
"donkey-roboracingleague-track-v0",
"donkey-waveshare-v0"
"donkey-waveshare-v0",
"donkey-minimonaco-track-v0",
"donkey-warren-track-v0"
]

parser = argparse.ArgumentParser(description='ddqn')
Expand Down
4 changes: 3 additions & 1 deletion examples/reinforcement_learning/ppo_train.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,9 @@ def _init():
"donkey-avc-sparkfun-v0",
"donkey-generated-track-v0",
"donkey-roboracingleague-track-v0",
"donkey-waveshare-v0"
"donkey-waveshare-v0",
"donkey-minimonaco-track-v0",
"donkey-warren-track-v0"
]

parser = argparse.ArgumentParser(description='ppo_train')
Expand Down
4 changes: 3 additions & 1 deletion examples/test_cam_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@
"donkey-avc-sparkfun-v0",
"donkey-generated-track-v0",
"donkey-roboracingleague-track-v0",
"donkey-waveshare-v0"
"donkey-waveshare-v0",
"donkey-minimonaco-track-v0",
"donkey-warren-track-v0"
]

parser = argparse.ArgumentParser(description='gym_test')
Expand Down
12 changes: 11 additions & 1 deletion gym_donkeycar/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
from .envs.donkey_env import (AvcSparkfunEnv, GeneratedRoadsEnv,
GeneratedTrackEnv, MountainTrackEnv,
RoboRacingLeagueTrackEnv, WarehouseEnv,
WaveshareEnv)
WaveshareEnv, MiniMonacoEnv, WarrenTrackEnv)

register(
id='donkey-generated-roads-v0',
Expand Down Expand Up @@ -47,3 +47,13 @@
id='donkey-waveshare-v0',
entry_point='gym_donkeycar.envs.donkey_env:WaveshareEnv',
)

register(
id='donkey-minimonaco-track-v0',
entry_point='gym_donkeycar.envs.donkey_env:MiniMonacoEnv',
)

register(
id='donkey-warren-track-v0',
entry_point='gym_donkeycar.envs.donkey_env:WarrenTrackEnv',
)
12 changes: 12 additions & 0 deletions gym_donkeycar/envs/donkey_env.py
Original file line number Diff line number Diff line change
Expand Up @@ -174,3 +174,15 @@ class WaveshareEnv(DonkeyEnv):

def __init__(self, *args, **kwargs):
super(WaveshareEnv, self).__init__(level='waveshare', *args, **kwargs)


class MiniMonacoEnv(DonkeyEnv):

def __init__(self, *args, **kwargs):
super(MiniMonacoEnv, self).__init__(level='mini_monaco', *args, **kwargs)


class WarrenTrackEnv(DonkeyEnv):

def __init__(self, *args, **kwargs):
super(WarrenTrackEnv, self).__init__(level='warren', *args, **kwargs)
4 changes: 3 additions & 1 deletion tests/test_gym_donkeycar.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@
"donkey-avc-sparkfun-v0",
"donkey-generated-track-v0",
"donkey-roboracingleague-track-v0",
"donkey-waveshare-v0"
"donkey-waveshare-v0",
"donkey-minimonaco-track-v0",
"donkey-warren-track-v0"
]

def test_load_gyms(mocker):
Expand Down

0 comments on commit c834269

Please sign in to comment.