diff --git a/nav2_smac_planner/include/nav2_smac_planner/node_hybrid.hpp b/nav2_smac_planner/include/nav2_smac_planner/node_hybrid.hpp index 65836fcd49..c46a947186 100644 --- a/nav2_smac_planner/include/nav2_smac_planner/node_hybrid.hpp +++ b/nav2_smac_planner/include/nav2_smac_planner/node_hybrid.hpp @@ -406,7 +406,7 @@ class NodeHybrid static float getObstacleHeuristic( const Coordinates & node_coords, const Coordinates & goal_coords, - const double & cost_penalty); + const float & cost_penalty); /** * @brief Compute the Distance heuristic diff --git a/nav2_smac_planner/src/node_hybrid.cpp b/nav2_smac_planner/src/node_hybrid.cpp index 0e5d27d6b4..71158f32ff 100644 --- a/nav2_smac_planner/src/node_hybrid.cpp +++ b/nav2_smac_planner/src/node_hybrid.cpp @@ -559,7 +559,7 @@ float NodeHybrid::adjustedFootprintCost(const float & cost) float NodeHybrid::getObstacleHeuristic( const Coordinates & node_coords, const Coordinates & goal_coords, - const double & cost_penalty) + const float & cost_penalty) { // If already expanded, return the cost const unsigned int size_x = sampled_costmap->getSizeInCellsX();