Moduro
Modular robotics.
Moduro is a Python framework for composing, testing, and benchmarking robotics algorithms. Its goal is to make robot models, controllers, estimators, planners, trajectories, and simulators easy to combine and swap through standardized interfaces, with results available in interactive plots and shareable reports.
The framework aims to include mobile robots, autonomous vehicles, drones, manipulators, and other robot types. The current release focuses on the bicycle model, with broader robot and planner support planned. Moduro emphasizes modularity, interoperability, composability, extensibility, and reproducible experimentation, building on established algorithms rather than reinventing them.
What you can do
- Simulate a bicycle robot following circles, lane changes, or your own waypoints.
- Compare Stanley, Pure Pursuit, and MPC steering controllers, with PID speed control.
- Add noisy sensors and use Kalman, extended Kalman, or unscented Kalman filters.
- Replay motion and inspect paths, tracking errors, and estimation uncertainty.
- Save interactive HTML comparison reports that work offline.
Moduro is in early development. The current release version is 0.0.1, and its API may change.
Install
Requires Python 3.12 or newer.
Use Moduro as a package (pip)
To install a release once it is published to PyPI:
python -m pip install moduro
MPC support is included in the standard installation.
Work on the source or contribute (uv)
With uv installed, clone the repository and set up the development environment:
git clone https://github.com/pratikpatil6674/moduro.git
cd moduro
uv sync --locked
uv run python examples/interactive_comparison.py
Run tests with uv run pytest -q.
Compare two controllers
import moduro as mr
results = mr.Experiment(
robot=mr.robots.KinematicBicycle(),
controllers={
"Stanley": mr.controllers.Stanley(),
"Pure Pursuit": mr.controllers.PurePursuit(),
},
reference=mr.trajectories.LaneChange(),
duration=10,
).run()
print(results.summary())
results.report("comparison.html", show=True)
This opens a report in your browser and saves it as comparison.html. You can compare
followed paths, inspect errors, and replay the runs together.
Planned updates
Future work will expand the algorithms, robots, and experiments available in Moduro.
- More state estimators: Particle filters for keeping track of several possible robot locations, complementary filters for combining sensor readings, and error-state Kalman filters for estimating motion and orientation.
- More controllers: Linear quadratic regulator (LQR) control, iterative LQR, and sampling-based model predictive path integral (MPPI) control.
- Expanded MPC: Combined speed and steering optimization, obstacle avoidance, and better handling of uncertainty and model mismatch.
- More ground robots: Differential-drive robots, omnidirectional robots, and vehicle models that account for tire forces and slipping.
- Aerial robots and robot arms: Quadrotor models, three-dimensional paths, and joint-space motion control for manipulators.
- Richer sensor experiments: Multiple sensors with different update rates, delayed readings, sensor dropout, and outlier measurements.
- Stronger comparisons: Repeated experiments across random seeds, confidence intervals, and clearer views of constraint violations and controller failures.
Learn more
- Examples — speed control, state estimation, MPC, and controller comparisons
License
Copyright 2026 pratikpatil. Licensed under Apache-2.0.
Metadata
Release files for moduro 0.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| moduro-0.0.1.tar.gz | 231.6 kB | With provenance | Details for moduro-0.0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| moduro-0.0.1-py3-none-any.whl | Python 3 | none | any | Details for moduro-0.0.1-py3-none-any.whl |
Total release size: 353.2 kB
Release files / moduro-0.0.1.tar.gz
| Download URL | moduro-0.0.1.tar.gz |
|---|---|
| Size | 231.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
bef85c469ff0f2f3ec22a9ad999525104576c90579a1cdf335d860d4f327c9fd
|
|
BLAKE2b-256 checksum How to use checksums |
91de23973edc591347b76ebd4f022efdd5dfaeafe47e6675094ad75838ee10c9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 22, 2026.
Transparency logRelease files / moduro-0.0.1-py3-none-any.whl
| Download URL | moduro-0.0.1-py3-none-any.whl |
|---|---|
| Size | 121.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f8daf51ee6a9443694324336e51881ee6bc54f0b613be15cc572384d3dc3d8c7
|
|
BLAKE2b-256 checksum How to use checksums |
810b09846a46cd67650b6cab0341bc90ee1e99b4517be3f5aa028e16c369b52b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 22, 2026.
Transparency logSecurity for moduro 0.0.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for moduro-0.0.1.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 22, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.