Skip to content

Commit

Permalink
Update path_longer_on_approach.cpp (ros-navigation#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]>
Signed-off-by: enricosutera <[email protected]>
  • Loading branch information
StetroF authored and enricosutera committed May 19, 2024
1 parent 7fe62f7 commit 866d29a
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 866d29a

Please sign in to comment.