stp.formations.diamond_formation

Module Contents

Classes

DiamondFormation

class stp.formations.diamond_formation.DiamondFormation(world_state: stp.rc.WorldState)

Bases: stp.formations.Formations

property get_regions: List
Hard Coded Region Bounds
  • starting with the top left region being the first element, top right, center, bottom left, and then bottom right in order

  • bounds are x min, x max, y min, y max

property get_centroids: List

Convenience function for getting center of each region in get_regions() :return: list of region centroids for DiamondFormation