Note that before this step the stimulation of any I/O within the diagram would be inefficient. The links between these boxes are activated.The boxes within the diagram are loaded.Sometimes it can take some time for a behavior to stop.įor instance, if NAO is walking, the “Walk” behavior you want to stop will wait for NAO’s feet to be stable before stopping, so that the robot doesn’t fall down. If there was no onResourceLost function defined in the script, the output named onStopped is stimulated (if any).The diagram or the Timeline of the box is unloaded.If a function named onResourceLost is defined in the box script, it is called.When it is stopped because its resources are set to Stop on demand and they are asked by another box: The signal received on the onStopped output is transmitted to the parent diagram.When it is stopped with an onStopped output: The onInput_ function of its script is called.Else, the output named onStopped is stimulated (if any).If a function named onResourceError is defined in the box script, it is called.When it is started but its resources are not available and even after the timeout specified they are still unavailable: So it starts being regularly incremented. If it is a Timeline box, then its time cursor is played. If it is a flow diagram box, then the signal received on the onStart input is transmitted to the diagram of the box. The onInput_ function of its script is called. When it is started (with an onStart input): Its diagram or its Timeline is unloaded.The onUnload function of its script is called.When a box is loaded, the onLoad function of its script is called.įor further details about this kind of built-in functions, see the section: Built-in functions in the script of a box. All boxes contained in the behavior are destroyed.So the constructor of each box _init_ is called. All boxes contained in the behavior are constructed.Loading, unloading, starting and stopping a behavior, a box, a diagram or a Timeline ¶ Behavior
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |