Skip to content

Commit dd6d046

Browse files
authored
fix added for checking if a neighbor is inside openList (AtsushiSakai#832)
1 parent 29e0bab commit dd6d046

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

PathPlanning/HybridAStar/hybrid_a_star.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -311,7 +311,7 @@ def hybrid_a_star_planning(start, goal, ox, oy, xy_resolution, yaw_resolution):
311311
neighbor_index = calc_index(neighbor, config)
312312
if neighbor_index in closedList:
313313
continue
314-
if neighbor not in openList \
314+
if neighbor_index not in openList \
315315
or openList[neighbor_index].cost > neighbor.cost:
316316
heapq.heappush(
317317
pq, (calc_cost(neighbor, h_dp, config),

0 commit comments

Comments
 (0)