Commit Graph

1491 Commits

Author SHA1 Message Date
Peter Zhokhov
f4f2b6a133 restore gym/envs/__init__.py 2019-06-21 16:31:52 -07:00
Abhinav Sagar
c3becbbf0c Fix gravity constant (#1515)
* Added pendulumV2 with SI units

* Added pendulumV2 with SI units

* Fix gravity constant

* Delete pendulumV2.py

* Update pendulum.py

* Update pendulum.py

* Update pendulum.py
2019-06-21 16:30:04 -07:00
pzhokhov
c0510a0465 update links to robotics images (#1547)
* update links to robotics images

* restore the correct blog link
2019-06-21 16:26:33 -07:00
Peter Zhokhov
4ace0289a7 bump version, update release notes in README.rst 2019-06-21 14:40:18 -07:00
Tristan Deleu
c6a97e17ee Vectorized environments (#1513)
* Initial version of vectorized environments

* Raise an exception in the main process if child process raises an exception

* Add list of exposed functions in vector module

* Use deepcopy instead of np.copy

* Add documentation for vector utils

* Add tests for copy in AsyncVectorEnv

* Add example in documentation for batch_space

* Add cloudpickle dependency in setup.py

* Fix __del__ in VectorEnv

* Check if all observation spaces are equal in AsyncVectorEnv

* Check if all observation spaces are equal in SyncVectorEnv

* Fix spaces non equality in SyncVectorEnv for Python 2

* Handle None parameter in create_empty_array

* Fix check_observation_space with spaces equality

* Raise an exception when operations are out of order in AsyncVectorEnv

* Add version requirement for cloudpickle

* Use a state instead of binary flags in AsyncVectorEnv

* Use numpy.zeros when initializing observations in vectorized environments

* Remove poll from public API in AsyncVectorEnv

* Remove close_extras from VectorEnv

* Add test between AsyncVectorEnv and SyncVectorEnv

* Remove close in check_observation_space

* Add documentation for seed and close

* Refactor exceptions for AsyncVectorEnv

* Close pipes if the environment raises an error

* Add tests for out of order operations

* Change default argument in create_empty_array to np.zeros

* Add get_attr and set_attr methods to VectorEnv

* Improve consistency in SyncVectorEnv
2019-06-21 14:29:44 -07:00
Mor Katz
c03ec69c8d Modify MultiDiscrete comment regarding NOOP (#1537) 2019-06-17 13:40:11 -07:00
Abhinav Sagar
13f32c7689 Update acrobot.py 2019-06-14 14:29:03 -07:00
Xingdong Zuo
f380a0e871 [Wrappers]: ResizeObservation (#1487)
* Create resize_observation.py

* Update __init__.py

* Create test_resize_observation.py

* Update resize_observation.py

* Update resize_observation.py

* Update test_resize_observation.py

* Update resize_observation.py

* Update test_resize_observation.py

* Update resize_observation.py

* Update test_resize_observation.py
2019-06-07 16:01:35 -07:00
Xingdong Zuo
fcb58232e6 [Wrappers]: add ClipAction (#1483)
* Create clip_action.py

* Update __init__.py

* Create test_clip_action.py

* Update clip_action.py

* Update test_clip_action.py

* Update test_clip_action.py

* Update test_clip_action.py

* Update __init__.py

* Update test_clip_action.py
2019-06-07 15:56:56 -07:00
Kristian Hartikainen
f6209d4e17 Allow observation and action spaces to be customized in MujocoEnv (#1498)
* Add new _set_{observation,_action}_space methods for MujocoEnv,
  allowing customized spaces.
* Implement automatic handling of dict observation spaces
2019-06-07 14:43:05 -07:00
Mike W
788524a66b fixing memory leak in car_racing (#1509) 2019-06-07 14:41:09 -07:00
Tristan Deleu
e9053b4a12 Check for shape in equality operation between Box spaces (#1519) 2019-06-07 14:18:04 -07:00
Abhinav Sagar
c2a6131080 Remove sudo tag in travis (#1522)
* Update .travis.yml

* Update .travis.yml

* Update .travis.yml
2019-06-07 14:15:50 -07:00
Wojciech Zaremba
ff4664bd24 Fixes fetch/slide environment. (#1511) 2019-05-28 17:53:23 -07:00
Peter Zhokhov
1bf4ae955b bump version to 0.12.4 2019-05-24 18:16:33 -07:00
pzhokhov
9a7f10ece1 fix accidental seed function overriding in Space (#1506)
* fix accidental seed function overriding in Space

* default seed to None in spaces
2019-05-24 18:16:07 -07:00
Christopher Hesse
710cb0d23b increment version 2019-05-24 16:44:12 -07:00
Christopher Hesse
44698d9ea8 travis use newer python, remove Makefile 2019-05-24 16:44:12 -07:00
Christopher Hesse
003214b7aa increment version 2019-05-24 16:44:12 -07:00
Christopher Hesse
f1d13b4967 fix version selectors 2019-05-24 16:44:12 -07:00
Christopher Hesse
1bde3c01c3 attempt to remove pyopengl 2019-05-24 16:44:12 -07:00
Edouard Leurent
e0e14acc45 Use utils.seeding in spaces.space (#1473)
The "strong random seed" defined in utils.seeding and used in environments
cannot be used to seed the action spaces (np.random.RandomState only
supports uint32 seeds).

For consistency, the same seeding procedure should be used everywhere.
2019-05-24 15:57:29 -07:00
Julian Stastny
239aaf14ce Update registration.py (#1475) 2019-05-24 15:55:40 -07:00
Xingdong Zuo
1382789cd9 [Wrappers]: add ClipReward (#1484)
* Create clip_reward.py

* Update __init__.py

* Create test_clip_reward.py

* Update clip_reward.py
2019-05-24 15:42:10 -07:00
Kristian Hartikainen
df8ed34cc0 Implement FilterObservationWrapper (#1500) 2019-05-24 15:12:35 -07:00
Xingdong Zuo
9ace96e7a5 [Wrappers]: SignReward (#1489)
* Create sign_reward.py

* Update __init__.py

* Create test_sign_reward.py

* Update test_sign_reward.py
2019-05-24 14:29:23 -07:00
Christopher Hesse
cf06aeff9f docstring change, fixes #744 (#1493) 2019-05-24 14:29:01 -07:00
Peter Zhokhov
98917cf5d3 move imports some more 2019-05-10 17:53:05 -07:00
Peter Zhokhov
73732fa394 more fixes for non-atari (py2.7) builds 2019-05-10 17:32:16 -07:00
Peter Zhokhov
01f5667011 more move imports in test_atari_preprocessing 2019-05-10 17:05:15 -07:00
Peter Zhokhov
b6ff90e23c move imports 2019-05-10 16:22:06 -07:00
Peter Zhokhov
0cc03cddd6 fix for the new test 2019-05-10 16:07:48 -07:00
Peter Zhokhov
05587f46d9 add opencv dependency for atari to fix tests 2019-05-10 15:19:04 -07:00
pzhokhov
5861d95ecd fix #1425 (#1459)
* fixes #1266

* test for correct observation space keys in GoalEnv

* fix import leading to test failures

* fix test failures
2019-05-10 15:00:01 -07:00
Xingdong Zuo
5525e30c48 Create atari_preprocessing.py (#1455)
* Create atari_preprocessing.py

* Update atari_preprocessing.py

* Update atari_preprocessing.py

* Create test_atari_preprocessing.py

* Update __init__.py

* Update test_atari_preprocessing.py
2019-05-10 14:59:32 -07:00
pzhokhov
8b15512bba test docker images based on python images (#1474)
* base test docker image on python images

* fix py3 build

* fixes for python-based dockerfile

* re-enable py27 build

* remove requirements_dev.txt and unittest.cfg (cleaning up build pipeline)
2019-05-10 14:49:16 -07:00
Abhinav Sagar
32253b5226 Updated documentation in car_racing.py (#1462)
* Fixed g constant for better accuracy

* Updated documentation in car_racing.py

* Update pendulum.py

* Update car_racing.py
2019-05-03 14:58:19 -07:00
Michael Anuzis
3fcfabdbd1 Bugfix: frozen_lake.py generate_random_map can now reliably create mu… (#1422)
* Bugfix: frozen_lake.py generate_random_map can now reliably create much larger maps (300x300+) without recursion errors.

* Adding a unit test validating FrozenLake map generation validity for a few map sizes.
2019-05-03 14:55:59 -07:00
Xingdong Zuo
e801ccfdb0 [Update core.py] Remove underscore methods and its deprecation warning (#1320)
* Update core.py

* Update core.py

* Update core.py

* Update core.py

* Update core.py

* Update core.py
2019-05-03 14:53:31 -07:00
Hugo
8233fe1f16 Update version metadata (#1451)
* Add python_requires to help pip

* Add Trove classifiers to clarify support on PyPI
2019-05-03 14:47:44 -07:00
Christopher Hesse
86f21ad4b3 remove instructions for adding new environments to gym (#1458) 2019-04-29 13:26:38 -07:00
pzhokhov
d638d5e6f8 fixes #1266 (#1456) 2019-04-26 15:31:49 -07:00
Christopher Hesse
e748da7138 Update environments.md (#1457) 2019-04-26 15:11:40 -07:00
Xingdong Zuo
c7bae99a06 [Update registration.py]: Remove unused args (#1429)
* Update registration.py

* Update registration.py
2019-04-26 14:30:14 -07:00
Peter Zhokhov
89acef6525 mujoco2vs3 tests - test values in infodict with tolerance 2019-04-19 16:09:52 -07:00
Peter Zhokhov
59266f765b more atol changes in mujoco2vs3 test 2019-04-19 15:50:27 -07:00
Peter Zhokhov
156949c9b6 Merge branch 'master' of github.com:openai/gym 2019-04-19 15:18:38 -07:00
Peter Zhokhov
fbd31949fc set atol=1e-6 in mujoco_v2_to_v3 comparison 2019-04-19 15:18:30 -07:00
Christopher Hesse
3280e0e857 fix link to atari_wrappers_deprecated.py 2019-04-19 14:54:23 -07:00
Xingdong Zuo
85a5372a19 [Update time_limit.py]: explicit information to distinguish done by passing limit (#1402)
* Update time_limit.py

* Update time_limit.py

* Update time_limit.py

* Update time_limit.py

* Update registration.py

* Update registration.py

* Update time_limit.py

* Update time_limit.py

* Update time_limit.py

* Update time_limit.py
2019-04-19 14:20:26 -07:00