Skip to content

Commit 47b405a

Browse files
committed
adding additional layer of check
1 parent a8d4cbc commit 47b405a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

nav2_behavior_tree/plugins/decorator/path_longer_on_approach.cpp

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

0 commit comments

Comments
 (0)