MizuhoAOKI/python_simple_mppi
MizuhoAOKI/python_simple_mppi has 822 GitHub stars and 83 forks. GitHot measured 0 stars in 24 hours and -1 in 7 days. Last checked 2026-11-25 11:37 UTC. Last push 2026-05-04.
측정된 스타 증가
- in 24h
- 0
- in 7 days
- -1
- in 15 days
- 기록 수집 중
- in 1 month
- 기록 수집 중
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
소개
기본 개념을 이해하기 위한 MPPI(Model Predictive Path-Integral) 컨트롤러의 Python 구현입니다. 필수 의존성은 numpy와 matplotlib뿐입니다.
창작 및 미디어README.md
OriginalSimple MPPI Implementation with Python
Model Predictive Path-Integral (MPPI) Control [G. Williams et al., 2018] is a promising sampling-based optimal control algorithm.
This repository is for understanding the basic idea of the algorithm.

Dependency
-
- A simple and fast Python package manager. Refer to the official documentation for one-command installation.
- Only
numpy,matplotlib,notebookare needed to run all scripts in this repository.
-
mp4 movie writer
Setup
[Option 1] Native environment
git clone https://github.com/MizuhoAOKI/python_simple_mppi.git
cd python_simple_mppi
uv sync
[Option 2] Docker environment
CLICK HERE TO EXPAND
Install docker.
Clone the project repository.
cd <path to your workspace> git clone https://github.com/MizuhoAOKI/python_simple_mppi.gitRun setup to build the docker image, launch the docker container and get into the bash inside. Building the image might take a few minutes.
cd <path to your workspace>/python_simple_mppi docker compose run --rm devThis command will automatically build the Docker image if needed. Once the container starts, any changes made in the local repository on the host will be reflected inside the container, and vice versa.
Usage
Path Tracking
Simple Path Tracking
Run simulation
cd python_simple_mppi uv run scripts/mppi_pathtracking.pyRun jupyter notebook if you would like to check mathematical explanations on the algorithm.
cd python_simple_mppi uv run jupyter notebook --notebook-dir=. notebooks/mppi_pathtracking.ipynb
Path Tracking with Obstacle Avoidance
Run simulation
cd python_simple_mppi uv run scripts/mppi_pathtracking_obav.pyRun jupyter notebook if you would like to check mathematical explanations on the algorithm.
cd python_simple_mppi uv run jupyter notebook --notebook-dir=. notebooks/mppi_pathtracking_obav.ipynb
Pendulum

Run simulation to swing up a pendulum.
cd python_simple_mppi uv run scripts/mppi_pendulum.pyRun jupyter notebook if you would like to check mathematical explanations on the algorithm.
cd python_simple_mppi uv run jupyter notebook --notebook-dir=. notebooks/mppi_pendulum.ipynb
CartPole

Run simulation of cartpole
cd python_simple_mppi uv run scripts/mppi_cartpole.pyRun jupyter notebook if you would like to check mathematical explanations on the algorithm.
cd python_simple_mppi uv run jupyter notebook --notebook-dir=. notebooks/mppi_cartpole.ipynb
References
- G. Williams et al. "Information-Theoretic Model Predictive Control: Theory and Applications to Autonomous Driving"
관련 프로젝트 살펴보기
불러오는 중…