rj_gameplay.role.seeker

Module Contents

Classes

SeekerRole

Complex single-robot role, such as Goalie or Striker. Uses Skills to achieve behavior.

class rj_gameplay.role.seeker.SeekerRole(robot: stp.rc.Robot, my_region, centroid)

Bases: stp.role.Role

Complex single-robot role, such as Goalie or Striker. Uses Skills to achieve behavior.

get_open_point(world_state, region: List, centroid) numpy.ndarray
tick(world_state: stp.rc.WorldState) rj_msgs.msg.RobotIntent
Assume our_robot has ball on init. Then:
  • on init: get every point in the OFFENSE section of field away from their_robots at a certain distance and move there

is_done(world_state) bool

True if Role is done; False otherwise.