Skip to content

Commit 82ec300

Browse files
authored
fix dijkstra hypot check bug (#522)
1 parent a8d4249 commit 82ec300

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

PathPlanning/VoronoiRoadMap/dijkstra_search.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,5 +136,5 @@ def is_same_node_with_xy(node_x, node_y, node_b):
136136
@staticmethod
137137
def is_same_node(node_a, node_b):
138138
dist = np.hypot(node_a.x - node_b.x,
139-
node_b.y - node_b.y)
139+
node_a.y - node_b.y)
140140
return dist <= 0.1

0 commit comments

Comments
 (0)