Module Contents



Seeks to a single point, passed in on init.

class rj_gameplay.tactic.seek.Seek(world_state: stp.rc.WorldState, num_seekers: int, formation: stp.formations.Formations)

Bases: stp.tactic.Tactic

Seeks to a single point, passed in on init.

property needs_assign

This section of the code is clunky due to the constraint of formations. Currently, if there are more robots seeking than formation regions, it will assign multiple robots to regions by resetting the available regions.

At the time of this role creation, we are in Divison B, which is why this is not a big issue. In the future, this must be handled according to the todo above.

init_roles(world_state: stp.rc.WorldState)

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.