Metadata-Version: 2.4
Name: moduro
Version: 0.0.1
Summary: Composable execution and evaluation of robotics autonomy algorithms
Author: pratikpatil
License-Expression: Apache-2.0
Project-URL: Repository, https://github.com/pratikpatil6674/moduro
Project-URL: Issues, https://github.com/pratikpatil6674/moduro/issues
Keywords: robotics,autonomy,control,simulation,state-estimation
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Science/Research
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Programming Language :: Python :: 3.12
Classifier: Topic :: Scientific/Engineering
Classifier: Typing :: Typed
Requires-Python: >=3.12
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: numpy>=1.26
Requires-Dist: plotly<7,>=6.1
Requires-Dist: sympy<2,>=1.13
Requires-Dist: do-mpc<6,>=5.1
Provides-Extra: dataframe
Requires-Dist: pandas>=2.0; extra == "dataframe"
Dynamic: license-file

# 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:

```bash
python -m pip install moduro
```

MPC support is included in the standard installation.

### Work on the source or contribute (uv)

With [uv](https://docs.astral.sh/uv/) installed, clone the repository and set up
the development environment:

```bash
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

```python
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](examples/) — speed control, state estimation, MPC, and controller comparisons

## License

Copyright 2026 pratikpatil. Licensed under [Apache-2.0](LICENSE).
