mirror of
https://github.com/AtsushiSakai/PythonRobotics.git
synced 2026-01-12 22:08:33 -05:00
hybrid a star python 3.5
This commit is contained in:
@@ -3,6 +3,7 @@
|
||||
Hybrid A* path planning
|
||||
|
||||
author: Atsushi Sakai (@Atsushi_twi)
|
||||
Zheng Zh (@Zhengzh)
|
||||
|
||||
"""
|
||||
|
||||
@@ -143,7 +144,7 @@ def calc_motion_inputs():
|
||||
|
||||
|
||||
def get_neighbors(current, config, ox, oy, kdtree):
|
||||
# import ipdb; ipdb.set_trace()
|
||||
|
||||
for steer, d in calc_motion_inputs():
|
||||
node = calc_next_node(current, steer, d, config, ox, oy, kdtree)
|
||||
if node and verify_index(node, config):
|
||||
@@ -163,7 +164,6 @@ def calc_next_node(current, steer, direction, config, ox, oy, kdtree):
|
||||
|
||||
# plt.plot(xlist, ylist)
|
||||
if not check_car_collision(xlist, ylist, yawlist, ox, oy, kdtree):
|
||||
# import ipdb; ipdb.set_trace()
|
||||
return None
|
||||
|
||||
d = direction==1
|
||||
|
||||
Reference in New Issue
Block a user