rj_gameplay.role.passer

Module Contents

Classes

State

Generic enumeration.

PasserRole

Attributes

FINAL_VELOCITY

BALL_DECELERATION

rj_gameplay.role.passer.FINAL_VELOCITY = 4
rj_gameplay.role.passer.BALL_DECELERATION
class rj_gameplay.role.passer.State

Bases: enum.Enum

Generic enumeration.

Derive from this class to define new enumerations.

INIT
CAPTURING
PASS_READY
INIT_EXECUTE_PASS
EXECUTE_PASS
KICK_DONE
class rj_gameplay.role.passer.PasserRole(robot: stp.rc.Robot)

Bases: stp.role.Role

property pass_ready(self)
set_execute_pass(self, target_point)
tick(self, world_state: stp.rc.WorldState) rj_msgs.msg.RobotIntent
Assume robot does not have ball on init. Then:
  • on init: get ball

  • when got ball: mark pass ready for Tactic, dribble, wait

  • on pass signal from Tactic: pivot_kick to point, let receiver get ball, done

is_done(self, world_state) bool