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

Standalone BT Builder Service #247

Merged
merged 3 commits into from Oct 31, 2022
Merged

Conversation

jjzapf
Copy link
Collaborator

@jjzapf jjzapf commented Oct 11, 2022

I have created a standalone BT builder service that takes in a domain and problem and computes an action graph and behavior tree. This is useful for testing the BT builder plugins in isolation without needing to create any action executors.

To test this ...

Terminal 1

cd <pddl_directory>
ros2 launch plansys2_executor compute_bt_launch.py domain:=domain.pddl problem:=problem.pddl

Terminal 2

ros2 service call /<namespace>/compute_bt std_srvs/srv/Trigger

You should see the action graph displayed in a "Plan Viewer" window. The plan, dot graph, and BT will also be stored as files in the same directory as the problem.

Additional Changes

I've included a few small changes to STNBTBuilder in this PR as well. The most significant of these is a check in the build_stn function to ensure that we do not create any self-referencing edges.

…e compute_bt service.

Signed-off-by: Josh Zapf <jjzapf@gmail.com>
Signed-off-by: Josh Zapf <jjzapf@gmail.com>
Signed-off-by: Josh Zapf <jjzapf@gmail.com>
@fmrico fmrico merged commit 27ce011 into PlanSys2:master Oct 31, 2022
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.

None yet

2 participants