I am unable to find a way to use input ports in the condition node. The documentation has examples on the same, only for action nodes and not condition nodes. The only workaround I can think of now is to use convert the condition node to the action node. There must be a proper solution to this as the documentation also states:
ConditionNodes are equivalent to ActionNodes, but they are always atomic and synchronous, i.e. they must not return RUNNING.
My behaviour tree structure is as follows:
<root main_tree_to_execute="BehaviorTree">
<!-- ////////// -->
<BehaviorTree ID="BehaviorTree">
<Sequence>
<Condition ID="WaypointReached" threshold_distance="2"/>
<Action ID="PublishNextWaypoint"/>
</Sequence>
</BehaviorTree>
<!-- ////////// -->
<TreeNodesModel>
<Action ID="PublishNextWaypoint"/>
<Condition ID="WaypointReached">
<input_port name="threshold_distance" default="2">Threshold distance to waypoint</input_port>
</Condition>
</TreeNodesModel>
<!-- ////////// -->
</root>
I want to use threshold_distance input port in the WaypointReached condition.
I am unable to find a way to use input ports in the condition node. The documentation has examples on the same, only for action nodes and not condition nodes. The only workaround I can think of now is to use convert the condition node to the action node. There must be a proper solution to this as the documentation also states:
My behaviour tree structure is as follows:
I want to use threshold_distance input port in the WaypointReached condition.