Repository navigation
The first release of the project. From now on a new version comes out at the start of each month, so you can cite or teach from the exact code and book you used. Until v1.0.0, a release may change how modules are imported (see #110); such changes will be listed first under "Breaking changes".
Highlights
- The open book: The web book has full chapters on the simulator (Chapter 2), the kinematic bicycle model (Chapter 3) and sensors (Chapter 5), and sections with equations, figures and code on setup and running the simulations (1.1, 1.2), cubic splines, Pure Pursuit, Stanley and rear wheel feedback (4.1–4.4), the extended Kalman filter (6.2), kd-tree search (9.1), and MPC and MPPI (10.3, 10.4). The footer of each page shows the version it was built from.
- Simulations: Python simulations of localization, mapping, path planning, path tracking and perception. Each one runs in a smoke test on Linux, macOS and Windows with Python 3.11 to 3.15.
- Contributing: Comment
/claimon an issue labeledgood first issueorhelp wantedto take it, and a check on every pull request asks how the change was tested. In November, 103 pull requests were merged, 45 of them from 29 contributors, 26 of whom were new. Thank you all! - Citing: This release is archived on Zenodo. Its DOI will be added here, to
CITATION.cffand to the README (#266). Until then, use "Cite this repository" on the repository page orCITATION.cff.
Since this is the first release, the list below covers every pull request merged since the project started.
What's Changed
Book and documentation
- delete_licence by @ShisatoYano in #10
- docs: improve grammar and formatting in world visualization documentation by @MikeDegany in #69
- Documentation: Stanley controller algorithm for trajectory following by @mohitk3000 in #70
- docs(sensor-models): update and review doc/3_sensor_models by @shivangi306 in #74
- Documentation: Review contents and English expression for doc/2_vehicle_model by @mohitk3000 in #76
- [Docs]: MPPI and MPC path tracking by @mohitk3000 in #78
- docs: ✏️ Remove pytest-cov from the README requirements by @ShisatoYano in #153
- docs: ✏️ Add CasADi and do-mpc to the README requirements by @ShisatoYano in #154
- docs: ✏️ Add a Quick Start with three setup options to the README by @ShisatoYano in #158
- docs: ✏️ Use EKF localization as the Quick Start example by @ShisatoYano in #159
- fix: fixed docs linkages by @mohitk3000 in #148
- docs: 📝 Fix missing or placeholder authors in component file headers by @Revan0809 in #142
- docs: ✏️ Set the label, assignee and reviewer when reviewing or creating a PR by @ShisatoYano in #163
- docs: Explain the equations and references in the EKF localizer by @bh-official in #155
- docs: ✏️ Describe how the navigation stack grows one stage at a time by @ShisatoYano in #171
- docs: Split algorithms into core, adapter and drawing so other projects can import them by @ShisatoYano in #173
- docs: Require type hints in new code and in the public API of the core by @ShisatoYano in #175
- docs: Check type hints in PR reviews by @ShisatoYano in #176
- docs: ✏️ Add CITATION.cff and point to Discussions by @ShisatoYano in #186
- docs: ✏️ Add a security policy and security checks for PR reviews by @ShisatoYano in #188
- docs: ✏️ Build doc/ as a web book with Sphinx and publish it to GitHub Pages by @ShisatoYano in #191
- docs: ✏️ Use the Read the Docs theme for the web book by @ShisatoYano in #192
- docs: ✏️ Nest the section pages of chapters 3 and 4 under their chapter in the book by @ShisatoYano in #193
- docs: ✏️ Show a plain chapter list on the book's front page by @ShisatoYano in #194
- docs: ✏️ Add the book's writing guide and notation, and rewrite the Stanley chapter as an example by @ShisatoYano in #195
- docs: ✏️ Use short link texts for references so long URLs don't run off the page by @ShisatoYano in #196
- docs: ✏️ Add the book's table of contents with a page for every chapter by @ShisatoYano in #197
- docs: ✏️ Draw the book's figures from scripts at build time by @ShisatoYano in #198
- docs: ✏️ Rewrite chapter 2 of the book: frames, units and the simulation loop by @ShisatoYano in #207
- docs: ✏️ Rewrite chapter 3 of the book: the kinematic bicycle model by @ShisatoYano in #208
- docs: 🐛 Fix the number of the multi-line equation (4) of chapter 3 by @ShisatoYano in #209
- docs: ✏️ Rewrite chapter 5 of the book: obstacles, LiDAR and GNSS by @ShisatoYano in #210
- docs: ✏️ Move Stanley into chapter 4 and rewrite MPC and MPPI as chapter 10 by @ShisatoYano in #214
- docs: 🔍 Help search engines and link previews find the book by @ShisatoYano in #217
- docs: 🔍 Verify the book in Google Search Console by @ShisatoYano in #218
- docs: 🎨 Refresh the README's first screen and add a social preview image by @ShisatoYano in #220
- docs: ✏️ Say in the README that the project also teaches the system's architecture by @ShisatoYano in #222
- docs: 🎨 Keep the social preview inside the area that GitHub's cards show by @ShisatoYano in #223
- Document the L-shape fitting math, add the Zhang et al. reference, fix typo by @CloudCorpRecords in #150
- docs(astar): explain the heuristic, the weight and the constructor arguments by @qwist1233-cpu in #139
- docs: ✏️ Say what sponsoring pays for and where sponsors are thanked by @ShisatoYano in #226
- docs: ✏️ Point the planned EKF SLAM section to its issue by @ShisatoYano in #227
- docs: 📝 Say which parts of a PR the maintainer checks by eye by @ShisatoYano in #228
- docs: 📝 Ask for images that show the result in pull requests by @ShisatoYano in #229
- docs: 📝 Add questions to check understanding to each section by @ShisatoYano in #230
- docs: clarify that Obstacle length_m is half the longitudinal size by @HarshRajSinghania in #213
- docs: Write sections 4.1, 4.2 and 4.4 of the book: cubic splines, Pure Pursuit and rear wheel feedback by @Dhruv-Sharma29 in #219
- docs: 📝 Add section 1.2 about running a simulation and the tests by @Goldloli in #224
- Explain the NDT map with equations and references by @cc0006-coder in #151
- docs: 🎨 Show a banner of demos on the front page and a logo in the sidebar by @ShisatoYano in #237
- docs: 📝 Add section 1.1 about setting up Python and the dependencies by @ShisatoYano in #236
- docs: Explain the Pure Pursuit controllers with equations and references by @hskl18 in #235
- docs: 📝 Sum up the parts of the Stanley controller in one paragraph by @ShisatoYano in #242
- docs: 📝 Compare MPC and MPPI on the same course with measured numbers by @ShisatoYano in #243
- docs: 📝 Add questions to check understanding to 4.1 cubic splines by @ShisatoYano in #244
- docs: 📝 Add questions to check understanding to 4.2 Pure Pursuit by @ShisatoYano in #245
- docs: 📝 Add questions to check understanding to 10.3 MPC and 10.4 MPPI by @ShisatoYano in #247
- docs: 📝 Add questions to check understanding to 4.4 rear wheel feedback by @ShisatoYano in #246
- docs: Replace the social preview image and the sidebar logo by @ShisatoYano in #250
- docs: 📝 Add a contributing guide, code of conduct, issue forms and a claim rule by @ShisatoYano in #300
- docs: Write section 9.1 of the book: nearest neighbor search with a kd-tree by @hskl18 in #284
- docs: 📝 Write section 6.2 of the book: the extended Kalman filter by @ShisatoYano in #320
- Explain motion model equations and discretization in State (#99) by @Apocalypse10110 in #333
- docs: align README setup guidance and credit contributors by @mvanhorn in #297
- docs: 📝 Point the review checklist to requirements.txt by @ShisatoYano in #355
- docs: 📝 State how the project differs and where Autoware fits by @ShisatoYano in #356
- docs: 📝 Add where to start, Used by and Listed in to the README by @ShisatoYano in #357
- docs: 📝 Fix facts in the README by @ShisatoYano in #358
- docs: 📝 Credit JetBrains for the open source license by @ShisatoYano in #365
New features
- Sub homework3 by @ShisatoYano in #11
- Issue2 modify change spec of lines by @ShisatoYano in #16
- Implementation Of Astar Path Planning by @shantanu-builds-robots in #22
- Add UKF by @Kaloum2 in #26
- Add particle filter localization implementation by @saahu27 in #29
- Add Dijkstra-based global path planner by @Ashish080213 in #31
- Add Hybrid A* Star Path Planner by @shreyshet in #33
- Add Binary map construction by @BhaveshAgarwal67 in #35
- Added cost map constructor by @BhaveshAgarwal67 in #37
- rrt path planning algorithm by @Palamanickam0806 in #38
- Feature: Bidirectional A* by @guilyx in #40
- Add Potential Field Map Construction sample by @Pana1v in #39
- Control: MPPI by @guilyx in #48
- Implemented Robust Least Square for Rectangle Fitting on LIDAR Point Cloud by @shreyshet in #55
- Feature/informed rrt star by @Rajat-Arora in #50
- feat: add gradient descent path planner with vehicle simulation by @Pana1v in #58
- Feature: RRT* Path Planning by @guilyx in #43
- Control: Adaptive Pure Pursuit by @guilyx in #46
- Feature: Bidirectional RRT* Path Planning by @guilyx in #44
- Path Planning: D* by @guilyx in #59
- Path Planner: Elastic Bands by @guilyx in #60
- Path Planners: Probabilistic Road Map by @guilyx in #61
- Path Planning: Particle Swarm Optimization by @guilyx in #62
- [New Feature] Model Predictive Control(MPC) for Path Tracking by @mohitk3000 in #73
- Two Path Planning Algos Added by Banaan by @BanaanKiamanesh in #77
- Add GA-based path planner, simulation and assets by @BanaanKiamanesh in #79
- Add VFH Step 1: polar histogram construction from LiDAR data by @Khushi0512 in #80
- Make the 1D Kalman filter examples visible as simulations by @DevShoaib78 in #157
- Show animation by default and save GIFs only with command by @katerinakatsampoula in #160
- refactor: ♻️ Use the shared rot_mat_22 helper for 2D rotations by @Tektrix in #156
- fix: refactor state to remove duplication and improve draw performance by @Cid-oe in #132
- ci: 👷 Require evidence and book updates in pull requests by @ShisatoYano in #234
- Localization: pass gif_name to GlobalXYVisualizer by @DeviousCardi in #232
- ci: 👷 Fail when a PR would close an issue that is done in several PRs by @ShisatoYano in #241
- test: ✅ Check that every book section has the headings of the writing guide by @ShisatoYano in #248
- unify vehicle drawing parts by @katerinakatsampoula in #233
- refactor: ♻️ Draw all vehicle parts with one plot call by @ShisatoYano in #254
- Test the scalar position Kalman filter against hand calculations by @zdu881 in #279
- test: check that l-shape fitting finds a known rectangle by @tridev-tej in #280
- perf: skip subtrees in the kd-tree search by @ADAMAMZAR in #285
- test: check A* and Dijkstra paths on small grids by @abedinm in #286
- test: check Pure Pursuit and Stanley steering on a straight course by @abedinm in #287
- ci: 👷 Test every supported Python version and recommend 3.14 by @aka-khannaji in #252
- ci: 👷 Add /claim and check that a PR's issue is assigned to its author by @ShisatoYano in #305
- Add Dynamic Window Approach by @guptuv in #294
- feat: run the Pure Pursuit simulation in Google Colab by @ADAMAMZAR in #288
- test: write path planning outputs to a temporary folder by @ADAMAMZAR in #299
- ci: 👷 Prepare release notes, citation and the book version for v0.1.0 by @ShisatoYano in #313
- Add unit tests for cells that BinaryMap marks as occupied by @PranavD2905 in #310
- test: check lateral error and arrival in the Pure Pursuit and Stanley tests by @ADAMAMZAR in #319
- Build the kd-tree once in L-shape fitting segmentation by @Hung1510 in #329
- Add unit tests for CostMap by @TheSamarthMehta in #332
- test: Add unit tests for the Obstacle outline by @YousefKurchaloy in #334
- test: check the look-ahead distance of Adaptive Pure Pursuit by @abedinm in #350
- test: verify EKF Jacobians F and G against numerical central differences by @Mugunth007 in #328
- ci: 👷 Comment the reason when PR_Evidence fails by @ShisatoYano in #354
- Add unit tests for the LQR controller's Riccati solution and gain by @Hung1510 in #345
- test: check the particle filter's effective sample size and resampling by @ADAMAMZAR in #361
- test: cover heading feedback on a straight course by @fadiuniv1 in #312
- test: add unit tests for UKF sigma points and weights by @leninworld in #359
Fixes
- fix: 🐛 Run smoke tests for the simulation's frame count instead of 1000 by @ShisatoYano in #147
- fix: 🐛 Skip the search GIF in path planning smoke tests by @ShisatoYano in #152
- Fix the sign of the rear axle position by @dchaudhari7177 in #133
- Fix np.rad2deg used for obstacle yaw angles by @dchaudhari7177 in #138
- fix: 🐛 Remove unused packages and fix version pins in Dockerfile by @Revan0809 in #143
- Reuse the covariance ellipse helper in all localizers by @dchaudhari7177 in #137
- chore: 🔥 Simplify .gitignore by @Revan0809 in #144
- chore: 🔥 Remove the duplicate .venv/ entry from .gitignore by @ShisatoYano in #162
- fix: 🐛 Make tests deterministic and remove global state from the informed RRT* constructor by @Goldloli in #161
- fix(lidar): account for the sensor's mounting yaw in the bearing and the sensor odometry by @qwist1233-cpu in #225
- fix: normalize angles correctly for any angle and use angle_lib everywhere by @leo7martins in #238
- fix: generate Gaussian noise with the standard deviation, not the variance by @qwist1233-cpu in #185
- fix: 🐛 Keep the alpha of the MPPI samples figure within 1.0 by @ShisatoYano in #315
- chore: 🔧 Remove the obsolete version attribute from docker-compose.yml by @ShisatoYano in #318
- Keep the lateral term in Rear Wheel Feedback when the heading error is zero by @Hung1510 in #311
- fix: 🐛 Sort the points of a cluster before fitting a rectangle by @leo7martins in #335
- Fix IndexError at the last x point of CubicSpline by @kragent66-glitch in #331
- ci: 👷 Skip PR_Evidence on closed pull requests by @ShisatoYano in #343
- fix: save short A* and Dijkstra paths in world coordinates by @abedinm in #298
- Stabilize optimized L-shape rectangles on unseen sides by @Zeming-Yuan in #346
New Contributors
- @shantanu-builds-robots made their first contribution in #22
- @Kaloum2 made their first contribution in #26
- @saahu27 made their first contribution in #29
- @Ashish080213 made their first contribution in #31
- @shreyshet made their first contribution in #33
- @BhaveshAgarwal67 made their first contribution in #35
- @Palamanickam0806 made their first contribution in #38
- @guilyx made their first contribution in #40
- @Pana1v made their first contribution in #39
- @Rajat-Arora made their first contribution in #50
- @MikeDegany made their first contribution in #69
- @mohitk3000 made their first contribution in #70
- @shivangi306 made their first contribution in #74
- @BanaanKiamanesh made their first contribution in #77
- @Khushi0512 made their first contribution in #80
- @dchaudhari7177 made their first contribution in #133
- @Revan0809 made their first contribution in #143
- @bh-official made their first contribution in #155
- @DevShoaib78 made their first contribution in #157
- @Goldloli made their first contribution in #161
- @katerinakatsampoula made their first contribution in #160
- @CloudCorpRecords made their first contribution in #150
- @Tektrix made their first contribution in #156
- @qwist1233-cpu made their first contribution in #139
- @Cid-oe made their first contribution in #132
- @HarshRajSinghania made their first contribution in #213
- @Dhruv-Sharma29 made their first contribution in #219
- @DeviousCardi made their first contribution in #232
- @cc0006-coder made their first contribution in #151
- @hskl18 made their first contribution in #235
- @leo7martins made their first contribution in #238
- @zdu881 made their first contribution in #279
- @tridev-tej made their first contribution in #280
- @ADAMAMZAR made their first contribution in #285
- @abedinm made their first contribution in #286
- @aka-khannaji made their first contribution in #252
- @guptuv made their first contribution in #294
- @PranavD2905 made their first contribution in #310
- @Hung1510 made their first contribution in #311
- @kragent66-glitch made their first contribution in #331
- @TheSamarthMehta made their first contribution in #332
- @YousefKurchaloy made their first contribution in #334
- @Apocalypse10110 made their first contribution in #333
- @Mugunth007 made their first contribution in #328
- @mvanhorn made their first contribution in #297
- @fadiuniv1 made their first contribution in #312
- @leninworld made their first contribution in #359
- @Zeming-Yuan made their first contribution in #346
Full Changelog: https://github.com/ShisatoYano/AutonomousVehicleControlBeginnersGuide/commits/v0.1.0
Notes on testing
- On the tagged commit, the macOS job for Python 3.12 couldn't start because GitHub's macOS runners were short of capacity. The same code (commit fd3ac76, identical tree) passed on macOS with Python 3.11 to 3.15 in this run, and on Linux and Windows with every supported version.
requirements.txtdoesn't pin versions. The tests passed with numpy 2.5.5, scipy 1.18.1, matplotlib 3.11.2, casadi 3.8.2 and do-mpc 5.1.2 (macOS, Python 3.15).