Commit Graph

23 Commits

Author SHA1 Message Date
Mark Towers
3c17911700 Merge main into array-api (#1401)
Co-authored-by: Martin Schuck <57562633+amacati@users.noreply.github.com>
Co-authored-by: Kallinteris Andreas <30759571+Kallinteris-Andreas@users.noreply.github.com>
Co-authored-by: James Mochizuki-Freeman <jameymmf@gmail.com>
2025-06-10 14:16:42 +01:00
Adam Parker
69471be601 Add stochastic taxi (rainy+fickle) (#1315)
Co-authored-by: Mark Towers <mark.m.towers@gmail.com>
2025-03-25 16:46:06 +00:00
Sebastian Griesbach
d2dc19f771 Fix discrete CarRacing-v3 (#1253)
Co-authored-by: Mark Towers <mark.m.towers@gmail.com>
2024-11-18 11:56:22 +00:00
Ariel Kwiatkowski
c9e2957435 Change end-of-episode in CarRacing to termination as opposed to truncation (#813) 2024-08-09 10:30:38 +01:00
Mark Towers
1878f6dd7d Fix CartPole for equivalence to vector implementation (#1121) 2024-07-16 15:56:42 +01:00
Tobias Pitters
1afdb5cbad Add is_slippery option for cliffwalking environment (#1087) 2024-07-03 15:46:19 +01:00
TobiasKallehauge
fd4ae52045 Randomize LunarLander wind generation at reset to gain statistical independence between episodes (#959) 2024-03-09 09:42:08 +00:00
Tim Schneider
2b5e555f06 Made CartPoleVectorEnv compliant with #785 (#915)
Co-authored-by: Tim Schneider <tim@robot-learning.de>
Co-authored-by: Mark Towers <mark.m.towers@gmail.com>
Co-authored-by: Tim Schneider <tim.schneider94@t-online.de>
2024-02-19 17:41:29 +00:00
Mark Towers
27f8e85051 Merge v1.0.0 (#682)
Co-authored-by: Kallinteris Andreas <30759571+Kallinteris-Andreas@users.noreply.github.com>
Co-authored-by: Jet <38184875+jjshoots@users.noreply.github.com>
Co-authored-by: Omar Younis <42100908+younik@users.noreply.github.com>
2023-11-07 13:27:25 +00:00
Andrea PIERRÉ
075267a55f [FrozenLake] Add seed in random map generation (#139) 2022-11-24 20:46:38 +00:00
Mark Towers
8589523a77 Change import gymnasium to import gymnasium as gym (#20) 2022-09-16 23:41:27 +01:00
pseudo-rnd-thoughts
47ba48b611 Rename to gymnasium 2022-09-08 10:11:31 +01:00
pseudo-rnd-thoughts
640c509109 Rename to gymnasium 2022-09-08 10:10:07 +01:00
John Balis
3a8daafce1 Removing return_info argument to env.reset() and deprecated env.seed() function (reset now always returns info) (#2962)
* removed return_info, made info dict mandatory in reset

* tenatively removed deprecated seed api for environments

* added more info type checks to wrapper tests

* formatting/style compliance

* addressed some comments

* polish to address review

* fixed tests after merge, and added a test of the return_info deprecation assertion if found in reset signature

* some organization of env_checker tests, reverted a probably merge error

* added deprecation check for seed function in env

* updated docstring

* removed debug prints, tweaked test_check_seed_deprecation

* changed return_info deprecation check from assertion to warning

* fixes to vector envs, now  should be correctly structured

* added some explanation and typehints for mockup depcreated return info reset function

* re-removed seed function from vector envs

* added explanation to _reset_return_info_type and changed the return statement
2022-08-23 11:09:54 -04:00
Mark Towers
f3f8a970b7 Fixed tests for Car racing v2 (#2964) 2022-07-14 08:35:02 -04:00
Mark Towers
015b31fa76 Bug fix, add tests for environment checker and passive environment checker wrapper (#2903) 2022-07-10 21:45:24 -04:00
Arjun KG
907b1b20dd New Step API with terminated, truncated bools instead of done (#2752) 2022-07-09 16:48:06 -04:00
Pablo Samuel Castro
ca39816943 Add reset params (with np support) (#2926) 2022-07-06 07:08:01 -04:00
Jet
f042d0beb9 Add option to change colour on carracing through "options" argument, remove carracingdomainrandomize registration (#2931)
* add option to change colour on carracing through "option"

* fix dict bug

* black

* add docs for reset arg

* fix thing

* remove randomize from registration

* update doc

* update docs

* update docs

* remove unnecessary argument

* fix thing

* fix thing

* f

* update docs

* add test

* remove unused import

* Update registration.py
2022-06-30 12:06:51 -04:00
Mark Towers
024b0f5160 Added Action masking for Space.sample() (#2906)
* Allows a new RNG to be generated with seed=-1 and updated env_checker to fix bug if environment doesn't use np_random in reset

* Revert "fixed `gym.vector.make` where the checker was being applied in the opposite case than was intended to (#2871)"

This reverts commit 519dfd9117.

* Remove bad pushed commits

* Fixed spelling in core.py

* Pins pytest to the last py 3.6 version

* Add support for action masking in Space.sample(mask=...)

* Fix action mask

* Fix action_mask

* Fix action_mask

* Added docstrings, fixed bugs and added taxi examples

* Fixed bugs

* Add tests for sample

* Add docstrings and test space sample mask Discrete and MultiBinary

* Add MultiDiscrete sampling and tests

* Remove sample mask from graph

* Update gym/spaces/multi_discrete.py

Co-authored-by: Markus Krimmel <montcyril@gmail.com>

* Updates based on Marcus28 and jjshoots for Graph.py

* Updates based on Marcus28 and jjshoots for Graph.py

* jjshoot review

* jjshoot review

* Update assert check

* Update type hints

Co-authored-by: Markus Krimmel <montcyril@gmail.com>
2022-06-26 18:23:15 -04:00
Ariel Kwiatkowski
51a6386a6b Revert "Parameterize initial state distributions for classic control envs. (#2921)" (#2923)
This reverts commit af918d81e0.
2022-06-23 18:21:37 -04:00
Pablo Samuel Castro
af918d81e0 Parameterize initial state distributions for classic control envs. (#2921) 2022-06-23 17:06:04 -04:00
Mark Towers
ffbf971171 Rewrite env tests (#2867) 2022-06-16 09:29:13 -04:00