rj_gameplay.tactic.nmark_tactic

Module Contents

Classes

NMarkTactic

High-level construct that coordinates one or more roles. Creates role requests to be handled by Plays.

Functions

get_opponents_to_mark(world_state, num_markers)

rj_gameplay.tactic.nmark_tactic.get_opponents_to_mark(world_state: stp.rc.WorldState, num_markers: int)
class rj_gameplay.tactic.nmark_tactic.NMarkTactic(world_state: stp.rc.WorldState, num_markers: int)

Bases: stp.tactic.Tactic

High-level construct that coordinates one or more roles. Creates role requests to be handled by Plays.

init_roles(world_state: stp.rc.WorldState) None

Given assigned robots by the Play, initialize each role of role_requests with its assigned robot.

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

Tick each Role of the Tactic to get a list of robot_ids and linked RobotIntents for the Play.

is_done(world_state: stp.rc.WorldState) bool

True when Tactic is done; False otherwise.