This was introduced in #2142
|
if (!wait_result_.has_value() && !exhaustive) { |
This condition make the executor active spin until the time is over if used in spin_all.
I guess
if (!wait_result_.has_value() || !exhaustive) {
// In the case of spin some, then we can exit
// In the case of spin all, then we will allow ourselves to wait again.
break;
}
is the correct implementation.
This was introduced in #2142
rclcpp/rclcpp/src/rclcpp/executor.cpp
Line 383 in 3d58f0f
This condition make the executor active spin until the time is over if used in spin_all.
I guess
is the correct implementation.