Skip to content

Commit 770b25c

Browse files
committed
added unit test of lqr path tracking simulation
1 parent 7ce5bec commit 770b25c

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

test/test_lqr_path_tracking.py

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
"""
2+
Test of Path tracking simulation by LQR(Linear Quadratic Regulator) algorithm
3+
4+
Author: Shisato Yano
5+
"""
6+
7+
from pathlib import Path
8+
import sys
9+
import pytest
10+
11+
sys.path.append(str(Path(__file__).absolute().parent) + "/../src/simulations/path_tracking/lqr_path_tracking")
12+
import lqr_path_tracking
13+
14+
15+
def test_simulation():
16+
lqr_path_tracking.show_plot = False
17+
18+
lqr_path_tracking.main()

0 commit comments

Comments
 (0)