Skip to content
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

[executor] fail execute_plan action if initial conditions changed #300

Conversation

MostafaGomaa
Copy link
Contributor

We terminate the program is many scenarios instead of just returning an explicit value. We currently terminate if the initial conditions change before the plan is started. This is prone to happen in the real world.

This PR sends an explicit result with a failure result to "execute_plan" goals for which the initial requirements change after planning and before execution.

  • FEATURE: [ComputeBT] Response with failure when unable to build tree
  • FIX: [ComputeBT] Joins thread when unable to build tree
  • FEATURE: [ExecutorNode] Send Result with failure when unable to build tree and publish an empty plan
  • FIX: [simple_bt_builder] Don't terminate the program when requirements change. instead, return explicit values

Mostafa Gomaa added 2 commits March 2, 2024 13:08
We terminate the program is many senarios instead of just returning an
explict value. We used to terminate if the initial conditions changed
before the plan is started. Now just send a result that the action
server failed to execute the plan
@fmrico fmrico merged commit af31a77 into PlanSys2:rolling Mar 13, 2024
1 check passed
@fmrico
Copy link
Contributor

fmrico commented Mar 13, 2024

Merging!!! 🚀

Thanks @MostafaGomaa

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants