-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Revert double spin #5477
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Revert double spin #5477
Conversation
This reverts commit 4e8469e. Signed-off-by: mini-1235 <[email protected]>
Signed-off-by: mini-1235 <[email protected]>
16cb725
to
12dccee
Compare
@mini-1235, your PR has failed to build. Please check CI outputs and resolve issues. |
CI failing: I don't think this is related to this PR |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Must have been a weird CircleCI fluke. I just retriggered and worked fine.
Spin_some
will process any messages in the queue from before the spin was started, whereas the spin_all
will spin over any messages received after it started processing. I think that's an OK choice as long as there's a timeout (which you have set) so it doesn't go indefinitely.
We could also set the timeout used to be the same as the loop rate duration
navigation2/nav2_behavior_tree/include/nav2_behavior_tree/bt_action_server_impl.hpp
Line 195 in 7603938
blackboard_->set<std::chrono::milliseconds>("bt_loop_duration", bt_loop_duration_); // NOLINT |
Signed-off-by: mini-1235 <[email protected]>
Ok! |
* Revert "Add double spin_some in some BT nodes (ros-navigation#5055)" This reverts commit 4e8469e. Signed-off-by: mini-1235 <[email protected]> * Update spin some to use spin all Signed-off-by: mini-1235 <[email protected]> * Replace 50 ms with bt loop duration Signed-off-by: mini-1235 <[email protected]> --------- Signed-off-by: mini-1235 <[email protected]>
* Revert "Add double spin_some in some BT nodes (ros-navigation#5055)" This reverts commit 4e8469e. Signed-off-by: mini-1235 <[email protected]> * Update spin some to use spin all Signed-off-by: mini-1235 <[email protected]> * Replace 50 ms with bt loop duration Signed-off-by: mini-1235 <[email protected]> --------- Signed-off-by: mini-1235 <[email protected]>
* Revert "Add double spin_some in some BT nodes (ros-navigation#5055)" This reverts commit 4e8469e. Signed-off-by: mini-1235 <[email protected]> * Update spin some to use spin all Signed-off-by: mini-1235 <[email protected]> * Replace 50 ms with bt loop duration Signed-off-by: mini-1235 <[email protected]> --------- Signed-off-by: mini-1235 <[email protected]> Signed-off-by: Abhishekh Reddy <[email protected]>
Basic Info
Description of contribution in a few bullet points
Description of documentation updates required from your changes
None
Description of how this change was tested
Tested in different node's unit tests
Future work that may be required in bullet points
For Maintainers:
backport-*
.