Skip to content

Commit

Permalink
avoid implicit type case (ros-navigation#4098)
Browse files Browse the repository at this point in the history
Signed-off-by: enricosutera <[email protected]>
  • Loading branch information
SteveMacenski authored and enricosutera committed May 19, 2024
1 parent 39f2a3a commit 402a8a4
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 @@ -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
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 @@ -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();
Expand Down

0 comments on commit 402a8a4

Please sign in to comment.