Skip to content

Commit f020478

Browse files
avoid implicit type case (#4098)
1 parent 8070aea commit f020478

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

nav2_smac_planner/include/nav2_smac_planner/node_hybrid.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -406,7 +406,7 @@ class NodeHybrid
406406
static float getObstacleHeuristic(
407407
const Coordinates & node_coords,
408408
const Coordinates & goal_coords,
409-
const double & cost_penalty);
409+
const float & cost_penalty);
410410

411411
/**
412412
* @brief Compute the Distance heuristic

nav2_smac_planner/src/node_hybrid.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -559,7 +559,7 @@ float NodeHybrid::adjustedFootprintCost(const float & cost)
559559
float NodeHybrid::getObstacleHeuristic(
560560
const Coordinates & node_coords,
561561
const Coordinates & goal_coords,
562-
const double & cost_penalty)
562+
const float & cost_penalty)
563563
{
564564
// If already expanded, return the cost
565565
const unsigned int size_x = sampled_costmap->getSizeInCellsX();

0 commit comments

Comments
 (0)