soccer_strategy.robot.Robot

class soccer_strategy.robot.Robot(robot_id=0, team=Team.UNKNOWN, role=Role.UNASSIGNED, status=Status.DISCONNECTED, position=array([0, 0, 0]))[source]

Bases: object

Root class for robot used by 2D, 3D and 3D friendly robots

Robot

/ RobotObserved Robot Controlled

/ Robot Controlled 2D Robot Controlled 3D

Robot Controlled 2D is only used for the 2D simulation and should be used with game_engine_2d Robot Controlled 3D is only used for the real robot and webots simulation and used with game_engine_3d

__init__(robot_id=0, team=Team.UNKNOWN, role=Role.UNASSIGNED, status=Status.DISCONNECTED, position=array([0, 0, 0]))[source]

Initializes the robot structure

Parameters:
  • robot_id – Integer representing the robot’s id

  • team – Which team the robot is on

  • role – Which role on the field

  • status – What is the current status of the robot

  • position – X, Y position of the robot where Y is the short length of the field and X is the long length

Methods

__init__([robot_id, team, role, status, ...])

Initializes the robot structure

class Role(value)[source]

Bases: IntEnum

An enumeration.

class Status(value)[source]

Bases: IntEnum

An enumeration.

class Team(value)[source]

Bases: IntEnum

An enumeration.

class TeamColor(value)[source]

Bases: IntEnum

An enumeration.