Skip to content

Commit 7b3dac8

Browse files
authored
Update path_longer_on_approach.cpp (#4344)
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]>
1 parent 2ae649b commit 7b3dac8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

nav2_behavior_tree/plugins/decorator/path_longer_on_approach.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ bool PathLongerOnApproach::isPathUpdated(
3636
{
3737
return new_path != old_path && old_path.poses.size() != 0 &&
3838
new_path.poses.size() != 0 &&
39-
old_path.poses.back() == new_path.poses.back();
39+
old_path.poses.back().pose == new_path.poses.back().pose;
4040
}
4141

4242
bool PathLongerOnApproach::isRobotInGoalProximity(

0 commit comments

Comments
 (0)