|
Thunderbots Project
|
#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={}) |
This class is responsible for generating passes using a random sampling method
|
explicit |
Constructs a new Sampling Pass Generator with the given config information
| passing_config | The config to use when generating passes |
| PassWithRating getBestPass | ( | const World & | world, |
| const std::vector< RobotId > & | robots_to_ignore = {} |
||
| ) |
Generates the best pass based on the state of the world
| world | The state of the world |
| robots_to_ignore | A list of robot ids to ignore when generating passes |