Commit Graph

23 Commits

Author SHA1 Message Date
Abdelrahman Ahmed
4f06bbca14 Switch to np.frombuffer when rendering image data (#1333) 2019-03-01 14:20:42 -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
John Schulman
e2b7f1450c add maxwidth parameter to viewer; resize image if it’s larger (#1151) 2018-08-30 14:29:47 -07:00
John Schulman
4c460ba6c8 Cleanup, removal of unmaintained code (#836)
* add dtype to Box

* remove board_game, debugging, safety, parameter_tuning environments

* massive set of breaking changes
- remove python logging module
- _step, _reset, _seed, _close => non underscored method
- remove benchmark and scoring folder

* Improve render("human"), now resizable, closable window.

* get rid of default step and reset in wrappers, so it doesn’t silently fail for people with underscore methods

* CubeCrash unit test environment

* followup fixes

* MemorizeDigits unit test envrionment

* refactored spaces a bit
fixed indentation
disabled test_env_semantics

* fix unit tests

* fixes

* CubeCrash, MemorizeDigits tested

* gym backwards compatibility patch

* gym backwards compatibility, followup fixes

* changelist, add spaces to main namespaces

* undo_logger_setup for backwards compat

* remove configuration.py
2018-01-25 18:20:14 -08:00
Toshiki Kataoka
93d554bdbb fix typo 2017-02-25 18:51:37 -08:00
Greg Brockman
d908e6ad8b Even better: just use the height/width from the buffer directly 2016-07-03 10:36:48 -07:00
Greg Brockman
ce15f39c9b And add missing self 2016-07-03 10:28:28 -07:00
Greg Brockman
645da3137d Add missing self 2016-07-03 10:27:22 -07:00
Greg Brockman
a50a41f1c7 Handle pyglet windows of unexpected size 2016-07-03 10:23:12 -07:00
Greg Brockman
2aa03d6088 Add configure method to Env, and support multiple displays in CartPole (#175)
* Add configure method to Env, and support multiple displays in CartPole

This allows people to pass runtime specification which doesn't affect
the environment semantics to environments created via `make`.

Also include an example of setting the display used for CartPole

* Provide full configure method

* Allow environments to require configuration

* Don't take arguments in make
2016-06-12 20:56:21 -07:00
Oleg Klimov
72d89cb22f Faster video recording (#119)
* Faster video recording

* rendering.py: return_rgb_array default to False, for other environments not to break
2016-06-06 00:06:26 -07:00
Greg Brockman
892485a3ff rendering.py: Add on_close handler
Closes #48
2016-05-11 13:26:53 -07:00
Trevor Blackwell
f094e7d763 Cleanup pr/53 2016-05-10 17:29:02 -07:00
Trevor Blackwell
52dc50eacb Merge branch 'pr/53' 2016-05-10 17:26:15 -07:00
Trevor Blackwell
9287889214 Merge branch 'master' into pr/53
# Conflicts:
#	.gitignore
#	gym/envs/board_game/go.py
#	gym/monitoring/video_recorder.py
#	gym/scoreboard/client/api_requestor.py
2016-05-10 17:22:49 -07:00
Botev
c62b2da337 A few compatibility issues with python3 resolved.
Fixed lot's of issues with the HexEnv.
Added Hex9x9-v0 to registry
2016-05-03 20:10:00 +01:00
Oleg Klimov
386096f60a rendering.py: 'color' keyword argument handling fixed 2016-05-03 12:07:14 +03:00
Jonas Schneider
e74ed45f56 Use our reraising when probing for pyglet 2016-05-01 23:38:19 -04:00
Jonas Schneider
fd18ec3507 Merge remote-tracking branch 'origin/master' into py3
Conflicts:
	gym/envs/atari/atari_env.py
2016-04-29 18:07:47 -07:00
Greg Brockman
431043256b rendering.py: Actually interpolate error message 2016-04-28 22:20:41 -07:00
Jonas Schneider
5065950a09 Fix Python3 compat of import dependencies 2016-04-27 18:03:29 -07:00
Greg Brockman
fa61141a57 Raise a better error for a missing pyglet 2016-04-27 11:46:11 -07:00
Greg Brockman
e8f2980603 Initial release. Hello world :). 2016-04-27 08:00:58 -07:00