Skip to content

Instantly share code, notes, and snippets.

@Sarath18
Last active May 12, 2020 00:04
Show Gist options
  • Save Sarath18/760709da26a8d1152f9197d5881c8647 to your computer and use it in GitHub Desktop.
Save Sarath18/760709da26a8d1152f9197d5881c8647 to your computer and use it in GitHub Desktop.
<?xml version="1.0"?>
<root main_tree_to_execute="MainTree">
<BehaviorTree ID="MainTree">
<PipelineSequence name="NavigateWithReplanning">
<RateController hz="1.0">
<ComputePathToPose goal="{goal}" path="{path}" planner_id="GridBased"/>
</RateController>
<FollowPath path="{path}" controller_id="FollowPath"/>
</PipelineSequence>
</BehaviorTree>
<TreeNodesModel>
<!-- Action Nodes -->
<Action ID="ComputePathToPose">
<input_port name="goal"/>
<output_port name="path"/>
<input_port name="planner_id" default="GridBased"/>
</Action>
<Action ID="FollowPath">
<input_port name="controller_id" default="FollowPath"/>
<input_port name="path"/>
</Action>
<Action ID="Spin">
<input_port name="spin_dist"/>
</Action>
<Action ID="Wait">
<input_port name="wait_duration"/>
</Action>
<Action ID="ClearEntireCostmap">
<input_port name="service_name"/>
</Action>
<!-- Control Nodes -->
<Control ID="PipelineSequence"/>
<Control ID="RecoveryNode">
<input_port name="number_of_retries"/>
</Control>
<Control ID="RoundRobin"/>
<!-- Decorators -->
<Decorator ID="RateController">
<input_port name="hz"/>
</Decorator>
</TreeNodesModel>
</root>
<?xml version="1.0"?>
<root main_tree_to_execute="MainTree">
<!-- ////////// -->
<BehaviorTree ID="MainTree">
<ReactiveSequence>
<Decorator ID="RateController" hz="1.0">
<Action ID="ComputePathToPose" goal="{goal}" path="{path}" planner_id="GridBased"/>
</Decorator>
<Action ID="FollowPath" controller_id="FollowPath" path="{path}"/>
</ReactiveSequence>
</BehaviorTree>
<!-- ////////// -->
<TreeNodesModel>
<Action ID="ClearEntireCostmap">
<input_port name="service_name"/>
</Action>
<Action ID="ComputePathToPose">
<input_port name="goal"/>
<output_port name="path"/>
<input_port default="GridBased" name="planner_id"/>
</Action>
<Action ID="FollowPath">
<input_port default="FollowPath" name="controller_id"/>
<input_port name="path"/>
</Action>
<Control ID="PipelineSequence"/>
<Decorator ID="RateController">
<input_port name="hz"/>
</Decorator>
<Control ID="RecoveryNode">
<input_port name="number_of_retries"/>
</Control>
<Control ID="RoundRobin"/>
<Action ID="Spin">
<input_port name="spin_dist"/>
</Action>
<Action ID="Wait">
<input_port name="wait_duration"/>
</Action>
</TreeNodesModel>
<!-- ////////// -->
</root>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment