An open-source software library for numerical computation, data acquisition,
and control of lower-limb robotic prostheses.
NOTE: We are currently testing the new version of the library (main branch), and the PyPI release will be updated soon. If you are looking for the source behind the existing PyPI release, please refer to the legacy branch.

The easiest and quickest way to install the opensourceleg library is via pip:
pip install opensourceleg
You can now use the library in your projects! Please refer to the documentation for tutorials, examples, and more.
If you'd like to modify or contribute to the opensourceleg library, we recommend following these steps:
-
Fork the repository by clicking the "Fork" button at the top right of this page.
-
Clone your fork to your local machine:
git clone https://github.com/YOUR-USERNAME/opensourceleg.git cd opensourceleg
-
Set up the upstream remote to keep your fork in sync with the main repository:
git remote add upstream https://github.com/neurobionics/opensourceleg.git
-
Install Poetry if you haven't already. Poetry is a python packaging and dependency management tool. We use poetry to manage dependencies and build the library.
-
Install dependencies and activate the virtual environment:
poetry install poetry shell
-
Install pre-commit hooks:
make install
-
Create a new branch for your feature or bugfix:
git checkout -b feature-or-bugfix-name
-
Make your changes and commit them with descriptive messages.
-
Run checks. See the contributing guidelines for more information.
-
Push your changes to your fork:
git push origin feature-or-bugfix-name
- Create a Pull Request by navigating to your fork on GitHub and clicking
New Pull Request
.
Your changes will be reviewed by the maintainers, and if approved, they will be merged into the main repository.
The opensourceleg library is licensed under the terms of the LGPL-v2.1 license. This license grants users a number of freedoms:
- You are free to use the opensourceleg library for any purpose.
- You are free to modify the opensourceleg library to suit your needs.
- You can study how the opensourceleg library works and change it.
- You can distribute modified versions of the opensourceleg library.
The GPL license ensures that all these freedoms are protected, now and in the future, requiring everyone to share their modifications when they also share the library in public.
Contributions are welcome, and they are greatly appreciated! For more details, read our contribution guidelines.