Implement BehaviourTrees for forall and imply#345
Closed
eshan-savla wants to merge 22 commits intoPlanSys2:humble-develfrom
Closed
Implement BehaviourTrees for forall and imply#345eshan-savla wants to merge 22 commits intoPlanSys2:humble-develfrom
eshan-savla wants to merge 22 commits intoPlanSys2:humble-develfrom
Conversation
Add Imply to PDDL domain parsing (cherry picked from commit 30e3e26)
Feature/tree msg creation
Contributor
Author
Contributor
|
Hi @eshan-savla All the new developments should go to the Thanks for your contributions |
Contributor
Author
|
Hi @fmrico, Thanks for the clarification! I worked on the humble branch because I needed the functionality for that version. I have however rebased the changes onto rolling and tested everything. Here's the corresponding PR: #347. Thank you for your prompt response! We could also close this pull request if you don't wish to include these changes into the humble branch |
Contributor
|
Closing then |
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.
Changes:
This pull request introduces several changes to the
plansys2_domain_expert,plansys2_problem_expert,plansys2_pddl_parserandplansys2_executorpackages, primarily to enhance the handling of durative actions by introducing new PDDL functionality using forall and imply and corresponding tests.Parser updates:
Imply.cpp.getTreemethods for both forall and imply. Respective changes inForall.cppandImply.cpp.Condition.hand respective derived classes to allow forall to supplement action params with instances from typed lists.Domain expert updates:
getDurativeActionmethod to supply the necessary instances to the forallgetTreemethod.DomainExpertInterface::getDurativeActionand its overrides to optionally accept aplansys2_msgs::msg::Paramvector of instances.DomainExpert::getDurativeActionconverts this vector into a map of format instance-type : instances and supplies this to all three precondition types. Effects are excluded at this point, as POPF support for forall in effects is limited. Extending support for forall in effects is simply a matter of providing these instances to the AtStart and AtEnd effects.Updates to executor nodes:
getDurativeActionmethod of the domain client are supplied with these instances inExecutorNode.cppandBTBuilder.cpp.Updates to problem expert:
evaluatemethod inUtils.cpp.New PDDL functionality and tests:
bt_node_test.cppwithin the executor package with the appropriate pddl domain to test the new functionalities implemented.