Repository navigation
Conversation
Owner
|
Thank you, @guptuv! As I wrote in #294, let's review your four PRs one at a time, starting with DWA (#294). Could you convert this one to a draft for now? I'll come back to it after #294 is merged. It isn't a rejection: the proposal fits the book, and the order is only about review time. 🤖 Generated with Claude Code |
guptuv
marked this pull request as draft
November 25, 2026 15:19
This branch has not been deployed
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.
Summary
Adds iLQR (iterative Linear Quadratic Regulator) path tracking (Li & Todorov 2004; Tassa et al. 2014) as section 10.5 of the Optimal Control chapter, after LQR, MPC and MPPI.
State
[x, y, yaw, v], input[accel, steer], kinematic bicycle model, 20 step horizon (2 s). Each cycle it rolls out the nonlinear model, linearizes it around the rollout with analytic Jacobians, solves the LQR backward pass (with regularization), and updates the inputs with a line search. Inputs are clamped, the yaw error is wrapped, and the solution is shifted to warm start the next cycle. The predicted trajectory is drawn.Files
src/components/control/ilqr/ilqr_controller.pysrc/simulations/path_tracking/ilqr_path_tracking/ilqr_path_tracking.py: same course aslqr_path_tracking, so the two can be compared directlytest/test_ilqr_path_tracking.py: smoke testdoc/optimal_control/index.md: adds 10.5pyrightconfig.json,.devcontainer/devcontainer.json: regeneratedCloses #292
How I checked it works
show_plot = False) and as an animation, and looked at the GIF below.Images