From fe848beb79ba57fb9efd4bc7b7e246781e2bc4f7 Mon Sep 17 00:00:00 2001 From: ShisatoYano Date: Thu, 19 Dec 2024 15:50:28 +0000 Subject: [PATCH] implemented unit test of rear wheel feedback simulation --- .gitignore | 1 + test/test_rear_wheel_feedback_path_tracking.py | 18 ++++++++++++++++++ 2 files changed, 19 insertions(+) diff --git a/.gitignore b/.gitignore index 787eaed..53abddf 100644 --- a/.gitignore +++ b/.gitignore @@ -26,6 +26,7 @@ src/components/visualization/__pycache__ src/simulations/localization/extended_kalman_filter_localization/__pycache__ src/simulations/mapping/ndt_map_construction/__pycache__ src/simulations/path_tracking/pure_pursuit_path_tracking/__pycache__ +src/simulations/path_tracking/rear_wheel_feedback_tracking/__pycache__ src/simulations/perception/point_cloud_search/__pycache__ src/simulations/perception/point_cloud_rectangle_fitting/__pycache__ src/simulations/perception/lidar_obstacle_sensing/__pycache__ diff --git a/test/test_rear_wheel_feedback_path_tracking.py b/test/test_rear_wheel_feedback_path_tracking.py index e69de29..914712b 100644 --- a/test/test_rear_wheel_feedback_path_tracking.py +++ b/test/test_rear_wheel_feedback_path_tracking.py @@ -0,0 +1,18 @@ +""" +Test of Path tracking simulation by Rear wheel feedback algorithm + +Author: Shisato Yano +""" + +from pathlib import Path +import sys +import pytest + +sys.path.append(str(Path(__file__).absolute().parent) + "/../src/simulations/path_tracking/rear_wheel_feedback_tracking") +import rear_wheel_feedback_tracking + + +def test_simulation(): + rear_wheel_feedback_tracking.show_plot = False + + rear_wheel_feedback_tracking.main()