Skip to content

Implementation of a parallel node #3

@slapers

Description

@slapers

Hi,

I was wondering if with the current API it is possible to implement a parallel node.
I guess with a parallel you will end up with multiple active leaf nodes, end thus to signal fail/success the tree would need to accept some kind of identifier to mark the specific node that finished underneath the parallel.

  Node.parallel([:a, :b, :c])
  |> BehaviorTree.start()
  |> BehaviorTree.succeed(:b)

Currently the tree only accepts BehaviorTree.succeed/1 or BehaviorTree.fail/1.

Is there another way to achieve the parallel node with the current API ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions