Skip to content

Commit

Permalink
avoid implicit type case (#4098)
Browse files Browse the repository at this point in the history
  • Loading branch information
SteveMacenski committed Apr 4, 2024
1 parent a3ed745 commit 7aaa908
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -393,7 +393,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
Expand Down
2 changes: 1 addition & 1 deletion nav2_smac_planner/src/node_hybrid.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -433,7 +433,7 @@ void NodeHybrid::resetObstacleHeuristic(
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();
Expand Down

0 comments on commit 7aaa908

Please sign in to comment.