rj_gameplay.play.offense

Module Contents

Classes

State

Generic enumeration.

Offense

play to score goals. Set up two flank and one center handler. Pass ball as needed.

class rj_gameplay.play.offense.State

Bases: enum.Enum

Generic enumeration.

Derive from this class to define new enumerations.

INIT
WAIT_TO_PASS
INIT_PASS
PASSING
PASSING_ASSIGN_ROLES
INIT_SHOOT
SHOOTING
DONE
class rj_gameplay.play.offense.Offense

Bases: stp.play.Play

play to score goals. Set up two flank and one center handler. Pass ball as needed. See tick() for more details.

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

INIT: assign goalie, 2 seekers WAIT_TO_PASS: loop until seekers reach pt INIT_PASS: assign goalie, pass tac PASSING: pass to one of two seekers, when pass done, shoot PASSING_ASSIGN_ROLES: when pass tactic needs role assignment while psasing, assign roles for it, then go back to PASSING INIT_SHOOT: assign goalie, striker, seeker SHOOTING: striker shoots DONE: shot taken