Skip to content

Commit 96fb317

Browse files
committed
add LQR planning
1 parent 03e76e4 commit 96fb317

File tree

2 files changed

+24
-1
lines changed

2 files changed

+24
-1
lines changed

README.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55

66
Python codes for robotics algorithm.
77

8-
98
# Table of Contents
109
* [What is this?](#what-is-this)
1110
* [Requirements](#requirements)
@@ -53,6 +52,7 @@ Python codes for robotics algorithm.
5352
* [Quintic polynomials planning](#quintic-polynomials-planning)
5453
* [Dubins path planning](#dubins-path-planning)
5554
* [Reeds Shepp planning](#reeds-shepp-planning)
55+
* [LQR based path planning](#lqr-based-path-planning)
5656
* [Optimal Trajectory in a Frenet Frame](#optimal-trajectory-in-a-frenet-frame)
5757
* [Path tracking](#path-tracking)
5858
* [Pure pursuit tracking](#pure-pursuit-tracking)
@@ -546,6 +546,13 @@ Ref:
546546
- [ghliu/pyReedsShepp: Implementation of Reeds Shepp curve\.](https://github.com/ghliu/pyReedsShepp)
547547

548548

549+
## LQR based path planning
550+
551+
A sample code using LQR based path planning for double itegrator model.
552+
553+
![RSPlanning](https://github.com/AtsushiSakai/PythonRobotics/raw/master/PathPlanning/LQRPlanner/animation.gif?raw=true)
554+
555+
549556
## Optimal Trajectory in a Frenet Frame
550557

551558
![3](https://github.com/AtsushiSakai/PythonRobotics/raw/master/PathPlanning/FrenetOptimalTrajectory/animation.gif)
@@ -671,3 +678,4 @@ You can support financially this project via PayPal.
671678

672679

673680

681+

tests/test_LQR_planner.py

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
from unittest import TestCase
2+
3+
import sys
4+
sys.path.append("./PathPlanning/LQRPlanner")
5+
6+
from PathPlanning.LQRPlanner import LQRPlanner as m
7+
8+
print(__file__)
9+
10+
11+
class Test(TestCase):
12+
13+
def test1(self):
14+
m.show_animation = False
15+
m.main()

0 commit comments

Comments
 (0)