Repository navigation
docs: ✏️ Move Stanley into chapter 4 and rewrite MPC and MPPI as chapter 10 - #214
Merged
Merged
Conversation
…ter 10 Stanley moves to doc/path_tracking/stanley.md as section 4.3. The MPC and MPPI design documents become sections 10.3 and 10.4 of the theory layer: the problems they solve, written with the code's actual cost (input changes only for MPC, nearest-point errors for MPPI), measured experiments instead of claims, and an MPPI figure drawn by a script in place of an image copied from a blog. This also removes the stopgaps of #170: chapter pages now nest the section pages they link to (no fixed SECTION_PAGES), every page starts at H1 so the myst.header suppression goes, the front page's tab title no longer repeats the book title, and DESIGN_DOCUMENT.md is replaced by the book. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #170. Closes #75.
Change
Chapter 4
doc/4_path_tracking/4_1_stanley_controller.mdmoves todoc/path_tracking/stanley.mdas section 4.3, linked from the chapter page. Its figure script moves with it.Chapter 10: the MPC and MPPI design documents are rewritten as the theory layer of the writing guide.
doc/optimal_control/mpc.md):literalincludes of_build_modeland_build_mpc, and measured experiments.doc/optimal_control/mppi.md):literalincludes, and a table of measured experiments.figures/mppi_samples.py: one MPPI update with the samples shaded by weight. It replacesmppi.png, which was copied from a blog (the writing guide doesn't allow copied figures).set_rterm()penalizes only the change of the input; the code has no separate penalty on its size.v_minis 0, not −1.NOTATION.md. Weights areThe stopgaps listed in #170
SECTION_PAGESis replaced by a rule inadd_section_toctree(): a chapter page (<chapter>/index.md) gets a hidden toctree of the pages in its own folder that it links to, in link order. A new section only needs a link from its chapter page.suppress_warnings = ["myst.header"]is removed: every page now starts at H1.DESIGN_DOCUMENT.mdand itsexclude_patternsentry are removed.CLAUDE.mdpoints to the book instead.Check
The book builds with
-W, with no warnings and no suppressed warning;test_book_chapters.pypasses.All 26 display equations of the built book render in MathJax 3.
The sidebar nests "4.3 Stanley" under chapter 4, and 10.3 and 10.4 under chapter 10.
Experiments, run headless on the same course:
The steering change is the root mean square of the step-to-step difference. Timing: one MPC solve takes 14 ms (median) and at most 47 ms. One MPPI update takes about 1.3 s, measured alone.
After merge
Issues #199–#206 link to the old Stanley page (
4_path_tracking/4_1_stanley_controller.html). Their links need updating topath_tracking/stanley.html.🤖 Generated with Claude Code