Commit Graph

1491 Commits

Author SHA1 Message Date
Robert Nishihara
f1f884898d Make super() calls Python 2 compatible. (#1312) 2019-02-07 11:29:04 -08:00
Peter Zhokhov
a6ac120175 release version 0.11.0 2019-02-06 14:11:32 -08:00
Peter Zhokhov
d828b782c3 run tests with --forked to mitigate mujoco envs memory leak 2019-02-06 14:00:39 -08:00
Peter Zhokhov
97bef502f0 fix .travis.yml syntax 2019-02-06 09:23:25 -08:00
Peter Zhokhov
021bb49237 pass env variables into tox 2019-02-06 09:09:37 -08:00
pzhokhov
3067a0b890 fix for issue 1256 (Box(low=0, high=255, dtype='uint8').sample() returned zeros) (#1307) 2019-02-05 17:49:29 -08:00
Peter Zhokhov
4ceff7dc09 fix KellyCoinFlipGeneralizedTest (sample from action_space after seed and reset, as action dimensions in it are also random) 2019-01-30 14:50:18 -08:00
Xingdong Zuo
6497c9f1c6 Delete prng.py (#1196)
* Delete prng.py

Since it seems like this seeding function is rarely used.

* Update __init__.py

* Update kellycoinflip.py

* Update core.py

* Update box.py

* Update discrete.py

* Update multi_binary.py

* Update multi_discrete.py

* Update test_determinism.py

* Update test_determinism.py

* Update test_determinism.py

* Update core.py

* Update box.py

* Update test_determinism.py

* Update core.py

* Update box.py

* Update discrete.py

* Update multi_binary.py

* Update multi_discrete.py

* Update dict_space.py

* Update tuple_space.py

* Update core.py

* Create space.py

* Update __init__.py

* Update __init__.py

* Update box.py

* Update dict_space.py

* Update discrete.py

* Update dict_space.py

* Update multi_binary.py

* Update multi_discrete.py

* Update tuple_space.py

* Update discrete.py

* Update box.py

* Update dict_space.py

* Update multi_binary.py

* Update multi_discrete.py

* Update tuple_space.py

* Update multi_discrete.py

* Update multi_binary.py

* Update dict_space.py

* Update box.py

* Update test_determinism.py

* Update kellycoinflip.py

* Update space.py
2019-01-30 13:39:55 -08:00
Peter Zhokhov
8c3afcf8e3 bump version to 0.10.11 2019-01-30 10:32:30 -08:00
Peter Zhokhov
643b648fe2 bump version to 0.10.10 2019-01-30 09:49:58 -08:00
Greg Brockman
812c46cbad Support kwargs in gym.make and export register (#1301)
* Support kwargs in gym.make

We avoided adding kwargs for a long time in order to encourage people
to statically register their environment definitions. However, over
time we've found a few important use-cases for kwargs, such as:

- Runtime-specific objects, such as which GPU to run the environment
  on
- Parametrized environments, which can have an infinite number of meaningful
  variants

The latter breaks the invariant that the environment ID alone
determines the semantics of the environment, but it's an advanced
use-case and such users should be able to manage this on their own.

* Export the register method so it's easier for external users to register environments

* Improve kwargs test
2019-01-29 13:37:43 -08:00
Balázs Kossovics
e8349e3668 Fix in keyword with Spaces (#1261)
Binding `__contains__` to the Space class' contains method this way prevents overriding it in subclasses, which leads to `NotImplementedException`s when trying to do things like `2 in gym.spaces.Discrete(2)`.
2019-01-28 14:52:41 -08:00
John Schulman
12e8b763d5 a few minor changes: (#1250)
- enable atari env to use full action set of 18
- modify rendering.py to prevent some bad stack traces upon closing
- enable dict space to be more concisely specified as spaces.Dict(a=Box(…),…)
2018-12-19 17:53:08 -08:00
pzhokhov
01a381669b small fix to multidiscrete (#1249)
* small fix to multidiscrete

* added a check nvec > 0

* fix the comparison in multidiscrete space
2018-12-05 15:54:49 -08:00
R. Miles McCain
49cd48020f Small typo fix in Lunar Lander (#1222) 2018-11-28 17:28:31 -08:00
Antonin RAFFIN
cdd212db4b Fix autodetect dtype warnings (#1234)
* Fix autodetect dtype warnings

* Use warnings module for gym logger

* Fix warning in tests
2018-11-28 17:27:27 -08:00
Christopher Hesse
e09b0f50ef update README with repo status (#1233) 2018-11-28 13:36:05 -08:00
Evgeniy Zheltonozhskiy
dc27a6f0a1 Replace deprecated load(False) with resolve() (#942) 2018-11-28 08:25:27 -08:00
Alex Ray
a488c2fe2f fix advanced mujoco envs for windows path separation (#1220) 2018-11-16 12:06:08 -08:00
Thiago
803d84e5d5 Update position of passenger after successful drop off (#1206) 2018-11-05 18:15:05 -08:00
Peter Zhokhov
52b89bb854 bump patch version 2018-11-05 17:15:16 -08:00
pzhokhov
64105932de remove extra wrapping of multi_discrete space shape into a tuple (#1209) 2018-11-05 17:13:49 -08:00
Peter Zhokhov
520fd3a5e3 skip mujoco tests in PRs based on presence of MUJOCO_KEY env variable 2018-10-25 13:50:57 -07:00
Peter Zhokhov
e944885e3b typo in travis.yml 2018-10-23 16:58:48 -07:00
Peter Zhokhov
647e1e20ff fix mujoco-related build failure 2018-10-23 16:47:40 -07:00
Felix Yan
fb7dc3e59f Fix a typo in gym/utils/play.py (#1187) 2018-10-23 14:20:14 -07:00
Charles Packer
094e6b8e6a CartPole/Acrobot rendering fix (#1189)
* Fixed rendering to properly display modifications to length etc

* 'self.length is half the pole's length'

* Explicitly base viewer size on Acrobot link size

* Made correct polygon rendering work for different link lengths
2018-10-18 14:30:18 -07:00
Zac Wellmer
b18ae9be6c xfvb -> xvfb (#1200) 2018-10-18 13:56:35 -07:00
Prajwal Gatti
efbc6f7081 Fixed typo (#1199)
Fixed the typo 'actions' to 'states', which is what is implied by context.
2018-10-18 13:56:07 -07:00
Peter Zhokhov
70ca46a968 bump version to 0.10.8, autodeploy 2018-10-02 10:52:51 -07:00
Peter Zhokhov
969b4d866d Merge branch 'master' of https://github.com/openai/gym 2018-10-02 10:27:06 -07:00
pzhokhov
6d4114b39e use binary wheels for atari-py and box2d (#1183)
* bump versions

* deploy on tags

* disable ubuntu14.04

* remove swig and cmake from dockerfiles
2018-10-02 10:26:43 -07:00
Peter Zhokhov
5cbc105c52 deploy on tags 2018-10-01 18:38:19 -07:00
Peter Zhokhov
b8cff4e6a0 bump versions 2018-10-01 18:14:52 -07:00
pzhokhov
a9d7fc7dd1 remove vertical camera motion on env.reset() (#1174)
* remove vertical camera motion on env.reset()

* In MuJoCo envs, don't reset viewers on environment reset. If the user moves around the camera in the viewer, allow them to keep the camera wherever they put it.

* Docstring update.
2018-09-24 14:53:23 -07:00
Josh Achiam
769c8a75d1 Makes Box2D environments pickleable. (#1177) 2018-09-24 13:16:46 -07:00
Antonin RAFFIN
2234f94e7b Add missing __eq__ and __repr__ methods (#1178)
* Add missing equality + repr methods

* Update gym.spaces tests
2018-09-24 11:11:03 -07:00
Alex
42f9e14c00 Updated Calculation Order (#1019)
* Updated order Calculation

Updated order of `x` and `theta` calculations so that they are no longer one timestamp behind `x_dot` and `theta_dot`.

https://github.com/openai/gym/issues/1018

* Added semi-implicit euler option

* Got implicit and standard euler mixed up

* switched default option
2018-09-21 15:19:40 -07:00
pzhokhov
b2149e9041 Update README.rst 2018-09-21 12:19:04 -07:00
pzhokhov
fe3ad7db58 Update README.rst 2018-09-21 12:18:04 -07:00
Norman Mu
4053e6068a specify explicit dtype in Box objects (#994) 2018-09-21 11:55:52 -07:00
hardmaru
c0a975757f added dtype for Box, removes annoying error (#1043)
resolves -> WARN: gym.spaces.Box autodetected dtype as <class 'numpy.float32'>. Please provide explicit dtype.

to my knowledge, does not change any behavior for this environment
2018-09-21 11:55:24 -07:00
pzhokhov
69f5f98330 test dockerfiles for ubuntu 14.04 and 18.04 (#1168)
* pass device_id=-1 when rendering mujoco in rgb_array mode

* trying ubuntu18.04 build

* use travis build matrix

* use travis build matrix

* use travis build matrix

* use fix 18.04 installation steps

* use fix 18.04 installation steps

* try py3 instead of py35

* trying the 14.04 build; cleaning up the 16.04 package list

* fixes to dockerfile.14.04

* fixes to dockerfile.14.04

* fixes to dockerfile.14.04

* fixes to dockerfile.14.04

* fixes to dockerfile.14.04

* fixing system package list for 14.04

* 16.04 build working

* clean up test.dockerfile.16.04

* adding python-numpy system package

* add patchelf

* remove python-numpy from 16.04 dockerfile

* 14.04 does not use mujoco (patchelf problem)

* cleaning up 18.04 dockerfile

* added comment to 14.04 dockerfile

* fix syntax in 14.04 dockerfile

* being fancy and switching from apt-get to apt command in 18.04 dockerfile

* update README.rst to use apt (instead of apt-get) on ubuntu 18.04
2018-09-21 11:53:58 -07:00
Daniel Angelov
7bbe486893 Add depth rendering from camera (#1114)
* Add depth rendering from camera

Allow the mujoco renderer to return the depth image using the `depth_array` mode. 

It follows the `rgb_array` extraction method.

* Depth data is a 2d array.

* Add depth_array to render modes.
2018-09-20 17:51:58 -07:00
Xingdong Zuo
924d134939 Update pendulum.py (#1073) 2018-09-17 10:33:25 -07:00
Madhavun
3ff851fe21 Added explicit dtype to observation_space (#1084)
To suppress warning coming from line 31 of spaces.Box
2018-09-17 10:28:02 -07:00
Ge Yang
d99d5bcc17 Add dtype to Box initialization, fixes #868 (#1092)
Otherwise it generates warnings:

#868
2018-09-17 10:27:31 -07:00
pzhokhov
4d7136c8b1 pass device_id=-1 when rendering mujoco in rgb_array mode (#1167) 2018-09-17 09:54:11 -07:00
Vitchyr Pong
10e53654cd Support kwargs for callable entry point (#1162) 2018-09-16 08:41:01 -07:00
Tycho Grouwstra
400f3b9810 json encode int8 and int16 (#1166) 2018-09-14 16:05:27 -07:00