-
Notifications
You must be signed in to change notification settings - Fork 6
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 #117 from FragileTech/codecov
Fix codecov and docs
- Loading branch information
Showing
8 changed files
with
627 additions
and
66 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
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 |
---|---|---|
|
@@ -38,7 +38,7 @@ state = state.copy() | |
action = env.action_space.sample() | ||
|
||
data = env.step(state=state, action=action) | ||
new_state, observ, reward, end, info = data | ||
new_state, observ, reward, end, truncated, info = data | ||
``` | ||
|
||
|
||
|
@@ -52,7 +52,7 @@ states = [state.copy() for _ in range(10)] | |
actions = [env.action_space.sample() for _ in range(10)] | ||
|
||
data = env.step_batch(states=states, actions=actions) | ||
new_states, observs, rewards, ends, infos = data | ||
new_states, observs, rewards, ends, truncateds, infos = data | ||
``` | ||
|
||
|
||
|
@@ -68,62 +68,11 @@ states = [state.copy() for _ in range(10)] | |
actions = [env.action_space.sample() for _ in range(10)] | ||
|
||
data = env.step_batch(states=states, actions=actions) | ||
new_states, observs, rewards, ends, infos = data | ||
new_states, observs, rewards, ends, truncateds, infos = data | ||
``` | ||
|
||
## Installation | ||
Plangym is tested on Ubuntu 20.04 and Ubuntu 21.04 for python versions 3.7 and 3.8. | ||
|
||
Installing it with Python 3.6 will break AtariEnv, and RetroEnv does not support | ||
python 3.9 yet. | ||
|
||
### Installing from Pip | ||
Assuming that the environment libraries that you want to use are already installed, you can | ||
install plangym from pip running: | ||
```bash | ||
pip3 install plangym | ||
``` | ||
|
||
### Installing from source | ||
If you also want to install the environment libraries, first clone the repository: | ||
|
||
```bash | ||
git clone [email protected]:FragileTech/plangym.git | ||
cd plangym | ||
``` | ||
|
||
Install the system dependencies by running | ||
```bash | ||
sudo apt-get install -y --no-install-suggests --no-install-recommends libglfw3 libglew-dev libgl1-mesa-glx libosmesa6 xvfb swig | ||
``` | ||
|
||
To install MuJoCo, run: | ||
```bash | ||
make install-mujoco | ||
``` | ||
|
||
Finally, install the project requirements and plangym. | ||
```bash | ||
pip install -r requirements.txt | ||
pip install . | ||
``` | ||
|
||
## Roadmap | ||
|
||
This is a summary of the incoming improvements to the project: | ||
- **Improved documentation**: | ||
* Adding specific tutorials for all the different types of supported environments. | ||
* Adding a developer guide section for incorporating new environments to plangym. | ||
* Improving the library docstrings with more examples and detailed information. | ||
- **Better gym integration**: | ||
* Registering all of plangym environments in gym under a namespace. | ||
* Offering more control over how the states are passed to `step`, `reset` and `step_batch`. | ||
* Allowing to return the states inside the info dictionary. | ||
- **Adding new environments to plangym, such as**: | ||
* Gym mujoco | ||
* Gym robotics | ||
* [Gym-pybullet-drones](https://github.com/utiasDSL/gym-pybullet-drones) | ||
- **Support for rendering in notebooks that are running on headless machines**. | ||
TODO: Meanwhile take a look at how we set up the repository in `.github/workflows/push.yaml`. | ||
|
||
## License | ||
Plangym is released under the [MIT](LICENSE) license. | ||
|
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
Oops, something went wrong.