Since when the behavior tree is first loaded, all nodes are in the IDLE state before they are ticked for the first time, doesn't this if statement always return IDLE and therefore the tick method always return FAILURE?
|
if (status() == BT::NodeStatus::IDLE) { |
I also asked the question here but didn't get answers:
https://robotics.stackexchange.com/questions/114059/nav2-distance-traveled-condition
Since when the behavior tree is first loaded, all nodes are in the IDLE state before they are ticked for the first time, doesn't this if statement always return IDLE and therefore the tick method always return FAILURE?
navigation2/nav2_behavior_tree/plugins/condition/distance_traveled_condition.cpp
Line 46 in 507b365
I also asked the question here but didn't get answers:
https://robotics.stackexchange.com/questions/114059/nav2-distance-traveled-condition