Commit Graph

1491 Commits

Author SHA1 Message Date
Peter Zhokhov
65988d3491 0.15.0 + release notes 2019-08-23 15:18:38 -07:00
Kristian Hartikainen
a49c3e0fc8 Feature/pixel observation wrapper (#1499)
* Implement PixelObservationWrapper

* Change MujocoEnv.render to support custom camera_{name,id}

* Implement tests for PixelObservationWrapper

* Use env.get_pixels instead of direct env.render

* Fix camera_{id,name} check in pixel observation wrapper

* Fix rendering with explicit camera_id

* Add Wrapperget_pixels to allow call to be propagated to wrapped env

* Remove use of unnecessary `get_pixels` method

* Update PixelObservationWrapper to support multiple pixel keys

* Remove unnecessary `rgb_rendering_tracking` argument

* Remove rgb_rendering_tracking logic
2019-08-23 15:02:33 -07:00
Xingdong Zuo
9390e6cccf [Wrappers]: FlattenObservation (#1492)
* Create flatten_observation.py

* Update __init__.py

* Create test_flatten_observation.py

* Update test_flatten_observation.py

* Update flatten_observation.py

* Update flatten_observation.py

* Update flatten_observation.py

* Update flatten_observation.py
2019-08-23 14:49:12 -07:00
Xingdong Zuo
b144b95bc5 [Wrappers]: add GrayScaleObservation (#1486)
* Create gray_scale_observation.py

* Update __init__.py

* Create test_gray_scale_observation

* Rename test_gray_scale_observation to test_gray_scale_observation.py

* Update gray_scale_observation.py

* Update gray_scale_observation.py

* Update test_gray_scale_observation.py

* Update test_gray_scale_observation.py

* Update test_gray_scale_observation.py

* Update test_gray_scale_observation.py

* Update gray_scale_observation.py

* Update gray_scale_observation.py

* fix the test_gray_scale_observation wrapper test
2019-08-23 14:47:07 -07:00
Xingdong Zuo
80a6d089b7 [Wrappers]: add LazyFrames, FrameStack (#1485)
* Create frame_stack.py

* Update __init__.py

* Create test_frame_stack.py

* Update test_frame_stack.py

* Update frame_stack.py

* Update test_frame_stack.py

* Update __init__.py

* Update test_frame_stack.py

* Update test_frame_stack.py

* Update frame_stack.py

* Update gym/wrappers/frame_stack.py

Thanks !

Co-Authored-By: Kristian Hartikainen <kristian.hartikainen@gmail.com>

* Update gym/wrappers/frame_stack.py

Thanks !

Co-Authored-By: Kristian Hartikainen <kristian.hartikainen@gmail.com>

* make framestack tests actually run (with and without lz4)
2019-08-23 14:04:11 -07:00
pzhokhov
cedecb35e3 fix hand serialization tests (#1647)
* fix serialization by moving EzPickle inheritance to the leaf classes and passing correct arguments to EzPickle

* fix touch sensor serialization too
2019-08-14 10:28:27 -07:00
Xingdong Zuo
f99ce5f324 [Wrappers]: TransformReward (#1488)
* Create scale_reward.py

* Update __init__.py

* Create test_scale_reward.py

* Update scale_reward.py

* Update and rename scale_reward.py to transform_reward.py

* Update and rename test_scale_reward.py to test_transform_reward.py

* Update __init__.py

* Delete clip_reward.py

* Delete test_clip_reward.py

* Delete sign_reward.py

* Delete test_sign_reward.py
2019-08-09 15:19:52 -07:00
Kristian Hartikainen
436a3b5879 Fix hand reach v0 pickling (#1497)
* Add test for HandReach-v0 serialization

* Fix HandReach-v0 serialization

* Add test_{manipulate,manipulate_touch_sensors}.py

* Fix v2 -> v3 mujoco test naming

* Skip hand tests if `skip_mujoco`

* Fix v2 to v3 conversion test naming

* Use pytest.mark.skipif instead of unittest.skipIf

* SKIP_MUJOCO_MESSAGE -> SKIP_MUJOCO_WARNING_MESSAGE rename

* fix skipif argument name for hand serialization tests
2019-08-09 15:16:43 -07:00
Christopher Hesse
5e6f11d077 update travis yaml 2019-07-26 16:16:36 -07:00
Christopher Hesse
c3c8ab69e3 actually increment version 2019-07-26 15:31:47 -07:00
Wil
90100d2298 Adding GymFC entry 2019-07-26 15:05:03 -07:00
Christopher Hesse
98da67ac5b update readme for new version 2019-07-26 15:03:12 -07:00
Xingdong Zuo
9dea81b48a Allow atomic transformation (sequence of wrapping) for vectorized environment (#1573)
* Update __init__.py

* Update __init__.py

* Update __init__.py

* Update __init__.py
2019-07-23 22:34:39 +03:00
pzhokhov
6a4cefd875 Update supported os sections (#1606)
* fix python patch version (something is off in newer versions and opengl rendering for mujoco tests)

* polish README.rst - update and move up supported systems sections; update installation instructions for linux and osx

* restore .travis.yml to master head to unclutter the PR

* add libglfw3 to ubuntu installation instructions

* added a comment about windows support to README.rst
2019-07-23 22:21:02 +03:00
pzhokhov
0a3a92045d fix python patch version (something is off in newer versions and opengl rendering for mujoco tests) (#1605) 2019-07-22 22:37:06 +03:00
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