MCPcopy Create free account
hub / github.com/OpenDriveLab/DriveAdapter / tip

Method tip

scenario_runner/srunner/tools/py_trees_port.py:91–100  ·  view source on GitHub ↗

Get the *tip* of this behaviour's subtree (if it has one) after it's last tick. This corresponds to the the deepest node that was running before the subtree traversal reversed direction and headed back to this node.

(self)

Source from the content-addressed store, hash-verified

89 self.status = new_status
90
91 def tip(self):
92 """
93 Get the *tip* of this behaviour's subtree (if it has one) after it's last
94 tick. This corresponds to the the deepest node that was running before the
95 subtree traversal reversed direction and headed back to this node.
96 """
97 if self.decorated.status != py_trees.common.Status.INVALID:
98 return self.decorated.tip()
99
100 return super(Decorator, self).tip()
101
102
103def oneshot_behavior(variable_name, behaviour, name=None):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected