Commit Graph

15 Commits

Author SHA1 Message Date
Omar Younis
9acf9cd367 Render API (#2671)
* add pygame GUI for frozen_lake.py env

* add new line at EOF

* pre-commit reformat

* improve graphics

* new images and dynamic window size

* darker tile borders and fix ICC profile

* pre-commit hook

* adjust elf and stool size

* Update frozen_lake.py

* reformat

* fix #2600

* #2600

* add rgb_array support

* reformat

* test render api change on FrozenLake

* add render support for reset on frozenlake

* add clock on pygame render

* new render api for blackjack

* new render api for cliffwalking

* new render api for Env class

* update reset method, lunar and Env

* fix wrapper

* fix reset lunar

* new render api for box2d envs

* new render api for mujoco envs

* fix bug

* new render api for classic control envs

* fix tests

* add render_mode None for CartPole

* new render api for test fake envs

* pre-commit hook

* fix FrozenLake

* fix FrozenLake

* more render_mode to super - frozenlake

* remove kwargs from frozen_lake new

* pre-commit hook

* add deprecated render method

* add backwards compatibility

* fix test

* add _render

* move pygame.init() (avoid pygame dependency on init)

* fix pygame dependencies

* remove collect_render() maintain multi-behaviours .render()

* add type hints

* fix renderer

* don't call .render() with None

* improve docstring

* add single_rgb_array to all envs

* remove None from metadata["render_modes"]

* add type hints to test_env_checkers

* fix lint

* add comments to renderer

* add comments to single_depth_array and single_state_pixels

* reformat

* add deprecation warnings and env.render_mode declaration

* fix lint

* reformat

* fix tests

* add docs

* fix car racing determinism

* remove warning test envs, customizable modes on renderer

* remove commments and add todo for env_checker

* fix car racing

* replace render mode check with assert

* update new mujoco

* reformat

* reformat

* change metaclass definition

* fix tests

* implement mark suggestions (test, docs, sets)

* check_render

Co-authored-by: J K Terry <jkterry0@gmail.com>
2022-06-07 18:20:56 -04:00
Rodrigo de Lazcano
3e006f3ea5 Add new MuJoCo bindings (#2762) 2022-05-24 08:47:51 -04:00
Andrea PIERRÉ
e913bc81b8 Improve pre-commit workflow (#2602)
* feat: add `isort` to `pre-commit`

* ci: skip `__init__.py` file for `isort`

* ci: make `isort` mandatory in lint pipeline

* docs: add a section on Git hooks

* ci: check isort diff

* fix: isort from master branch

* docs: add pre-commit badge

* ci: update black + bandit versions

* feat: add PR template

* refactor: PR template

* ci: remove bandit

* docs: add Black badge

* ci: try to remove all `|| true` statements

* ci: remove lint_python job

- Remove `lint_python` CI job
- Move `pyupgrade` job to `pre-commit` workflow

* fix: avoid messing with typing

* docs: add a note on running `pre-cpmmit` manually

* ci: apply `pre-commit` to the whole codebase
2022-03-31 15:50:38 -04:00
Markus
95063a0894 Updating MuJoCo docstrings (#2616)
* Changed Ant docstring

* Changed half cheetah docstring

* Changed Hopper docstring, modified formulations for Ant, HalfCheetah

* Changed humanoid docstring

* Changed HumanoidStandup, InvertedDoublependulum, InvertedPendulum docstrings

* Updated remaining docstrings, updated names of reward terms, added notes about info
2022-02-17 13:46:19 -05:00
Rushiv Arora
2b6ec51580 Doc typos (#2597)
* Minor Mujoco Doc Typos

* Fixed precommit black
2022-02-07 22:53:47 -05:00
Rushiv Arora
3f753d75a3 documentation for Mujoco Envs as Docstrings (#2588) 2022-02-02 09:00:27 -05:00
trigaten
b5b40b17bd richer reacher fix and small docstring reorganization (#2577)
* docs+credits

* docs: refactor box2d + comment version history

* fix mujoco line lengths

* fix more env line lengths

* black

* typos

* put docstrings in base environments rather than highest version

* fix richer reacher

* black

* correct black version

Co-authored-by: Andrea PIERRÉ <andrea_pierre@brown.edu>
2022-01-26 21:21:10 -05:00
trigaten
a149869bcb docs+credits (#2574)
* docs+credits

* docs: refactor box2d + comment version history

* fix mujoco line lengths

* fix more env line lengths

* black

* typos

Co-authored-by: Andrea PIERRÉ <andrea_pierre@brown.edu>
2022-01-26 16:02:42 -05:00
J K Terry
78d2b512d8 redo black (#2272) 2021-07-29 15:39:42 -04:00
Justin Terry
e9d2c41f2b redo black 2021-07-29 12:42:48 -04:00
Christian Clauss
bb81e141ea Blacken the codebase (#2265) 2021-07-28 20:26:34 -04:00
Kristian Hartikainen
a49c3e0fc8 Feature/pixel observation wrapper (#1499)
* Implement PixelObservationWrapper

* Change MujocoEnv.render to support custom camera_{name,id}

* Implement tests for PixelObservationWrapper

* Use env.get_pixels instead of direct env.render

* Fix camera_{id,name} check in pixel observation wrapper

* Fix rendering with explicit camera_id

* Add Wrapperget_pixels to allow call to be propagated to wrapped env

* Remove use of unnecessary `get_pixels` method

* Update PixelObservationWrapper to support multiple pixel keys

* Remove unnecessary `rgb_rendering_tracking` argument

* Remove rgb_rendering_tracking logic
2019-08-23 15:02:33 -07:00
Peter Zhokhov
dbab98c367 rgb_rendering_tracking default value set to True 2019-03-25 12:25:06 -07:00
pzhokhov
663515c8d2 add optional tracking for mujoco locomotion in the rgb rendering mode (issue 1135) (#1405)
* switch rgb_array camera to 0

* merge latest master

* add tracking camera for swimmer

* test track camera name to be in valid names

* add rgb_rendering_tracking kwarg to locomotion mujoco envs; fixes 1135

* fix track camera logic in mujoco_env.py
2019-03-25 12:17:38 -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