Skip to content
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

why we need for( auto& node: tree.nodes) inside mbf_behavior_tree.cpp node file? #302

Open
MortezaAliyari opened this issue Aug 5, 2022 · 0 comments

Comments

@MortezaAliyari
Copy link

Hi,
I'm using mbf tutorial package. everything works fine. My issue is for loop inside the mbf_behavior_tree.CPP node file. when I comment the for loop inside the main function the robot skipped moving toward the goals.
why this loop is necessary? and
what is the meaning of conditions inside the loop?
if( auto attempt_next = dynamic_cast<AttemptNext*>( node.get() ))
thanks for your support.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant