Skip to content

Commit 33ecb85

Browse files
committed
see if spin some in cancel will allow result callback (#1914)
1 parent e4c2ab1 commit 33ecb85

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

nav2_waypoint_follower/src/waypoint_follower.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,8 @@ WaypointFollower::followWaypoints()
128128
if (action_server_->is_cancel_requested()) {
129129
auto cancel_future = nav_to_pose_client_->async_cancel_all_goals();
130130
rclcpp::spin_until_future_complete(client_node_, cancel_future);
131+
// for result callback processing
132+
spin_some(client_node_);
131133
action_server_->terminate_all();
132134
return;
133135
}

0 commit comments

Comments
 (0)