Skip to content

Commit d9cc4ba

Browse files
authored
Fix path comparison to avoid unnecessary updates (#5009)
Signed-off-by: Tatsuro Sakaguchi <[email protected]>
1 parent 848f2b0 commit d9cc4ba

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

nav2_behavior_tree/plugins/action/follow_path_action.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ void FollowPathAction::on_wait_for_result(
6666
getInput("path", new_path);
6767

6868
// Check if it is not same with the current one
69-
if (goal_.path != new_path) {
69+
if (goal_.path != new_path && new_path != nav_msgs::msg::Path()) {
7070
// the action server on the next loop iteration
7171
goal_.path = new_path;
7272
goal_updated_ = true;

0 commit comments

Comments
 (0)