Module Contents



dict() -> new empty dictionary


A behaviour for behviour trees which ticks its action when ticked

class stp.skill.action_behavior.RobotActions

Bases: TypedDict

dict() -> new empty dictionary dict(mapping) -> new dictionary initialized from a mapping object’s

(key, value) pairs

dict(iterable) -> new dictionary initialized as if via:

d = {} for k, v in iterable:

d[k] = v

dict(**kwargs) -> new dictionary initialized with the name=value pairs

in the keyword argument list. For example: dict(one=1, two=2)

robot_id :int
actions :List[stp.action.IAction]
class stp.skill.action_behavior.ActionBehavior(name: str, action: ActionBehavior.__init__.action, robot: stp.rc.Robot = None, ctx=None)

Bases: py_trees.behaviour.Behaviour

A behaviour for behviour trees which ticks its action when ticked

tick_once(self, robot: stp.rc.Robot, world_state: stp.rc.WorldState, ctx=None) RobotActions

Ticks its action using the robot given (if root) or the robot from its parent. This will probably become tick() or spin() once action server is implemented TODO: Should return a list of robot intents

initialise(self) None

Begin spinning the action TODO: Implement with action server

update(self) py_trees.common.Status

Check action and return the current state of the aciton TODO: Needs to somehow use robot intents to check on status of action

terminate(self, new_status)