Skip to content
Closed
Changes from 1 commit
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
051751e
mujoco bindings
rodrigodelazcano Apr 2, 2022
3fd204d
Update README.md
jkterry1 Apr 7, 2022
227e246
Pyright versioning update. Fix #2700 (#2739)
gianlucadecola Apr 8, 2022
623dd8d
fix #2736 (#2737)
younik Apr 8, 2022
d4cda25
AutoResetWrapper integration with gym.make() (#2728)
balisujohn Apr 8, 2022
2ac8553
Added kwarg documentation for BlackJack and LunarLander (#2742)
Markus28 Apr 10, 2022
b717924
Update the parametrize to show the ids of the specification to make d…
pseudo-rnd-thoughts Apr 10, 2022
06072ed
fix: type ignore from #2739 (#2744)
kir0ul Apr 11, 2022
33970e2
Update README.md
jkterry1 Apr 13, 2022
9632946
mujoco bindings
rodrigodelazcano Apr 2, 2022
b18d22a
auto gl backend
rodrigodelazcano Apr 13, 2022
027aaad
new mujoco release dep
rodrigodelazcano Apr 13, 2022
a20dc21
Merge branch 'master' of https://github.com/rodrigodelazcano/gym
rodrigodelazcano Apr 13, 2022
0120576
update pusher v4
rodrigodelazcano Apr 13, 2022
5ae6bf9
Bipedal fix bounds and type hints (#2750)
jjshoots Apr 14, 2022
ab38034
remove contact forces mujoco
rodrigodelazcano Apr 14, 2022
75c7fbc
readd contact forces
rodrigodelazcano Apr 14, 2022
1a3a891
fix #2723 and remove unuseful board (#2754)
younik Apr 15, 2022
681a992
Add gravity and wind as kwarg in Lunar Lander (#2746)
jjshoots Apr 15, 2022
c6deb81
Add mild domain randomization to Car Racing Env (#2749)
jjshoots Apr 15, 2022
da7b8ae
Made documentation for carracing more descriptive, and renamed one of…
jjshoots Apr 15, 2022
6138920
Fix turn indicators not working in Carracing (#2759)
jjshoots Apr 17, 2022
36a7fe5
Add test gym utils play. Fix #2729 (#2743)
gianlucadecola Apr 18, 2022
a81ed98
mujoco bindings
rodrigodelazcano Apr 2, 2022
f7a1f43
auto gl backend
rodrigodelazcano Apr 13, 2022
bb603ea
new mujoco release dep
rodrigodelazcano Apr 13, 2022
4060922
update pusher v4
rodrigodelazcano Apr 13, 2022
fab4ffb
remove contact forces mujoco
rodrigodelazcano Apr 14, 2022
45330b4
readd contact forces
rodrigodelazcano Apr 14, 2022
8a1b425
skip rendering mujoco_py test
rodrigodelazcano Apr 19, 2022
906789e
Merge branch 'master' of https://github.com/rodrigodelazcano/gym
rodrigodelazcano Apr 19, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Made documentation for carracing more descriptive, and renamed one of…
… the variable names (#2755)
  • Loading branch information
jjshoots authored Apr 15, 2022
commit da7b8ae8fc6f5ff97c5f7303c03a26c8b4b3f4e2
10 changes: 5 additions & 5 deletions gym/envs/box2d/car_racing.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ def _contact(self, contact, begin):
return

# inherit tile color from env
tile.color = self.env.norm_road_color / 255
tile.color = self.env.road_color / 255
if not obj or "tiles" not in obj.__dict__:
return
if begin:
Expand Down Expand Up @@ -132,7 +132,7 @@ class CarRacing(gym.Env, EzPickle):
In this scenario, the background and track colours are different on every reset.

### Version History
- v1: Current version (0.24.0)
- v1: Change track completion logic and add domain randomization (0.24.0)
- v0: Original version

### References
Expand Down Expand Up @@ -196,7 +196,7 @@ def _destroy(self):
def _init_colors(self):
if self.domain_randomize:
# domain randomize the bg and grass colour
self.norm_road_color = self.np_random.uniform(0, 210, size=3)
self.road_color = self.np_random.uniform(0, 210, size=3)

self.bg_color = self.np_random.uniform(0, 210, size=3)

Expand All @@ -205,7 +205,7 @@ def _init_colors(self):
self.grass_color[idx] += 20
else:
# default colours
self.norm_road_color = np.array([102, 102, 102])
self.road_color = np.array([102, 102, 102])
self.bg_color = np.array([102, 204, 102])
self.grass_color = np.array([102, 230, 102])

Expand Down Expand Up @@ -365,7 +365,7 @@ def _create_track(self):
t = self.world.CreateStaticBody(fixtures=self.fd_tile)
t.userData = t
c = 0.01 * (i % 3) * 255
t.color = self.norm_road_color + c
t.color = self.road_color + c
t.road_visited = False
t.road_friction = 1.0
t.idx = i
Expand Down