You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to add constant check function to my structure via setPreTickFunction() . I want the node whose turn it is to check the condition just before it runs. Should I write the following code inside a while loop, or is it enough to set the pretickfunction just once?
Additionally, in the code below, it prints the ros_info and the second cerr message, but it does not print the cerr message inside the lambda function, so I think I am making a mistake somewhere in the pretickfunction. Thank you.
Function
`void Test::setupActionNodesPreTick(BT::Tree& tree_)
{
tree_.applyVisitor([&](BT::TreeNode* node) -> void {
I am trying to add constant check function to my structure via setPreTickFunction() . I want the node whose turn it is to check the condition just before it runs. Should I write the following code inside a while loop, or is it enough to set the pretickfunction just once?
Additionally, in the code below, it prints the ros_info and the second cerr message, but it does not print the cerr message inside the lambda function, so I think I am making a mistake somewhere in the pretickfunction. Thank you.
Function
`void Test::setupActionNodesPreTick(BT::Tree& tree_)
{
tree_.applyVisitor([&](BT::TreeNode* node) -> void {
}`
The text was updated successfully, but these errors were encountered: