Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor for vectorized environment supported by RenderServer #44

Merged
merged 14 commits into from
Jan 9, 2023

Conversation

Jiayuan-Gu
Copy link
Contributor

To test this pull-request, please first install the nightly-built SAPIEN. Please refer to examples/demo_vec_env.py for the usage of VecEnv.

Here are important modifications for reference:

  • Introduce CameraConfig to configure cameras to know demanded resources before creating actual sapien.CameraEntity
  • All the raw environments only support image for visual observations. rgbd and pointcloud are supported by extra wrappers. But we make efforts to keep users unaffected if they use gym.make to create environments.
  • use enable_robot_seg to enable robot segmentation instead of specifying observation modes like rgbd_robot_seg
  • introduce VecEnv to make use of sapien.RenderServer to accelerate visual observations

- remove old camera.py
- change how to deal with agent cameras
@Jiayuan-Gu Jiayuan-Gu merged commit 1ccd368 into haosulab:0.4.0 Jan 9, 2023
Jiayuan-Gu added a commit that referenced this pull request Feb 9, 2023
…new features (#57)

* Refactor for vectorized environment supported by RenderServer (#44)

* Introduce `CameraConfig` to configure cameras to know demanded resources before creating actual `sapien.CameraEntity`

* All the raw environments only support `image` for visual observations. `rgbd` and `pointcloud` are supported by extra wrappers. However, this modification should be transparent to users if they use `gym.make` to create environments.

* Add `VecEnv` powered by `sapien.RenderServer`

* Fix PickClutter (obs and download location), download location for cabinets

* Make ManiSkill2 pip installable (#51)

- update setup.py
- replace environment.yml with requirements.txt
- remove open3d requirement
- add __init__.py to all python packages

* [WIP] Refactor assets management

- add `format_path` to unify how path is parsed
- remove unused descriptions
- move assets outside package data

* Rename `uuid` to `uid`

* Refactor download_asset

* [BC] Fix `solver_velocity_iterations` to 1 to avoid undefined behavior

* Update vec_env.py

* Update `flatten_state_dict` for vectorized states

* Remove empty controller state

* Maniskill to sb3 vec env wrapper (#53)

* RecordEpisode: ignore empty transition when `save_on_reset=True`

* Add extrinsic into camera params and rename

* Fix typos in download_assets.py

* Tutorials (#50)

Merge in RL and IL tutorials using PyTorch/SB3

Adds in some utilities and wrappers as well

Fixes some compatability issues with older gym

* update shaders for 2.2

* Refactor examples and tools for pip wheel

* Deprecate Vulkan and Kuafu to use SapienRenderer

* Fix asset path for mpm envs

* Fix shader dir

* Support stereo depth camera

* Add warning of shader_dir for MPMBaseEnv

* Change render camera for some envs

* Bump version to 0.4.0rc0

* Remove keyword arguments for BaseEnv

* Created using Colaboratory

* fix setup code

* add liftcube to datasets

* fix RL tutorial setup

* Created using Colaboratory

* Created using Colaboratory

* Created using Colaboratory

* Created using Colaboratory

* Fix bug in manual_test_venv.py

* Fix missing download links for ManiSkill1 envs

* Update numpy requirement

* Experimentally support visual background

* Refactor stereo depth camera

* Improve tutorials

* support background

* Refactor background

* Fix a minor bug

* Bump version to 0.3.1

* fix typo

* Refactor download_demo

* Bump version to 0.3.2

* Improve calls of render_client

* Minor update

- render camera for PickAndPlace
- default env for demo_random_action

* Add docs

* update install

* Update 2_reinforcement_learning.ipynb

* update

* Update customize_environments.ipynb

* Include gdown in requirements

---------

Co-authored-by: StoneT2000 <stonezt2019@gmail.com>
Co-authored-by: Fanbo Xiang <fxiang@eng.ucsd.edu>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants