Skip to content

[Docs]: MPPI and MPC path tracking#78

Open
mohitk3000 wants to merge 27 commits into
ShisatoYano:mainfrom
mohitk3000:docs-MPC_and_MPPI
Open

[Docs]: MPPI and MPC path tracking#78
mohitk3000 wants to merge 27 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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant