Skip to content

Commit

Permalink
Fixed comments
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexeyMerzlyakov committed May 18, 2020
1 parent 1648f4d commit 5e21234
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions nav2_navfn_planner/src/navfn_planner.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ NavfnPlanner::makePlan(
found_legal = true;
} else {
// Goal is not reachable. Trying to find nearest to the goal
// reachable point within tolerance region
// reachable point within its tolerance region
double best_sdist = std::numeric_limits<double>::max();

p.position.y = goal.position.y - tolerance;
Expand Down Expand Up @@ -372,11 +372,11 @@ NavfnPlanner::validPointPotential(
geometry_msgs::msg::Point p = world_point;
double potential = getPointPotential(p);
if (potential < POT_HIGH) {
// Goal is reachable by itself
// world_point is reachable by itself
return true;
} else {
// Goal is not reachable. Trying to find any
// reachable point within tolerance region
// world_point, is not reachable. Trying to find any
// reachable point within its tolerance region
p.y = world_point.y - tolerance;
while (p.y <= world_point.y + tolerance) {
p.x = world_point.x - tolerance;
Expand Down

0 comments on commit 5e21234

Please sign in to comment.