-
Notifications
You must be signed in to change notification settings - Fork 722
Pre-Condition : _skipIf NOT working with ReactiveSequence #525
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Please look at this. it seems to work correctly to me: Also, there was an error in your code that I corrected: ((100 < percent)? true : false)) This will return false. ( percent < 25 ) |
Closing this. If you think that my unit test does not reproduce correctly your issue, please suggest a modification to the unit test and send a PR. |
I was able to reproduce the issue with much simpler code. Thanks a lot for your help!!! |
I think that I can reproduce it I will keep you posted |
better unit test added. Have a look |
Will do. Thanks |
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.
The text was updated successfully, but these errors were encountered: