rj_gameplay.tactic.wall_tactic

Module Contents

Classes

WallTactic

class rj_gameplay.tactic.wall_tactic.WallTactic(world_state: stp.rc.WorldState, num_wallers: int)

Bases: stp.tactic.Tactic

init_roles(self, world_state: stp.rc.WorldState) None
find_wall_pts(self, num_wallers: int, world_state: stp.rc.WorldState) List[numpy.ndarray]

Calculates num_wallers points to form a wall between the ball and goal. :return list of wall_pts (as numpy arrays)

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