Open
Conversation
Signed-off-by: Sarthak Mittal <sarthakmittal2608@gmail.com>
Collaborator
fujitatomoya
left a comment
There was a problem hiding this comment.
mostly lgtm, but i am not so sure canceling should be preempted. I do not have any use case on this transition, could you share your thoughts?
| [GOAL_STATE_CANCELING] = { | ||
| [GOAL_EVENT_SUCCEED] = _succeed_event_handler, | ||
| [GOAL_EVENT_ABORT] = _abort_event_handler, | ||
| [GOAL_EVENT_PREEMPT] = _preempt_event_handler, |
Collaborator
There was a problem hiding this comment.
not sure canceling state can be preempted.
Author
|
I assumed preemption should work the same way as abort since that's how preemption is handled right now. But I get your point, preemption makes sense only when a previous goal is executing. |
Member
|
@sloretz friendly ping |
Collaborator
|
It's been 2 months. @sloretz friendly ping. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Signed-off-by: Sarthak Mittal sarthakmittal2608@gmail.com
Adds terminal state
PREEMPTEDandPREEMPTevent to goal state machine in order to differentiate between a goal aborted due to genuine abort logic and goal aborted by the server due to preemption.Based on the discussions in the following ticket: ros2/design#284
Depends on: ros2/rcl_interfaces#105