Skip to content

Commit

Permalink
add test code of ekf localization simulation
Browse files Browse the repository at this point in the history
  • Loading branch information
ShisatoYano committed Nov 30, 2023
1 parent 8ada23a commit aa01e38
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ src/components/sensors/lidar/__pycache__
src/components/state/__pycache__
src/components/vehicle/__pycache__
src/components/visualization/__pycache__
src/simulations/localization/extended_kalman_filter_localization/__pycache__
src/simulations/path_tracking/pure_pursuit_path_tracking/__pycache__
src/simulations/perception/point_cloud_search/__pycache__
src/simulations/perception/point_cloud_rectangle_fitting/__pycache__
Expand Down
1 change: 1 addition & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
"C:\\Users\\shisa\\AutonomousVehicleControlBeginnersGuide\\src\\components\\state",
"C:\\Users\\shisa\\AutonomousVehicleControlBeginnersGuide\\src\\components\\vehicle",
"C:\\Users\\shisa\\AutonomousVehicleControlBeginnersGuide\\src\\components\\visualization",
"C:\\Users\\shisa\\AutonomousVehicleControlBeginnersGuide\\src\\simulations\\localization\\extended_kalman_filter_localization",
"C:\\Users\\shisa\\AutonomousVehicleControlBeginnersGuide\\src\\simulations\\path_tracking\\pure_pursuit_path_tracking",
"C:\\Users\\shisa\\AutonomousVehicleControlBeginnersGuide\\src\\simulations\\perception\\lidar_obstacle_sensing",
"C:\\Users\\shisa\\AutonomousVehicleControlBeginnersGuide\\src\\simulations\\perception\\point_cloud_rectangle_fitting",
Expand Down
18 changes: 18 additions & 0 deletions test/test_ekf_localization_path_tracking.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
"""
Test of Localization and Path tracking Simulation by EKF and Pure pursuit
Author: Shisato Yano
"""

from pathlib import Path
import sys
import pytest

sys.path.append(str(Path(__file__).absolute().parent) + "/../src/simulations/localization/extended_kalman_filter_localization")
import extended_kalman_filter_localization


def test_simulation():
extended_kalman_filter_localization.show_plot = False

extended_kalman_filter_localization.main()

0 comments on commit aa01e38

Please sign in to comment.