10
10
sys .path .append ("../ReedsSheppPath/" )
11
11
12
12
import math
13
- # import numpy as np
13
+ import numpy as np
14
14
import scipy .spatial
15
15
import matplotlib .pyplot as plt
16
16
import reeds_shepp_path_planning as rs
@@ -103,6 +103,11 @@ def __init__(self, ox, oy, xyreso, yawreso):
103
103
self .yaww = int (self .maxyaw - self .minyaw )
104
104
105
105
106
+ def analytic_expantion (current , ngoal , c , ox , oy , kdtree ):
107
+
108
+ return False , None # no update
109
+
110
+
106
111
def hybrid_a_star_planning (start , goal , ox , oy , xyreso , yawreso ):
107
112
"""
108
113
start
@@ -116,7 +121,7 @@ def hybrid_a_star_planning(start, goal, ox, oy, xyreso, yawreso):
116
121
start [2 ], goal [2 ] = rs .pi_2_pi (start [2 ]), rs .pi_2_pi (goal [2 ])
117
122
tox , toy = ox [:], oy [:]
118
123
119
- # obkdtree = KDTree(np.vstack((tox, toy)).T)
124
+ obkdtree = KDTree (np .vstack ((tox , toy )).T )
120
125
121
126
c = Config (tox , toy , xyreso , yawreso )
122
127
@@ -139,6 +144,11 @@ def hybrid_a_star_planning(start, goal, ox, oy, xyreso, yawreso):
139
144
140
145
c_id , cost = heapq .heappop (pq )
141
146
current = openList .pop (c_id )
147
+ closedList [c_id ] = current
148
+
149
+ isupdated , fpath = analytic_expantion (
150
+ current , ngoal , c , ox , oy , obkdtree )
151
+
142
152
# print(current)
143
153
144
154
rx , ry , ryaw = [], [], []
0 commit comments