Commit Graph

1491 Commits

Author SHA1 Message Date
Sung Kim
31da762895 Use MACROs for FrozenLake (#436) 2019-03-07 19:49:30 -08:00
pzhokhov
d11196a896 remove reraise logic (#1342)
* remove reraise logic - replace with re-raising import errors in the only place it is used

* remove reraise

* remove reset call from MountainCar constructor

* further remove reraise

* remove reraise import in classic_control/rendering.py
2019-03-07 15:58:26 -08:00
Miguel Aguilera
89dee9c7a3 Set motor and gravity forces as variables (#466)
Set motor and gravity forces as variables of MountainCarEnv, so they can be modified
2019-03-07 15:57:02 -08:00
Nicolai Czempin
76e2f3bbac Add support for Adventure, Atari game by W. Robinett (#553) 2019-03-07 15:30:24 -08:00
Dibya Ghosh
17f8a016f0 Update reacher.py to ensure reachability (#614) 2019-03-07 15:00:52 -08:00
ngc92
890935dc75 added list of wrappers to docs (#631) 2019-03-07 14:55:56 -08:00
Justin Francis
1a321d32d1 Add argpars for environment in play.py (#641)
Add an Argpars --env for environment with default set to: MontezumaRevengeNoFrameskip-v4
2019-03-07 12:53:00 -08:00
Kohki Mametani
72e3f9d32f Fixed typo (#656) 2019-03-07 12:21:57 -08:00
Łukasz Kidziński
39ce693cce Info about the osim-rl environment added to external environments (#703)
* OpenSim as one of the external environments

* Typo in 'environments'
2019-03-06 20:50:04 -08:00
Edouard Leurent
193f26231c Fix Monitor.close() not flushing recorders (#1362)
The _monitor field is never set. This code used to belong to a duplicate close() that was never called before https://github.com/openai/gym/pull/1321 was merged.
2019-03-06 18:39:16 -08:00
Josh
48e1902da5 Add verbosity to CarRacing-v0 (#1341)
* Add verbosity to car_racing

* Fix rendering of car_racing
2019-03-06 15:30:46 -08:00
Peter Zhokhov
f4fb25d7f8 cleanup examples/scripts/sim_env, make it python3 compatible 2019-03-01 15:51:53 -08:00
Giovanni Alcantara
5c1dcf63df Add ability to generate random frozen lake maps (#835) 2019-03-01 15:32:12 -08:00
Zafarali Ahmed
26d09706fd Add tuple indexing (#843) 2019-03-01 15:22:58 -08:00
Hidehiro NAGAOKA
3a3442e8e0 Update comments in cliffwalking environment (#870) 2019-03-01 15:18:30 -08:00
Isszul
4ee168f452 Split out DEBUG and INFO level logging (#898)
Fix issue where DEBUG and INFO messages are returned at INFO level.
2019-03-01 15:05:21 -08:00
Peter Zhokhov
134f2bd64c add multibinary to test_spaces 2019-03-01 15:00:22 -08:00
Peter Zhokhov
b1aa912617 updated comment on MultiDiscrete space usage (similar to PR #923) 2019-03-01 14:36:47 -08:00
Peter Zhokhov
66cb17517c reduce window size of car racing to 1000x800 for human game 2019-03-01 14:32:08 -08:00
stephaniexd11
7978f42700 Updated Humanoid left_hip range to match right_hip (#932)
right_hip_y has range -110 to 20. left_hip_y should have the same range.
2019-03-01 14:23:07 -08:00
Abdelrahman Ahmed
4f06bbca14 Switch to np.frombuffer when rendering image data (#1333) 2019-03-01 14:20:42 -08:00
Sid Mysore
52e94a2b50 kwargs on reset for Reward and Action Wrapper (#1340) 2019-03-01 14:15:39 -08:00
Maruan
38f5559fe0 Correctly propagate kwargs in TimeLimit.reset (#927) 2019-02-26 17:07:22 -08:00
Peter Zhokhov
a4adef2ed4 release version 0.12.0 2019-02-26 16:36:45 -08:00
pzhokhov
09e09f7279 Fixes to car_racing.py (rendering in mode=human and main method) (#1339)
* record_video=False by default

* remove print(isopen)

* change isopen flag handling to a more compatible way
2019-02-26 16:36:18 -08:00
Lilian Besson
53e4b2c65d Typo in a error message in gym/wrappers/monitoring/video_recorder.py (#952) 2019-02-25 17:21:32 -07:00
Jon Haygood
ce9b4e486a Update format typo in readme (#992) 2019-02-25 17:06:22 -07:00
Tautvydas Misiunas
c593041c9f Update LunarLander description. (#996)
Update description to include side engine cost.
2019-02-25 17:05:35 -07:00
Peter Zhokhov
c831311ae5 modify README.rst to remove references to render(close=True) 2019-02-25 16:03:46 -08:00
Will Douglas
b5a3367fd5 Finish removing close as an option from render (#1009)
This cleans up some leftover changes after PR #836
2019-02-25 17:01:54 -07:00
Tom Alcorn
6c7e22245a Implement context handler protocol for Env (#1012)
This enables writing
```
import gym

with gym.make(...) as env:
    ...
```
without the need to remember to call `env.close()` later.
2019-02-25 16:53:58 -07:00
Kristian Hartikainen
90a0564444 Refactor mujoco envs to support dynamic arguments (#1304)
* Refactor gym envs to support dynamic arguments

* Fix viewer setup lookat configuration

* Add xml_file argument for mujoco envs

* Move refactored mujoco envs to their own _v3.py files

* Revert "Add xml_file argument for mujoco envs"

This reverts commit 4a3a74c00da73662c10c3256fb7242b85271539c.

* Revert "Fix viewer setup lookat configuration"

This reverts commit 62b4bcffea9d63bdd1eb6580d4fda9893fa20cdf.

* Revert "Refactor gym envs to support dynamic arguments"

This reverts commit b2a439f74f8be390c806515f77849e04776f91bb.

* Fix v3 SwimmerEnv info

* Regiter v3 mujoco environments

* Implement v2 to v3 conversion test

* Add extra step info the v3 environments

* polish the new unit tests a little bit
2019-02-25 16:12:06 -07:00
Satwik Kansal
17abad35ae Taxi.py: Improve inline documentation (#1077)
* Taxi.py: Improve inline documentation

* Use more descriptive variable names
* Fix formatting as per PEP8
* Add some inline documentation for better undrstanding

* Add action mappings in inline documentation
2019-02-15 16:11:18 -08:00
Ethan Brooks
74dc8be763 remove call to reset in DiscreteEnv.__init__ (#1316) 2019-02-15 15:57:46 -08:00
Matthew Rahtz
e0f916a7d5 Fix RobotEnv rgb_array rendering (#1182)
* Fix RobotEnv rgb_array rendering

* Set viewer dimensions explicitly for FetchEnv and HandEnv
2019-02-15 15:55:51 -08:00
Christopher Hesse
8ba7985a79 add defender (#1326) 2019-02-15 15:38:40 -08:00
Christopher Hesse
172c6dd2bb combine monitor close methods (#1321) 2019-02-15 12:04:32 -08:00
Peter Zhokhov
9cf90bbf03 only import mujoco if skip_mujoco=False (otherwise causes failures due to lack of mujoco key) 2019-02-11 12:35:42 -08:00
Jean-Baptiste Fiot (장밥)
8826379709 Fix issue #1266 (#1269)
* (fix most PEP-8 warnings)

* (use inplace operators)

* Add TestKellyCoinFlipEnv

* Fix issue 1266 - episode now ends when max wealth is reached

* (add bet_in_dollars variable for clarity)

* Modify flip to return +/-1

* Make code more compact

* Fix episode end rules in KellyCoinflipGeneralizedEnv

* Remove type hint to fix Travis CI build
2019-02-11 12:25:32 -08:00
Peter Zhokhov
e65b61fd08 make recent text env changes python 2/3 compatible 2019-02-08 17:50:34 -08:00
William Woof
8bcd125156 Fix to enable use with odd image dimensions (#1101) 2019-02-08 17:35:01 -08:00
Daniel Ingram
9c17393c34 Remove spaces around = in kwarg (#1241) 2019-02-08 17:14:18 -08:00
Misha Behersky
0659520f8c Return output from render method in a right way (#1248)
* Close output StringIO after returning value

* Test render output is immutable
2019-02-08 16:58:51 -08:00
Miguel Morales
5f73c5dff5 Move 3 toy_text environment to the correct env_type (#1251)
* Update __init__.py

* Update __init__.py
2019-02-08 16:50:38 -08:00
Benjamin Danek
57187307f1 Update cartpole.py (#1263) 2019-02-08 16:45:48 -08:00
Arash Rowshan
f0909baaf7 corrects typo in AcrobotEnv description (#1272) 2019-02-08 16:37:37 -08:00
JongGyun Kim
6cee6f2132 FIx a typo. Replace left or write with left or right. (#1305) 2019-02-08 16:18:46 -08:00
Xingdong Zuo
001dab1586 Delete benchmark_runner (#1309) 2019-02-08 16:18:18 -08:00
Andrew Melnik
332732e05c Add optional touch sensors for hand environments (#1299)
* extending robotics shadow hand with touch sensors

* extending robotics shadow hand with touch sensors

* extending robotics shadow hand with touch sensors

* extending robotics shadow hand with touch sensors

* extending robotics shadow hand with touch sensors

* extending robotics shadow hand with touch sensors

* extending robotics shadow hand with touch sensors

Co-authored-by: Luca Lach <llach@techfak.uni-bielefeld.de>

* add touch sensors layout

* add touch sensors layout

* extending robotics shadow hand with touch sensors

Co-authored-by: Luca Lach <llach@techfak.uni-bielefeld.de>

* extending robotics shadow hand with touch sensors

* add touch sensors layout

Co-authored-by: Luca Lach <llach@techfak.uni-bielefeld.de>

* update touch sensors layout 85

Co-authored-by: Luca Lach <llach@techfak.uni-bielefeld.de>

* add manipulate_egg_touch_sensors_85.xml & manipulate_pen_touch_sensors_85.xml; ManipulateTouchSensorsEnv._render_callback()

Co-authored-by: Luca Lach <llach@techfak.uni-bielefeld.de>

* add shared_touch_sensors_92.xml; solve pytest . failure

Co-authored-by: Luca Lach <llach@techfak.uni-bielefeld.de>
2019-02-08 16:00:19 -08:00
pzhokhov
07e0c98f8e python27 tests (#1314)
* add py27 test environment (sans box2d and atari)

* skip mujoco tests if mujoco_py not present

* re-enable python3 tests

* remove unicode symbols

* remove more unicode symbols
2019-02-08 11:46:51 -08:00