Skip to content

Composites do not check return status from self.update() call in tick() #268

@JimWhiteheadUCSC

Description

@JimWhiteheadUCSC

All Composite classes have logic inside their tick() function which calls self.update() before iterating through children and calling tick() on them.

The return value for the call to self.update() is not checked. Hence if the actions taken inside self.update result in the status being set to Status.FAILURE or Status.INVALID, this does not change the behavior of the Composite. In particular, it seems like the correct behavior would be to skip processing of all of the children, since the current node has expressed an error state.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions