GT RoboCup SSL
Soccer software, robot firmware
Field_Dimensions Struct Reference

This class contains constants defining the layout of the field. More...

Public Member Functions

float Length () const
 
float Width () const
 
float Border () const
 the distance from the edge of the field to the border line
 
float LineWidth () const
 The width of the border lines.
 
float GoalWidth () const
 
float GoalDepth () const
 
float GoalHeight () const
 
float PenaltyShortDist () const
 Dimensions of the rectangular penalty zone.
 
float PenaltyLongDist () const
 
float CenterRadius () const
 diameter of the center circle
 
float CenterDiameter () const
 
float GoalFlat () const
 flat area for defence markings
 
float FloorLength () const
 
float FloorWidth () const
 
Geometry2d::Point CenterPoint () const
 
Geometry2d::Rect OurGoalZoneShape () const
 
Geometry2d::Rect TheirGoalZoneShape () const
 
Geometry2d::Rect TheirGoalZoneShapePadded (float padding)
 
Geometry2d::Segment OurGoalSegment () const
 
Geometry2d::Segment TheirGoalSegment () const
 
Geometry2d::Rect OurHalf () const
 
Geometry2d::Rect TheirHalf () const
 
Geometry2d::Rect FieldRect () const
 
Geometry2d::Rect OurGoalZoneShapePadded (float padding)
 
std::vector< Geometry2d::LineFieldBorders () const
 
 Field_Dimensions (float fl, float fw, float fb, float flw, float gw, float gd, float gh, float psd, float pld, float cr, float cd, float gf, float ffl, float ffw)
 
Field_Dimensions operator* (float scalar) const
 
bool operator== (const Field_Dimensions &a) const
 
bool operator!= (const Field_Dimensions &a) const
 
void updateGeometry ()
 

Static Public Attributes

static const Field_Dimensions Single_Field_Dimensions
 
static const Field_Dimensions Double_Field_Dimensions
 
static const Field_Dimensions Default_Dimensions
 
static Field_Dimensions Current_Dimensions
 

Detailed Description

This class contains constants defining the layout of the field.

See the official SSL rules page for a detailed diagram: http://robocupssl.cpe.ku.ac.th/rules:main

+ Collaboration diagram for Field_Dimensions:

Member Data Documentation

◆ Current_Dimensions

Field_Dimensions Field_Dimensions::Current_Dimensions
static
Initial value:
=
Field_Dimensions::Default_Dimensions

◆ Default_Dimensions

const Field_Dimensions Field_Dimensions::Default_Dimensions
static
Initial value:
=
Field_Dimensions::Double_Field_Dimensions

The documentation for this struct was generated from the following files: