Skip to content

Conversation

@jjzapf
Copy link
Contributor

@jjzapf jjzapf commented Nov 25, 2022

I've implemented the propagation step of the get_tree function in the STN BT Builder plugin using the Floyd-Warshall algorithm (see time-triggered-exec-v4 branch of ros2_planning_system). This step is necessary to propagate the time constraints through the edges of the graph. I've also added the match-cellar example to ros_planning_system_exmaples (see match-example branch of ros2_planning_system_examples) to help test this. Without these changes, the example will fail due to the fact that the 2nd match is lit immediately rather than 2 seconds after the first.

To run this example ...

ros2 launch plansys2_match_example plansys2_match_example_launch.py

ros2 run plansys2_terminal plansys2_terminal

set instance m1 match
set instance m2 match
set instance f1 fuse
set instance f2 fuse
set predicate (unused m1)
set predicate (unused m2)
set predicate (handfree)
set goal (and (mended f1) (mended f2))
get plan
run

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.

1 participant