GT RoboCup SSL
Soccer software, robot firmware
WindowEvaluator Class Reference

The WindowEvaluator class calculates open shots from a point to a target. More...

Public Member Functions

 WindowEvaluator (Context *context)
 Constructor. More...
 
WindowingResult eval_pt_to_pt (Geometry2d::Point origin, Geometry2d::Point target, float targetWidth)
 Evaluates shot windows to a target point, using a virtual width for the target. More...
 
WindowingResult eval_pt_to_robot (Geometry2d::Point origin, Geometry2d::Point target)
 Evaluates shot windows to a target point. More...
 
WindowingResult eval_pt_to_opp_goal (Geometry2d::Point origin)
 Evaluates shot windows to the oponents goal segment. More...
 
WindowingResult eval_pt_to_our_goal (Geometry2d::Point origin)
 Evaluates shot windows to our team's goal segment. More...
 
WindowingResult eval_pt_to_seg (Geometry2d::Point origin, Geometry2d::Segment target)
 Evaluates shot windows to a target segment. More...
 

Static Public Member Functions

static void createConfiguration (Configuration *cfg)
 Initializes configurable fields. More...
 

Public Attributes

bool debug = false
 Controls the debug drawings generated by the evaluator
 
bool chip_enabled = false
 Controls whether the evaluator should consider chip shots possible.
 
double max_chip_range = 0.3
 Maximum distance to an obstacle to be able to chip over it.
 
double min_chip_range = 4.0
 Minimum distance to an obstacle to be able to chip over it.
 
std::vector< Robot * > excluded_robots
 Robots that should not be considered obstacles during evaluation.
 
std::vector< Geometry2d::Pointhypothetical_robot_locations
 Locations to pretend are robot obstacles during evaluation.
 

Detailed Description

The WindowEvaluator class calculates open shots from a point to a target.

+ Collaboration diagram for WindowEvaluator:

Constructor & Destructor Documentation

◆ WindowEvaluator()

WindowEvaluator::WindowEvaluator ( Context context)

Constructor.

Parameters
systemStatepointer to global system state object

Member Function Documentation

◆ createConfiguration()

void WindowEvaluator::createConfiguration ( Configuration cfg)
static

Initializes configurable fields.

Note
See configuration documentation for details.

◆ eval_pt_to_opp_goal()

WindowingResult WindowEvaluator::eval_pt_to_opp_goal ( Geometry2d::Point  origin)

Evaluates shot windows to the oponents goal segment.

Parameters
originThe starting point of the shot
Returns
Results of windowing operation

◆ eval_pt_to_our_goal()

WindowingResult WindowEvaluator::eval_pt_to_our_goal ( Geometry2d::Point  origin)

Evaluates shot windows to our team's goal segment.

Parameters
originThe starting point of the shot
Returns
Results of windowing operation

◆ eval_pt_to_pt()

WindowingResult WindowEvaluator::eval_pt_to_pt ( Geometry2d::Point  origin,
Geometry2d::Point  target,
float  targetWidth 
)

Evaluates shot windows to a target point, using a virtual width for the target.

Parameters
originThe starting point of the shot
targetThe target point to aim at
targetWidthVirtual width to apply to the target
Returns
Results of windowing operation

◆ eval_pt_to_robot()

WindowingResult WindowEvaluator::eval_pt_to_robot ( Geometry2d::Point  origin,
Geometry2d::Point  target 
)

Evaluates shot windows to a target point.

Parameters
originThe starting point of the shot
targetThe target point to aim at
Returns
Results of windowing operation

◆ eval_pt_to_seg()

WindowingResult WindowEvaluator::eval_pt_to_seg ( Geometry2d::Point  origin,
Geometry2d::Segment  target 
)

Evaluates shot windows to a target segment.

Parameters
originThe starting point of the shot
targetThe target segment to aim at
Returns
Results of windowing operation

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