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 <[email protected]>
  • Loading branch information
StetroF authored May 15, 2024
1 parent 2ae649b commit 7b3dac8
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 7b3dac8

Please sign in to comment.