-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/main' into tsung-domain-randomiz…
…ation
- Loading branch information
Showing
14 changed files
with
647 additions
and
75 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,8 @@ | ||
name: Ruff | ||
on: [ push, pull_request ] | ||
jobs: | ||
ruff: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: astral-sh/ruff-action@v1 |
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,22 @@ | ||
name: Testing # Skips RL tests because stable-baselines3 comes with a lot of heavy-weight dependencies | ||
|
||
on: [push] | ||
|
||
jobs: | ||
test: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: mamba-org/setup-micromamba@v1 | ||
with: | ||
micromamba-version: '2.0.2-1' # any version from https://github.com/mamba-org/micromamba-releases | ||
environment-name: test-env | ||
init-shell: bash | ||
create-args: python=3.11 | ||
cache-environment: true | ||
- name: Install dependencies and package | ||
run: pip install .[test] | ||
shell: micromamba-shell {0} | ||
- name: Test with pytest | ||
run: pytest tests --cov=crazyflow | ||
shell: micromamba-shell {0} |
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 |
---|---|---|
@@ -1,6 +1,26 @@ | ||
# crazyflow | ||
Fast, parallelizable simulations of Crazyflies with JAX and MuJoCo. | ||
|
||
[![Python Version]][Python Version URL] [![Ruff Check]][Ruff Check URL] [![Documentation Status]][Documentation Status URL] [![Tests]][Tests URL] | ||
|
||
[Python Version]: https://img.shields.io/badge/python-3.10+-blue.svg | ||
[Python Version URL]: https://www.python.org | ||
|
||
[Ruff Check]: https://github.com/utiasDSL/crazyflow/actions/workflows/ruff.yml/badge.svg?style=flat-square | ||
[Ruff Check URL]: https://github.com/utiasDSL/crazyflow/actions/workflows/ruff.yml | ||
|
||
[Documentation Status]: https://readthedocs.org/projects/crazyflow/badge/?version=latest | ||
[Documentation Status URL]: https://crazyflow.readthedocs.io/en/latest/?badge=latest | ||
|
||
[Tests]: https://github.com/utiasDSL/crazyflow/actions/workflows/testing.yml/badge.svg | ||
[Tests URL]: https://github.com/utiasDSL/crazyflow/actions/workflows/testing.yml | ||
|
||
|
||
## Architecture | ||
|
||
<img src="/docs/img/architecture.png" width="75%" alt="Architecture"> | ||
|
||
|
||
## Known Issues | ||
- `"RuntimeError: MUJOCO_PATH environment variable is not set"` upon installing this package. This error can be resolved by using `venv` instead of `conda`. Somtimes the `mujoco` install can [fail with `conda`](https://github.com/google-deepmind/mujoco/issues/1004). | ||
- If using `zsh` don't forget to escape brackets when installing additional dependencies: `pip install .\[gpu\]`. |
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
import crazyflow.gymnasium_envs # noqa: F401, ensure gymnasium envs are registered |
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,15 @@ | ||
from gymnasium.envs.registration import register | ||
|
||
from crazyflow.gymnasium_envs.crazyflow import CrazyflowEnvReachGoal, CrazyflowEnvTargetVelocity | ||
|
||
__all__ = ["CrazyflowEnvReachGoal", "CrazyflowEnvTargetVelocity"] | ||
|
||
register( | ||
id="DroneReachPos-v0", | ||
vector_entry_point="crazyflow.gymnasium_envs.crazyflow:CrazyflowEnvReachGoal", | ||
) | ||
|
||
register( | ||
id="DroneReachVel-v0", | ||
vector_entry_point="crazyflow.gymnasium_envs.crazyflow:CrazyflowEnvTargetVelocity", | ||
) |
Oops, something went wrong.