Thunderbots Project
Loading...
Searching...
No Matches
PassGenerator Class Reference

#include <pass_generator.h>

Public Member Functions

 PassGenerator (const TbotsProto::PassingConfig &passing_config)
 
PassWithRating getBestPass (const World &world, const std::vector< RobotId > &robots_to_ignore={})
 

Detailed Description

This class is responsible for generating passes using a random sampling method

Constructor & Destructor Documentation

◆ PassGenerator()

PassGenerator ( const TbotsProto::PassingConfig &  passing_config)
explicit

Constructs a new Sampling Pass Generator with the given config information

Parameters
passing_configThe config to use when generating passes

Member Function Documentation

◆ getBestPass()

PassWithRating getBestPass ( const World world,
const std::vector< RobotId > &  robots_to_ignore = {} 
)

Generates the best pass based on the state of the world

Parameters
worldThe state of the world
robots_to_ignoreA list of robot ids to ignore when generating passes
Returns
The best pass that can be made and its rating

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