Revert double spin#5477
Conversation
This reverts commit 4e8469e. Signed-off-by: mini-1235 <mauricepurnawan@gmail.com>
Signed-off-by: mini-1235 <mauricepurnawan@gmail.com>
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 |
SteveMacenski
left a comment
There was a problem hiding this comment.
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
so that we never processed for longer than the optimal BT looping rate, in the worst case. This is also in milliseconds, so I think the only update would be to replace the 50 with the variable.Signed-off-by: mini-1235 <mauricepurnawan@gmail.com>
Ok! |
* Revert "Add double spin_some in some BT nodes (ros-navigation#5055)" This reverts commit 4e8469e. Signed-off-by: mini-1235 <mauricepurnawan@gmail.com> * Update spin some to use spin all Signed-off-by: mini-1235 <mauricepurnawan@gmail.com> * Replace 50 ms with bt loop duration Signed-off-by: mini-1235 <mauricepurnawan@gmail.com> --------- Signed-off-by: mini-1235 <mauricepurnawan@gmail.com>
* Revert "Add double spin_some in some BT nodes (ros-navigation#5055)" This reverts commit 4e8469e. Signed-off-by: mini-1235 <mauricepurnawan@gmail.com> * Update spin some to use spin all Signed-off-by: mini-1235 <mauricepurnawan@gmail.com> * Replace 50 ms with bt loop duration Signed-off-by: mini-1235 <mauricepurnawan@gmail.com> --------- Signed-off-by: mini-1235 <mauricepurnawan@gmail.com>
* Revert "Add double spin_some in some BT nodes (ros-navigation#5055)" This reverts commit 4e8469e. Signed-off-by: mini-1235 <mauricepurnawan@gmail.com> * Update spin some to use spin all Signed-off-by: mini-1235 <mauricepurnawan@gmail.com> * Replace 50 ms with bt loop duration Signed-off-by: mini-1235 <mauricepurnawan@gmail.com> --------- Signed-off-by: mini-1235 <mauricepurnawan@gmail.com> Signed-off-by: Abhishekh Reddy <helloarm@pm.me>
* Revert "Add double spin_some in some BT nodes (ros-navigation#5055)" This reverts commit 4e8469e. Signed-off-by: mini-1235 <mauricepurnawan@gmail.com> * Update spin some to use spin all Signed-off-by: mini-1235 <mauricepurnawan@gmail.com> * Replace 50 ms with bt loop duration Signed-off-by: mini-1235 <mauricepurnawan@gmail.com> --------- Signed-off-by: mini-1235 <mauricepurnawan@gmail.com>
* Revert "Add double spin_some in some BT nodes (ros-navigation#5055)" This reverts commit 4e8469e. Signed-off-by: mini-1235 <mauricepurnawan@gmail.com> * Update spin some to use spin all Signed-off-by: mini-1235 <mauricepurnawan@gmail.com> * Replace 50 ms with bt loop duration Signed-off-by: mini-1235 <mauricepurnawan@gmail.com> --------- Signed-off-by: mini-1235 <mauricepurnawan@gmail.com>
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-*.