-
Notifications
You must be signed in to change notification settings - Fork 780
Description
Hi Davide,
I have this simple behavior to check battery level(condition always returning TRUE) and only send warning only if the "isLowBattery" variable is set. Thus, the SendWarning node should not run if it is false.
<root BTCPP_format="4" > <BehaviorTree ID="PowerManagerT"> <ReactiveSequence> <Script code=" LOW_BATT:=20 "/> <CheckLevel deviceType="BATT" percentage="{LOW_BATT}" isLowBattery="{isLowBattery}"/> <SendWarning deviceType="BATT" deviceStatus="{isLowBattery}" _skipIf="!isLowBattery"/> </ReactiveSequence> </BehaviorTree> </root>
But when running the tree, SendWarning keeps getting called regardless. However, if I change the control node to use a Sequence, it works as expected.
PS: I am using the same cpp code refrenced in this issue
With the added code fixes when using getInput.