Thunderbots Project
Loading...
Searching...
No Matches
PenaltyKickPlayFSM Struct Reference

Classes

struct  ControlParams
 

Public Member Functions

DEFINE_PLAY_UPDATE_STRUCT_WITH_CONTROL_AND_COMMON_PARAMS PenaltyKickPlayFSM (TbotsProto::AiConfig ai_config)
 
void setupPosition (const Update &event)
 
void performKick (const Update &event)
 
bool setupPositionDone (const Update &event)
 
bool kickDone (const Update &event)
 
auto operator() ()
 

Constructor & Destructor Documentation

◆ PenaltyKickPlayFSM()

PenaltyKickPlayFSM ( TbotsProto::AiConfig  ai_config)
explicit

Creates a penalty kick play FSM

Parameters
ai_configthe play config for this play FSM

Member Function Documentation

◆ kickDone()

bool kickDone ( const Update &  event)

Guard to check if the robot has performed the kick

Parameters
eventthe PenaltyKickPlayFSM Update event
Returns
whether the robot has finished performing a kick

◆ performKick()

void performKick ( const Update &  event)

Action to make the penalty kick taking robot perform the PenaltyKickTactic

Parameters
eventthe PenaltyKickPlayFSM Update event

◆ setupPosition()

void setupPosition ( const Update &  event)

Action to set up the robots in position to start the penalty kick

Parameters
eventthe PenaltyKickPlayFSM Update event

◆ setupPositionDone()

bool setupPositionDone ( const Update &  event)

Guard to check if robots are in position to start the penalty kick

Parameters
eventthe PenaltyKickPlayFSM Update event
Returns
whether the robots have gotten into position to start the penalty kick

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