Can someone please give me an example of a simple parallel? I’m trying to learn A.I. and all of the descriptions on this are very confusing to me and I can’t seem to find any examples.
Any help would be appreciated.
Can someone please give me an example of a simple parallel? I’m trying to learn A.I. and all of the descriptions on this are very confusing to me and I can’t seem to find any examples.
Any help would be appreciated.
The Simple Parallel as the documentation says Allows for running two children un parallel (at the same time): One which must be a sigle task node (with optional decorators) and the other of which can be a complete subtree.
Simple Parallel has one property: Finish Mode. This property has two option: Delayed or Immediate. By Default is Immediate this mean that when main task finishes, immediately abort background tree. and the second one wait for background tree to finish.
So, right now i don’t have a real example on my mind, but suppose that you have one specific task that take some time to finish, for example a Move To and you want to execute other thinks, while you are moving. So one way to do this is with a Parallel. Your main task will be the Move To, and your Subtree will be the other logic to do while you are moving.
I hope this clarify your the objective of Simple Parallel.
Best regards.
Well . . . some funny example:
Suppose that you want to move to some point and in the mean time you want to look around and shot each apple you see along the way
So. Your main task will be the Move to to the destination location and your background subtree will be a Sequence with three Task: Check if you see some Apple, Shot, whait x seconds.
Yeah yeah, you can do it also with a Service or wherever, but anyway, this is a example of the things that you can do with a Simple Parallel.
Best regards.
Thank you, that was very informative.
So basically multitasking.