Skip to content

Commit

Permalink
Update path_longer_on_approach.cpp (#4344)
Browse files Browse the repository at this point in the history
Fix the bug that isPathUpdated function will return false for the reason that it compare the timestaped between new path and old path's last pose

Signed-off-by: StetroF <120172218+StetroF@users.noreply.github.com>
  • Loading branch information
StetroF authored and SteveMacenski committed May 23, 2024
1 parent 43ef91a commit 81d2c09
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ bool PathLongerOnApproach::isPathUpdated(
{
return new_path != old_path && old_path.poses.size() != 0 &&
new_path.poses.size() != 0 &&
old_path.poses.back() == new_path.poses.back();
old_path.poses.back().pose == new_path.poses.back().pose;
}

bool PathLongerOnApproach::isRobotInGoalProximity(
Expand Down

0 comments on commit 81d2c09

Please sign in to comment.