Skip to content
Snippets Groups Projects
Commit 80673396 authored by u214892's avatar u214892
Browse files

#163 cleanup: remove unused variable tmp

parent 04d8ed13
No related branches found
No related tags found
No related merge requests found
...@@ -46,8 +46,6 @@ def a_star(grid_map: GridTransitionMap, ...@@ -46,8 +46,6 @@ def a_star(grid_map: GridTransitionMap,
""" """
rail_shape = grid_map.grid.shape rail_shape = grid_map.grid.shape
tmp = np.zeros(rail_shape) - 10
start_node = AStarNode(start, None) start_node = AStarNode(start, None)
end_node = AStarNode(end, None) end_node = AStarNode(end, None)
open_nodes = OrderedSet() open_nodes = OrderedSet()
...@@ -114,8 +112,6 @@ def a_star(grid_map: GridTransitionMap, ...@@ -114,8 +112,6 @@ def a_star(grid_map: GridTransitionMap,
child.h = a_star_distance_function(child.pos, end_node.pos) child.h = a_star_distance_function(child.pos, end_node.pos)
child.f = child.g + child.h child.f = child.g + child.h
tmp[child.pos[0]][child.pos[1]] = child.f
# already in the open list? # already in the open list?
if child in open_nodes: if child in open_nodes:
continue continue
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment