Skip to content

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

Description

@MortezaAliyari

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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