Commit Graph

87 Commits

Author SHA1 Message Date
Mark Towers
8a46c3ab39 Add support for different vector autoreset modes (#1227) 2024-11-28 12:18:55 +00:00
Simone Parisi
ebe70a1aeb StickyAction wrapper can repeat the old action for more than 1 step (#1240)
Co-authored-by: Mark Towers <mark.m.towers@gmail.com>
2024-11-14 10:23:06 +00:00
JDRanpariya
175202f9b3 Allow frame stack size of 1 in FrameStack wrapper (#1192) 2024-10-06 11:39:52 +01:00
Mark Towers
a6976e42d4 Fix VectorizeActionTransform for changing spaces (#1170) 2024-09-20 13:44:07 +01:00
Übertreiber
ad8734d89b Fix outdated docs for TimeLimit max_episode_steps and add validation. (#1149)
Co-authored-by: troiganto <troiganto@proton.me>
2024-08-26 17:52:50 +01: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
Tim Schneider
fc55d47039 Update RescaleAction and RescaleObservation for np.inf bounds (#1095) 2024-07-03 14:53:40 +01:00
Mark Towers
b064b684bb AtariPreprocess - Add an option for tuple[int, int] screen-size (#1105) 2024-07-03 10:19:38 +01:00
Mark Towers
bf081a55f9 Update Atari documentation for 0.9.0 (#1097) 2024-06-29 10:57:22 +01:00
Mark Towers
52b6878618 Pre commit autoupdate (#1082) 2024-06-10 17:07:47 +01:00
Roger Larsson
04fb3452d3 Fix wrappers.vector.HumanRendering (#1069)
Co-authored-by: Mark Towers <mark.m.towers@gmail.com>
2024-05-31 11:19:58 +01:00
Silvio Traversaro
7ac7b29e9b Fix test_dict_info_to_list test on Windows (#1066) 2024-05-28 10:25:06 +01:00
Mark Towers
d1964978f1 Add wrappers.vector.HumanRendering (#1013) 2024-04-23 23:08:52 +01:00
Tim Schneider
6a8a267c5b Fixed wrappers.vector.RecordEpisodeStatistics episode length computation from new autoreset api (#1018) 2024-04-18 16:48:13 +01:00
Mark Towers
0fe94efa26 Fix OneOf shared memory and add pytest.skip to tests (#999) 2024-04-06 13:20:10 +01:00
Ariel Kwiatkowski
d43037920f Jax environment return jax data rather than numpy data (#817)
Co-authored-by: pseudo-rnd-thoughts <mark.m.towers@gmail.com>
2024-04-05 17:21:10 +01:00
James Mochizuki-Freeman
89bedf1f33 Fix Box casting and sampling edge-cases (#774)
Co-authored-by: Mark Towers <mark.m.towers@gmail.com>
2024-03-23 16:19:52 +00:00
Mark Towers
144feb865a Add NormalizeObservation wrapper observation space (#978) 2024-03-22 23:43:51 +00:00
Mark Towers
d684778e9d Add more helpful error messages if users use a mixture of Gym and Gymnasium (#957) 2024-03-08 11:08:56 +00:00
Mark Towers
b8991ece32 Rename RenderObservation wrapper to AddRenderObservation (#904) 2024-02-02 14:50:19 +00:00
Mark Towers
79c70d8a5f pre-commit autoupdate (#877) 2024-01-12 12:10:13 +00:00
Jose Antonio Martin H
d756522eeb Add padding_type parameter to FrameSkipObservation and change default to "reset" to preserve backwards comp (#830)
Co-authored-by: Mark Towers <mark.m.towers@gmail.com>
2023-12-19 06:53:14 +00:00
Mark Towers
359cb59e8d Add support for NamedTuple in jax->torch and numpy->torch (#811) 2023-12-04 12:14:19 +00:00
Ariel Kwiatkowski
e9c66e4225 Change autoreset order (#808)
Co-authored-by: pseudo-rnd-thoughts <mark.m.towers@gmail.com>
2023-12-03 19:50:18 +01:00
Roger Larsson
b09ce1a810 Add support for JaxToNumpy to handle NamedTuples (fixes #780) (#789) 2023-11-28 11:47:43 +00:00
Mark Towers
f4c302d8bb Improve RecordVideo wrapper testing (#797) 2023-11-28 11:33:55 +00:00
Mark Towers
b312a0334e Improve the normalize observation testing and determinism (#784) 2023-11-22 16:36:30 +00:00
Mark Towers
40f5c7bd42 Fix seeding issue with NormalizeObservation wrapper testing (#766) 2023-11-07 13:56:46 +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
Roberto Schiavone
96d05af977 feat: throw error on invalid render mode 🧑‍💻 (#580) 2023-07-03 10:46:39 +01:00
Roberto Schiavone
a8eaff357c Fix broken URL links (#554) 2023-06-14 10:41:28 +01:00
Mark Towers
9d8db14e7f Update EnvSpec to improve backward compatibility (#355) 2023-03-08 14:07:09 +00:00
Mark Towers
9e3200d000 Update EnvSpec and make to support reproducing the "whole" environment spec including wrappers (#292)
Co-authored-by: will <will2346@live.co.uk>
Co-authored-by: Will Dudley <14932240+WillDudley@users.noreply.github.com>
Co-authored-by: Mark Towers <marktowers@Marks-MacBook-Pro.local>
2023-02-24 11:34:20 +00:00
Mark Towers
4dd526d370 Reorder functions and refactor registration.py (#289)
Co-authored-by: Mark Towers <marktowers@Marks-MacBook-Pro.local>
2023-02-05 00:05:59 +00:00
Ian Fan
d1067f7d04 ResizeObservation: fix silent bug on 2-dimensional observations. (#230) 2023-01-10 23:54:26 +00:00
Mark Towers
1dfdf45480 Revert "ENH: allow metadata["render_modes"] to be a set" (#251) 2023-01-09 13:12:07 +00:00
Omar Younis
3413b04534 ENH: allow metadata["render_modes"] to be a set (#248) 2023-01-08 19:56:52 +00:00
Nidhish Shah
e8897ff677 Added vector env support to StepAPICompatibility wrapper. (#238) 2023-01-05 10:36:17 +00:00
Mark Towers
848b7097bf Update experimental wrappers (#176) 2022-12-05 19:14:56 +00:00
Xuehai Pan
7e88559763 Update and rerun pre-commit hooks for better code quality (#179) 2022-12-04 14:24:02 +00:00
Mark Towers
31025e391b Update the type hinting for core.py (#39) 2022-11-12 10:21:24 +00:00
Omar Younis
cc7d8ddbd4 fix: remove auto close feature in VideoRecorder (#42) 2022-11-01 11:57:48 +00:00
DavidSlayback
8c759935ca Faster EpisodeStatisticsRecorder, converted from gym PR (#31) 2022-10-10 13:19:53 +01:00
Mark Towers
8589523a77 Change import gymnasium to import gymnasium as gym (#20) 2022-09-16 23:41:27 +01:00
Manuel Goulão
2f8002f2bd Update URL links and Space documentation summaries (#18) 2022-09-16 14:00:12 +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
Ariel Kwiatkowski
d818750547 Add a complete compatibility wrapper (#3066)
* Added a new compatibility wrapper along with tests

* Fix for 3.6 typing

* Fix for 3.6 typing again

* Add make integration

* Unrelated change that for some reason is necessary to fix pyright

* Ignore weird (and very non-critical) type check bug

* Adjust old tests

* Rename the compatibility argument in make

* Rename the compatibility argument in register and envspec

* Documentation updates

* Remove test envs from the registry

* Some rogue renames

* Add nicer str and repr to the compatibility layer

* Reorder the compatibility layer application

* Add metadata to test envs

* Add proper handling of automatic human rendering

* Add auto human rendering to reset

* Enable setting render_mode in gym.make

* Documentation update

* Fix an unrelated stochastic test
2022-09-06 11:20:04 -04:00
Mark Towers
f39747d6a2 Update Composite spaces with full coverage (#3047)
* Update composite space and tests

* Pre-commit

* pyright

* Fix pyright

* retrigger actions

* Code review by Arjun

* Code review by Arjun

* Code review by Omar
2022-09-03 18:39:23 -04:00
Mark Towers
799c8d20c1 Rename "rgb_array" to "rgb_array_list" and "single_rgb_array" to "rgb_array" (#3040)
* initial commit

* Fix CI

* Fixed CI

* third time the charm

* Fix mujoco environment render modes order

* Remove unnecessary changes

* pre-commit

* Fix tests

* Comment out test render modes

* Fix code review and readd mujoco

* pre-commit

* Fix testing envs

* Fix all GenericTestEnvs

* Do not run mujoco-py render environments
2022-09-01 09:06:42 -04:00