Skip to content

Commit

Permalink
vehicle: revert grid summation so it considers drivable
Browse files Browse the repository at this point in the history
  • Loading branch information
akevinge committed Apr 30, 2024
1 parent 728757c commit c2cb32a
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/planning/costs/costs/grid_summation_node.py
Original file line number Diff line number Diff line change
Expand Up @@ -309,13 +309,11 @@ def createCostMap(self):
# weighted_grid_arr = self.resizeOccupancyGrid(weighted_grid_arr)

if grid_name == 'drivable':
pass
#steering_cost += weighted_grid_arr
# steering_cost = np.maximum( steering_cost , weighted_grid_arr )
steering_cost = np.maximum( steering_cost , weighted_grid_arr )
elif grid_name == 'junction':
pass
# speed_cost += weighted_grid_arr
# speed_cost = np.maximum( speed_cost , weighted_grid_arr )
speed_cost = np.maximum( speed_cost , weighted_grid_arr )
else:
# steering_cost += weighted_grid_arr
# speed_cost += weighted_grid_arr
Expand Down

0 comments on commit c2cb32a

Please sign in to comment.