-
Notifications
You must be signed in to change notification settings - Fork 427
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #527 from ARISE-Initiative/v1.5.0
V1.5.0 official release
- Loading branch information
Showing
484 changed files
with
1,943,840 additions
and
6,276 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
--- | ||
name: 🛠️ Feature Request | ||
description: Suggest an idea to help us improve Robosuite! | ||
title: "[Feature]: " | ||
labels: | ||
- "ty:feature" | ||
|
||
body: | ||
- type: markdown | ||
attributes: | ||
value: > | ||
**Thanks for taking the time to fill out this feature request report! :heart:** Please double check if an issue | ||
[already exists](https://github.com/ARISE-Initiative/robosuite-dev/issues) for | ||
your feature. | ||
We are also happy to accept contributions from our users. For more details see | ||
[here](https://github.com/ARISE-Initiative/robosuite-dev/blob/master/CONTRIBUTING.md). | ||
- type: textarea | ||
attributes: | ||
label: Description | ||
description: | | ||
A clear and concise description of the feature you're interested in. | ||
value: | | ||
<!--- Describe your feature here ---> | ||
validations: | ||
required: true | ||
|
||
- type: textarea | ||
attributes: | ||
label: Suggested Solution | ||
description: > | ||
Describe the solution you'd like. A clear and concise description of what you want to happen. If you have | ||
considered alternatives, please describe them. | ||
value: | | ||
<!--- Describe your solution here ---> | ||
validations: | ||
required: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
## What this does | ||
Explain what this PR does. Feel free to tag your PR with the appropriate label(s). | ||
|
||
Examples: | ||
| Title | Label | | ||
|----------------------|-----------------| | ||
| Fixes #[issue] | (🐛 Bug) | | ||
| Optimizes something | (⚡️ Performance) | | ||
| Adds a new feature | (✨ Feature) | | ||
|
||
|
||
## How it was tested | ||
Explain/show how you tested your changes. | ||
|
||
Examples: | ||
- Added `test_something` in `tests/test_stuff.py`. | ||
- Added `new_feature` and checked that training converges with policy X on dataset/environment Y. | ||
- Optimized `some_function`, it now runs X times faster than previously. | ||
|
||
## How to checkout & try? (for the reviewer) | ||
Provide a simple way for the reviewer to try out your changes. | ||
|
||
Examples: | ||
```bash | ||
DATA_DIR=tests/data pytest -sx tests/test_stuff.py::test_something | ||
``` | ||
```bash | ||
python robosuite/scripts/train.py --some.option=true | ||
``` | ||
|
||
## SECTION TO REMOVE BEFORE SUBMITTING YOUR PR | ||
**Note**: Anyone in the community is free to review the PR once the tests have passed. Feel free to tag | ||
members/contributors who may be interested in your PR. Try to avoid tagging more than 3 people. | ||
|
||
**Note**: Before submitting this PR, please read the [contributor guideline](https://github.com/ARISE-Initiative/robosuite/blob/master/CONTRIBUTING.md). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
name: pre-commit | ||
|
||
on: | ||
pull_request: | ||
push: | ||
branches: [main] | ||
|
||
jobs: | ||
pre-commit: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-python@v3 | ||
- uses: pre-commit/[email protected] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
name: run-tests | ||
|
||
on: | ||
push: | ||
branches: [ "main", "master" ] | ||
pull_request: | ||
|
||
permissions: | ||
contents: read | ||
|
||
jobs: | ||
build: | ||
|
||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Set up Python 3.10 | ||
uses: actions/setup-python@v3 | ||
with: | ||
python-version: "3.10" | ||
- name: Install dependencies | ||
run: | | ||
sudo apt-cache search mesa | ||
sudo apt update | ||
sudo apt install -y libgl1-mesa-glx libgl1-mesa-dev libosmesa6-dev python3-opengl mesa-utils | ||
# check if OSMesa is installed | ||
dpkg -L libosmesa6-dev | ||
python -m pip install --upgrade pip | ||
pip install flake8 pytest | ||
# Install the current repo. We explictly install mink as it's supposed to be in requirements-extra, but we need it for passing CI test. | ||
- name: Install robosuite | ||
run: | | ||
pip install -e . | ||
if [ -f requirements.txt ]; then | ||
pip install -r requirements.txt | ||
pip install mink | ||
fi | ||
if [ -f requirements-extra.txt ]; then pip install -r requirements-extra.txt; fi | ||
- name: Lint with flake8 | ||
run: | | ||
# stop the build if there are Python syntax errors or undefined names | ||
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics | ||
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide | ||
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics | ||
# Run the specified tests | ||
# NOTE: custom environment variable MUJOCO_GL="osmesa" is used to run tests without a display | ||
# https://github.com/google-deepmind/dm_control/issues/136 | ||
# https://github.com/ARISE-Initiative/robosuite/issues/469 | ||
- name: Test with pytest | ||
run: | | ||
export PYOPENGL_PLATFORM="osmesa" | ||
export MUJOCO_GL="osmesa" | ||
python3 tests/test_robots/test_all_robots.py | ||
python3 tests/test_grippers/test_all_grippers.py | ||
python3 tests/test_environments/test_all_environments.py | ||
pytest tests/test_controllers/test_composite_controllers.py |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,10 +10,15 @@ Josiah Wong <[email protected]> | |
Ajay Mandlekar <[email protected]> | ||
Roberto Martín-Martín <[email protected]> | ||
Abhishek Joshi <[email protected]> | ||
Kevin Lin <[email protected]> | ||
Soroush Nasiriany <[email protected]> | ||
Yifeng Zhu <[email protected]> | ||
|
||
Past Contributors | ||
Contributors | ||
Zhenyu Jiang <[email protected]> | ||
Yuqi Xie <[email protected]> | ||
Abhiram Maddukuri <[email protected]> | ||
You Liang Tan <[email protected]> | ||
Jiren Zhu <[email protected]> | ||
Jim (Linxi) Fan <[email protected]> | ||
Orien Zeng <[email protected]> | ||
|
@@ -28,4 +33,4 @@ Jonathan Booher <[email protected]> | |
Danfei Xu <[email protected]> | ||
Rachel Gardner <[email protected]> | ||
Albert Tung <[email protected]> | ||
Divyansh Jha <[email protected]> | ||
Divyansh Jha <[email protected]> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
# Basic Usage | ||
|
||
## Running Standardized Environments | ||
**robosuite** offers a set of standardized manipulation tasks for benchmarking purposes. These pre-defined environments can be easily instantiated with the `make` function. The APIs we provide to interact with our environments are simple and similar to the ones used by [OpenAI Gym](https://github.com/openai/gym/). Below is a minimalistic example of how to interact with an environment. | ||
|
||
```python | ||
import numpy as np | ||
import robosuite as suite | ||
|
||
# create environment instance | ||
env = suite.make( | ||
env_name="Lift", # try with other tasks like "Stack" and "Door" | ||
robots="Panda", # try with other robots like "Sawyer" and "Jaco" | ||
has_renderer=True, | ||
has_offscreen_renderer=False, | ||
use_camera_obs=False, | ||
) | ||
|
||
# reset the environment | ||
env.reset() | ||
|
||
for i in range(1000): | ||
action = np.random.randn(*env.action_spec[0].shape) | ||
obs, reward, done, info = env.step(action) # take action in the environment | ||
env.render() # render on display | ||
```` | ||
|
||
This script above creates a simulated environment with the on-screen renderer, which is useful for visualization and qualitative evaluation. The `step()` function takes an `action` as input and returns a tuple of `(obs, reward, done, info)` where `obs` is an `OrderedDict` containing observations `[(name_string, np.array), ...]`, `reward` is the immediate reward obtained per step, `done` is a Boolean flag indicating if the episode has terminated and `info` is a dictionary which contains additional metadata. | ||
|
||
Many other parameters can be configured for each environment. They provide functionalities such as headless rendering, getting pixel observations, changing camera settings, using reward shaping, and adding extra low-level observations. Please refer to [Environment](modules/environments) modules and the [Environment class](simulation/environment) APIs for further details. | ||
|
||
Demo scripts that showcase various features of **robosuite** are available [here](demos). The purpose of each script and usage instructions can be found at the beginning of each file. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# Changelog | ||
|
||
|
||
|
||
## Version 1.5.0 | ||
|
||
<div class="admonition warning"> | ||
<p class="admonition-title">Breaking API changes</p> | ||
<div> | ||
<ul>New controller design.</ul> | ||
</div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.