rj_gameplay.tactic.striker_tactic

Module Contents

Classes

StrikerTactic

Captures ball and shoots. This Tactic merely holds the StrikerRole and handles its assignment for the Play level.

LineKickStrikerTactic

A striker tactic which receives then shoots the ball

class rj_gameplay.tactic.striker_tactic.StrikerTactic(world_state: stp.rc.WorldState)

Bases: stp.tactic.Tactic

Captures ball and shoots. This Tactic merely holds the StrikerRole and handles its assignment for the Play level.

tick(self, world_state: stp.rc.WorldState) List[Tuple[int, rj_msgs.msg.RobotIntent]]
is_done(self, world_state: stp.rc.WorldState) bool
init_roles(self, world_state: stp.rc.WorldState)
property needs_assign(self)
class rj_gameplay.tactic.striker_tactic.LineKickStrikerTactic(target_point: numpy.ndarray, cost: stp.role.CostFn = None)

Bases: stp.tactic.ITactic

A striker tactic which receives then shoots the ball

compute_props(self)
create_request(self, **kwargs) stp.role.RoleRequest

Creates a sane default RoleRequest. :return: A list of size 1 of a sane default RoleRequest.

get_requests(self, world_state: stp.rc.WorldState, props) List[stp.tactic.RoleRequests]
tick(self, world_state: stp.rc.WorldState, role_results: stp.tactic.RoleResults) List[stp.tactic.SkillEntry]
Returns:

list of skills

is_done(self, world_state) bool