rj_gameplay.tactic.prep_move

Module Contents

Classes

PrepMove

Seeks to a single point, passed in on init.

class rj_gameplay.tactic.prep_move.PrepMove(world_state: stp.rc.WorldState)

Bases: stp.tactic.Tactic

Seeks to a single point, passed in on init.

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.

init_roles(world_state: stp.rc.WorldState)

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