rj_gameplay.play.keepaway

Module Contents

Classes

State

Generic enumeration.

Keepaway

Play that passes repeatedly, effectively playing keepaway.

class rj_gameplay.play.keepaway.State

Bases: enum.Enum

Generic enumeration.

Derive from this class to define new enumerations.

INIT
ACTIVE
ASSIGN_ROLES
class rj_gameplay.play.keepaway.Keepaway

Bases: stp.play.Play

Play that passes repeatedly, effectively playing keepaway. See tick() for more details.

tick(self, world_state: stp.rc.WorldState) List[rj_msgs.msg.RobotIntent]

init: assign one pass tactic, several seekers pass_active: execute that one pass when tactic needs new roles: assign_roles -> active when pass_done: return to init (the effect is to pass indefinitely)