Skip to content

[Docs]: MPPI and MPC path tracking#78

Merged
ShisatoYano merged 29 commits into
ShisatoYano:mainfrom
mohitk3000:docs-MPC_and_MPPI
Jun 27, 2026
Merged

[Docs]: MPPI and MPC path tracking#78
ShisatoYano merged 29 commits into
ShisatoYano:mainfrom
mohitk3000:docs-MPC_and_MPPI

Conversation

@mohitk3000

Copy link
Copy Markdown
Contributor

Overview

This PR adds the documentation of the MPC and MPPI path tracking controllers, explaining the maths, code, optimization process, and a comparison of how MPC and MPPI work. Additionally some chore work on optimisation.

Changelogs:

  • files added
    1. doc/4_path_tracking/4_2_mpc_controller.md
    2. doc/4_path_tracking/4_3_mppi_controller.md
  • files modified:
    1. src/components/control/mppi/mppi_controller.py
      eariler np.linalg.inv(self.Sigma) was computed inside update() on every call even though Sigma never changes after construction. A minor optimisation is to compute it once in __init__ as self.Sigma_inv = np.linalg.inv(self.Sigma) and reference in the update().
    2. src/simulations/path_tracking/mpc_path_tracking/mpc_path_tracking.py
      added includes of warning module to suppress unnecessary warning of full version of do-mpc and some edit in comments

I have run both the MPPI and MPC path tracking controllers after these changes, and they are working as expected.

Checkpoints:

  • Explanation of maths
  • Explanation of code

@ShisatoYano ShisatoYano self-requested a review June 26, 2026 13:01
@ShisatoYano ShisatoYano added the documentation Improvements or additions to documentation label Jun 26, 2026
@ShisatoYano ShisatoYano merged commit 34a0b44 into ShisatoYano:main Jun 27, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants