Commit Graph

1491 Commits

Author SHA1 Message Date
Hill Ma
8a721ace46 Fix video recording. (#2139) 2021-01-11 09:58:46 -08:00
Peter Zhokhov
2c50315aab 0.18.0 release, release notes 2020-12-18 15:40:47 -08:00
pzhokhov
1e5f770044 fix build - only install mujoco for python 3.6, 3.7, (#2133)
* reverting to older version of 3.6 python to test if the build is failing because of that

* revert 3.7 to 3.7.3 for the build

* revert python 3.8 version to 3.8.1

* do not install mujoco on 3.8 and 3.9

* enable mujoco for 3.7

* .

* .

* .

* use regex to navigate python version dependent package installation

* .
2020-12-18 15:31:58 -08:00
Justin Terry
bdf95c1adc Python 3.9 support (#2088)
* try changes in pr 1804

* fix classifiers

* typo
2020-12-17 11:55:52 -08:00
Justin Terry
c4d0af393e Miscellaneous Toy Text fixes (#2082)
* toytext cleanup

* flake8
2020-11-09 10:24:26 -08:00
Justin Terry
eec7d3354a Remove Python 3.5 support, travis and setup.py maintenance (#2084)
* remove python 3.5, update travis

* add travis

* add cmake during tests

* add swig

* disable python 3.8 removal?

* remove depricated failover

* add opencv and pillow minimum versions

* try removing pillow minimum version

* try older version of ubuntu

* reup ubuntu

* make pillow version suitable for pyglet version range

* remove extraneous run

* rerun stalled CI
2020-11-06 17:04:23 -08:00
Melvin Wang
eee9b28882 Flattened space/point dtype mismatch (#2070)
* add test showing mismatch in flattened space dtype and flattened point dtype

* fix mismatch in flattened space dtype and flattened point dtype

* fix typo

* enhance test to detect when flattened dtype is incorrect

* fix incorrect flattened dtype

* remove inaccurate comment

* change flatten to always use space.dtype

* added testing for unflattened dtypes

* fix unflatten dtypes

* swtich flatten_space to use space.dtype for hardcoded space dtypes

* fix failure in python 3.5
2020-11-06 12:06:29 -08:00
Xingdong Zuo
28c42b63c8 [Wrappers]: TimeAwareObservation (#1490)
* Create time_aware_observation.py

* Update __init__.py

* Create test_time_aware_observation.py

* Update time_aware_observation.py

* Update time_aware_observation.py

* Update time_aware_observation.py

Co-authored-by: pzhokhov <peterz@openai.com>
2020-11-05 13:44:37 -08:00
Adwait Naik
57968cacd0 updated Gridworld: A simple 2D grid environment (#2073) 2020-10-23 13:47:06 -07:00
Andreas Boltres
e6a758da3c Add gym-autokey to third party environment list (#2055)
This env is a bit more heavyweight due to the size and complexity of the underlying KeY prover, but I hope that you too can build/test it hand have some fun there 😄

Please notify me if there is anything wrong with the installation or the env itself.
2020-10-23 11:53:11 -07:00
Peter Zhokhov
38a1f630dc 0.17.3 release and notes 2020-09-29 16:49:27 -07:00
leocus
81508d348d Improved performance of simulation (#2006)
* Improved performance of rendering

* Improved performance

* remove commented out line

* black formatting

Co-authored-by: leocus <leocus4@gmail.com>
Co-authored-by: pzhokhov <peterz@openai.com>
2020-09-25 16:33:54 -07:00
Fredrik Norén
0424d59fe8 Add gym-derk to environments (#2044)
Co-authored-by: pzhokhov <peterz@openai.com>
2020-09-25 16:14:29 -07:00
Alberto Falossi
f9110b5bb4 Added gym-adserver (#2049) 2020-09-25 15:49:37 -07:00
lsylusiyao
27b6816ab0 Add support for tuple input on MultiBinary space (#2023)
* Add support for tuple input on MultiBinary space

* Change input of multibinary

* Remove check of length != 1; Add shape check
2020-09-25 15:43:15 -07:00
Tristan Deleu
58401db97e Allow custom spaces in VectorEnv (#2038)
* Allow custom observation spaces in VectorEnv

* Replace np.copy by deepcopy in reset of SyncVectorEnv

* Add tests for VectorEnv with custom spaces

* Add tests for shared memory and batches of custom spaces

* Remove unused import in VectorEnv test

* Add warning note in the Space class for custom spaces
2020-09-21 13:38:51 -07:00
Alexander Kuhnle
8cf2685db2 Fix problem with variable space sizes/bounds in KellyCoinflipGeneralizedEnv (#2020)
* Clip/resample game parameters to be able to fix obs/action space sizes/bounds

* Make KellyCoinflip distribution clipping optional
2020-09-11 15:34:13 -07:00
towzeur
811ad53571 Update environments.md (#2035)
added abalone-gym
2020-09-11 15:10:51 -07:00
RaghuSpaceRajan
6a0d8188e9 Importing wrappers in gym (#2040)
Otherwise, using gym.wrappers crashes code.
2020-09-11 15:07:51 -07:00
Tristan Deleu
1a92bc6c83 Remove Python 2 compatibility in VectorEnv (#2034) 2020-09-11 15:07:27 -07:00
Antonin RAFFIN
75b5fabdab Extend cloudpickle version range (#2032) 2020-09-11 15:02:20 -07:00
Jim Turner
abb815c871 Clarify relationship between reset() and RNGs (#2019)
The current docstring for `reset()` seems to indicate that the
environment will be identical after separate calls to `reset()`.
However, the `reset()` function isn't supposed to reset the states of
the environment's RNGs [1]. This change clarifies the relationship
between the `reset()` function and the RNGs.

[1]: https://github.com/openai/gym/issues/250
2020-08-28 14:58:35 -07:00
Neil
de25ab58c8 Remove dependency from setup.py (#2016)
Python 3.4 was dropped, so enum34 is no longer required.
2020-08-28 14:40:35 -07:00
JacopoPan
6dd6568380 Add gym-pybullet-drones to third party environment list (#2024)
* Update environments.md

* Update environments.md
2020-08-28 13:42:04 -07:00
Quan Lin
bf7e44f680 To make toy_text DiscreteEnv's reset() method and step(action) method return consistent type of a state. (#1987)
* Update discrete.py

To make toy_text DiscreteEnv's reset() method and step(action) method return consistent type of a state.
The reset() method of DiscreteEnv returns a state of type numpy.int64, while step(action) returns a state of type int. This inconsistency could cause some problem for some agents.
In reset() method, force the returned state as type int.

* add cast to int in toy_text.discrete.step method

Co-authored-by: Peter Zhokhov <peterz@openai.com>
2020-08-14 16:39:12 -07:00
bion howard
7eebed08bf include low, high, & dtype in spaces.Box.__repr__ (#1974)
* include low, high, & dtype in spaces.Box.__repr__

multitask learners need a way to make a sensor for each space, and it's possible for two different Box spaces to have the same shape but different low/high/dtype, so this pull request just adds the minimum low value, maximum high value, and the dtype to Box.__repr__ so we can use str(box_space) as a key in a ModuleDict of sensors

* f-string to format

* fix typo

Co-authored-by: Peter Zhokhov <peterz@openai.com>
2020-08-14 15:30:58 -07:00
osannolik
72ac1a70e6 Add gym-goddard to third party environment list (#1998) 2020-08-14 14:59:19 -07:00
InstanceLabs
50848e8f8b Clean up car racing environment (#1995)
* Clean up car racing environment.

* Improve description and remove unused imports.

* Remove some more unused imports.
2020-08-14 14:57:47 -07:00
pzhokhov
32eee9cd10 fix method forwarding in VectorEnvWrapper (#1917)
* fix method forwarding in VectorEnvWrapper

* add unit test for vectorenvWrapper methods
2020-08-14 14:20:56 -07:00
Brett Daley
b2cefc6459 AtariPreprocessing: return 3-D array when grayscale_obs=True (#1796)
* AtariPreprocessing: return 3-D array when grayscale_obs=True

* Update test_atari_preprocessing.py

* AtariPreprocessing: add option for 3-D grayscale, leave 2-D by default

* AtariPreprocessing: add tests for observation_space.shape
2020-08-14 14:18:42 -07:00
Rishit Dagli
6df1b994ba Added a resources section (#1918)
* Populated ressources section

* Updated resources section to match .rst convention

* Removed Gym Algorithms
2020-07-13 16:29:32 -07:00
NotNANtoN
96d85029a7 Made observation spaces Dict iterable (#1793) 2020-07-10 16:39:21 -07:00
InstanceLabs
30d30027a2 Improve frozen lake environment. (#1980) 2020-07-10 14:51:50 -07:00
Sridhar Thiagarajan
83fb230cf0 Update README to reflect MuJoCo version support (#1984)
* Update README to reflect MuJoCo version support

an older version of mujoco-py needs to be installed with this library than what is available in master of mujoco-py repo.

* Update README to reflect MuJoCo version support
2020-07-10 14:24:27 -07:00
CuriousCAT
345c65973f Gridworld added (#1970) 2020-06-23 17:00:45 -07:00
likefrankie
809a8ad21b Fix: FrozenLake-v0 | is_valid function | condition (#1924)
The following conditional statement appears incorrect:
if (res[r_new][c_new] not in '#H'):
2020-06-19 15:25:50 -07:00
Benedikt S. Vogler
679f1a7aba Pole balancing documentation of observation matches code (#1914)
* documentation matches code

The returned angle is returned in the unit of radians and not degrees.

* use tabs for indent
2020-06-19 15:18:19 -07:00
pedrofreire
d7e60a1eae Set default image color to white (#1928)
In gym.envs.classic_control.rendering, Geom has a color attribute,
which is initialized as black. This is a good default for most Geom
subclasses, such as lines and circles. However, in the case of Image
instances, the result is a completely black image - in the case of an
image without transparency, the result is a black square. This can be
easily fixed by setting the default color for Image instances as white,
which causes images to be displayed normally.
2020-06-19 15:07:09 -07:00
Cristian Vasquez
efc6b60a2c added missing ansi rendering (#1926) 2020-06-19 15:03:48 -07:00
Miguel Morales
5cbb9c3bc9 Update taxi.py (#1943)
* Update taxi.py

Clarify reward comments

* Update taxi.py
2020-06-19 14:49:44 -07:00
Christopher Hesse
2d9652f0b0 CONTRIBUTING.md (#1969) 2020-06-19 14:47:30 -07:00
ryota-mo
e02ed92b44 Specify the camera of depth_array (#1960)
* specify the camera of depth_array

* exclude human
2020-06-19 14:42:26 -07:00
Neev Parikh
5be0f52ccc Fixes #1965 - Changed function arg name and added test to catch bug (#1966) 2020-06-19 14:20:12 -07:00
Kristian Holsheimer
5ff4e7d750 Bug fix, missing attrs: dtype, shape (#1950) 2020-06-19 14:16:02 -07:00
InstanceLabs
d4e596bf65 Clean up mountain car environment (#1961)
* Clean up mountain car environment.

* Add whitespace around division operator.
2020-06-19 14:13:15 -07:00
Florin Gogianu
abef916ca2 Add linux dependencies for atari-py and box2d-py 2020-06-12 14:28:25 -07:00
Florin Gogianu
89b928f358 Fix linux dependencies. 2020-06-12 14:28:25 -07:00
instance01
fcec74dd68 Improve description of MountainCar environment. 2020-06-12 14:25:49 -07:00
hardmaru
d53a134619 Can I add Slime Volleyball Gym Environment here? 2020-06-12 14:23:22 -07:00
Raphael Van Hofffelen
65ae8f8f6b changed "reward" to the correct term "return" (#1946) 2020-06-12 14:14:35 -07:00