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

Configure task planner to always append a desired task at the end of the plan #27

Closed
Yadunund opened this issue Jul 8, 2021 · 0 comments · Fixed by #28
Closed

Configure task planner to always append a desired task at the end of the plan #27

Yadunund opened this issue Jul 8, 2021 · 0 comments · Fixed by #28
Labels
enhancement New feature or request

Comments

@Yadunund
Copy link
Member

Yadunund commented Jul 8, 2021

It is desirable to have the task planner automatically append a desired task at the end of its plan (while ensuring there is sufficient battery to perform it). This is useful in scenarios where we may want an agent to always go back to its charger after completing all its tasks. Or go to a holding point. Or do something else.

Architecture wise, we can modify the plan() method to optionally accept a factory that will "make" a Request. Internally, we can call this make with the appropriate start_time after the planner finishes generating a plan for the original set of requests. Then we can then rerun the planner for the newly generated request while using the final state of the agent from the previous plan. The results can be appended to the original and returned.

@Yadunund Yadunund added the enhancement New feature or request label Jul 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant