Skip to content

Pre-Condition : _skipIf NOT working with ReactiveSequence #525

@ephson24

Description

@ephson24

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions