Commit Graph

1276 Commits

Author SHA1 Message Date
Xingdong Zuo
d993d5fd35 Rename FilterObservationWrapper to FilterObservation to be consistent with namings (#1558)
* Update filter_observation.py

* Update __init__.py

* Create test_filter_observation.py

* Delete filter_observation_test.py
2019-07-19 20:26:34 -07:00
albert ge
04ee423aa4 Recursively ravel nested observations (#1581)
* Recursively check for nested gym.spaces.Dict objects in observation_space.spaces

* add tests; support nested tuples; asserts for dtype and space

* support for observation ravel, and more comprehensive tests

* cleanup print
2019-07-19 20:22:42 -07:00
Xingdong Zuo
c7f9edf943 Update README.md 2019-07-19 14:37:58 -07:00
Jesse Farebrother
dc91f434f8 Expose entry_point on EnvSpec 2019-07-19 14:36:57 -07:00
Abhinav Sagar
cc6ff414ae Added velocity goal constraint in mountaincar (#1561)
* Update mountain_car.py

* Update mountain_car.py
2019-07-14 12:39:40 -07:00
Abhinav Sagar
02212dda15 Added velocity goal constraint in continuousmountaincar (#1562)
* Update continuous_mountain_car.py

* Update continuous_mountain_car.py
2019-07-14 12:39:19 -07:00
Ethan Brooks
144c85175e check if env has .spec in TimeLimit wrapper 2019-07-12 15:29:05 -07:00
Claris Li
ab51fca9f1 fix: Support list type shape (#1563) 2019-07-12 15:10:11 -07:00
Xingdong Zuo
08426092c1 Update __init__.py (#1570) 2019-07-12 15:08:14 -07:00
Tristan Deleu
50ef7bf199 Fix AsyncVectorEnv with spawn context and shared memory (Fixes #1542) 2019-07-12 14:44:25 -07:00
Sridhar Thiagarajan
5c11d19937 Update spaces.py method definition (#1579)
* Updated spaces.py method description

No longer sampling from uniform distribution always, changing distribution

* update space.py sampling method description
2019-07-12 14:32:41 -07:00
albert ge
72806c544a Recursively check for nested Dict in observation space (#1569)
* Recursively check for nested gym.spaces.Dict objects in observation_space.spaces

* add tests; support nested tuples; asserts for dtype and space
2019-07-12 14:25:50 -07:00
Abhinav Sagar
a6d0e9fa4d Update rendering.py (#1585) 2019-07-12 14:09:51 -07:00
Jonah
1e4d80c50a fix escape sequence DeprecationWarning (#1595) 2019-07-12 14:08:54 -07:00
Christopher Hesse
f33408c4fd fix readme 2019-07-08 13:15:08 -07:00
Christopher Hesse
f4d3c075e8 fix version selector 2019-07-08 13:15:08 -07:00
Christopher Hesse
f86ef688ac update readme 2019-07-08 13:15:08 -07:00
Christopher Hesse
c2adfae015 narrow pyglet version 2019-07-08 13:15:08 -07:00
Christopher Hesse
a94a8f6c9b fix pyglet version 2019-07-08 13:15:08 -07:00
Christopher Hesse
573d1e2498 increment version to 0.13.1 2019-07-08 10:53:55 -07:00
Jesse Farebrother
567c620b72 Don't use 0 as the default mode and difficulty for Atari games 2019-07-08 10:18:08 -07:00
Tristan Deleu
ccd5ef756e Separate tests for single and action_space (Fixes #1545) 2019-06-28 16:32:39 -07:00
Tristan Deleu
6ffcd212df Check for closed pipes in close for AsyncVectorEnv 2019-06-28 16:30:53 -07:00
Tristan Deleu
316156903d Check if the pipe is not None is _poll (Fixes #1542) 2019-06-28 16:30:53 -07:00
Tristan Deleu
cab1d0ec38 Add success flag in results from workers in AsyncVectorEnv 2019-06-28 16:30:53 -07:00
Tristan Deleu
ad8b3b20e6 Move _raise_if_errors after recv in AsyncVectorEnv (Fixes #1546) 2019-06-28 16:30:53 -07:00
David Kraemer
4e3cd3f6b3 Extending the Box class to allow possibly unbounded boxes (#1567)
* Added support for unbounded box endpoints.

* Documentation and code cleanup.

* Fixed some of the logic of upper bounded versus lower bounded spaces.

* Included unbounded Box instances for the original tests.

* Removed unnecessary attribute in the Box class.
2019-06-28 15:54:31 -07:00
pzhokhov
cd7f96e4db add spec property to wrapper to be forwarded to wrapped env. Fixes 1554 (#1574) 2019-06-28 15:27:43 -07:00
Tristan Deleu
0fb09bd9a8 Improve consistency in shared_memory utils 2019-06-28 15:05:16 -07:00
Tristan Deleu
42c36737ba Fix slow writing to shared memory (Fixes #1548) 2019-06-28 15:05:16 -07:00
Tristan Deleu
2e56028e9a Handle KeyboardInterrupt exception in AsyncVectorEnv (Fixes #1543) 2019-06-28 15:00:49 -07:00
Tristan Deleu
02cff040ee Fix typo in AsyncVectorEnv (Fixes #1544) 2019-06-28 14:42:11 -07:00
Tristan Deleu
f164713a6f Use deepcopy in SyncVectorEnv instead of numpy copy 2019-06-28 14:39:20 -07:00
Peter Zhokhov
220ae8487d bump version to 0.13.0, update release notes 2019-06-21 16:53:24 -07:00
Jesse Farebrother
fc6891c9c8 ALE 0.6 (#1535) 2019-06-21 16:50:54 -07:00
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