Skip to content

Commit 826c0df

Browse files
committed
add D* simulation test
1 parent fc8b7bb commit 826c0df

1 file changed

Lines changed: 19 additions & 0 deletions

File tree

test/test_dstar_path_planning.py

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
"""
2+
Test of D* path planning simulation
3+
4+
Verifies both the initial search and the incremental replanning
5+
after dynamic obstacles are injected.
6+
"""
7+
8+
from pathlib import Path
9+
import sys
10+
import pytest
11+
12+
sys.path.append(str(Path(__file__).absolute().parent) + "/../src/simulations/path_planning/dstar_path_planning")
13+
import dstar_path_planning
14+
15+
16+
def test_simulation():
17+
dstar_path_planning.show_plot = False
18+
19+
dstar_path_planning.main()

0 commit comments

Comments
 (0)