-
Notifications
You must be signed in to change notification settings - Fork 19
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
improvements to policy execution #59
Closed
Closed
Conversation
This file contains 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
…p_nav also outputs succeeded immediately
This new version does not wait to receive a callback from the cancelled action server. This is dangerous in that the next task may start while the previous task is still ending, but there isn't a huge problem with this in our current tasks. A better solution would be to wait a bit, then give up on waiting for the callback, but this is hard in the current design. Probably needs to be reimplemented as a state machine to make this cleaner.
This new version does not wait to receive a callback from the cancelled action server. This is dangerous in that the next task may start while the previous task is still ending, but there isn't a huge problem with this in our current tasks. A better solution would be to wait a bit, then give up on waiting for the callback, but this is hard in the current design. Probably needs to be reimplemented as a state machine to make this cleaner.
This also checks if we get late preempt responses.
Seems clean and robust for now.
1) Made service calls thread safe. 2) Fixed order of calls in cancellation 3) Removed blocking assumption in demand task in scheduler 4) Changed bounding of tasks based on current execution time.
This new version does not wait to receive a callback from the cancelled action server. This is dangerous in that the next task may start while the previous task is still ending, but there isn't a huge problem with this in our current tasks. A better solution would be to wait a bit, then give up on waiting for the callback, but this is hard in the current design. Probably needs to be reimplemented as a state machine to make this cleaner.
This also checks if we get late preempt responses.
Seems clean and robust for now.
1) Made service calls thread safe. 2) Fixed order of calls in cancellation 3) Removed blocking assumption in demand task in scheduler 4) Changed bounding of tasks based on current execution time.
…utive into sm_executor Conflicts: task_executor/src/task_executor/base_executor.py
…utive into hydro-devel Conflicts: task_executor/scripts/task_routine_tester.py task_executor/scripts/test_task_action.py task_executor/src/task_executor/base_executor.py
…xecutive into sm_executor Conflicts: mdp_plan_exec/scripts/mdp_planner.py task_executor/scripts/task_routine_tester.py task_executor/scripts/test_task_action.py task_executor/src/task_executor/base_executor.py task_executor/src/task_executor/sm_base_executor.py
Sm executor
Ignoring this as out of sync. |
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.
Tackles #57. Now when an unexpected state transition happens, a new policy is recalculated from the new state, using the new data to update the MDP model, and executed afterwards (no more aborting due to this)