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:35
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 a Frenet optimal trajectory planner (Werling et al., ICRA 2010) as a new sample program, and lists it as section 13.1 of the planned Lane Change chapter (#118).
Each cycle the planner samples lateral offsets × horizons × end speeds in the Frenet frame of the course. Lateral motion is a quintic polynomial and longitudinal motion is a quartic ("velocity keeping"). It rejects paths that exceed speed, acceleration or curvature limits or come too close to an obstacle, keeps the one with the lowest jerk + time + deviation cost, and follows it with Pure Pursuit. It plugs into
FourWheelsVehicleas a controller, like the existing trackers.Files
src/components/plan/frenet_optimal_trajectory/polynomials.py:QuinticPolynomial,QuarticPolynomialsrc/components/plan/frenet_optimal_trajectory/frenet_optimal_trajectory_planner.pysrc/simulations/path_planning/frenet_optimal_trajectory_planning/frenet_optimal_trajectory_planning.py: a curved lane with 4 static obstacles (Title/Description/Author docstring for the gallery)test/test_frenet_optimal_trajectory_planning.py: smoke test (show_plot = False)doc/lane_change/index.md: adds the Sections list with 13.1pyrightconfig.json,.devcontainer/devcontainer.json: regenerated withgenerate_pyrightconfig.pyCloses #290
How I checked it works
test_book_chapters.pyandtest_generate_example_gallery.pypass. The full suite passes too (143 tests; this environment has nodo-mpc, so the MPC test couldn't run).show_plot = False) and as an animation, and looked at the GIF below.Images