◆ BallPlacementPlayFSM()
Creates a ball placement play FSM
- Parameters
-
| ai_config | the play config for this play FSM |
◆ alignDone()
| bool alignDone |
( |
const Update & |
event | ) |
|
Guard on whether the robot is aligned with the ball and placement point
- Parameters
-
- Returns
- whether the robot is in position to begin placing the ball
◆ alignPlacement()
| void alignPlacement |
( |
const Update & |
event | ) |
|
Action that finds a point where the ball's current position aligns with the ball placement position, and moves the robot so that it is aligned to dribble straight directly to the placement point
- Parameters
-
◆ ballPlaced()
| bool ballPlaced |
( |
const Update & |
event | ) |
|
Guard on whether the placing robot has finished placing the ball into the desired position
- Parameters
-
- Returns
- whether the ball has been placed into the desired position
◆ calculateWallKickoffAngle()
Helper function for calculating the angle to kick the ball off of a wall
- Parameters
-
| ball_pos | the ball position to use when calculating the kick angle |
| field_lines | the field lines of the playing area |
- Returns
- the kick angle
◆ kickDone()
| bool kickDone |
( |
const Update & |
event | ) |
|
Guard on whether the placing robot has finished moving the ball into a better position with a kick
- Parameters
-
- Returns
- whether the kick has been performed
◆ kickOffWall()
| void kickOffWall |
( |
const Update & |
event | ) |
|
Action that has the placing robot kick the ball off the wall to give more space to dribble
- Parameters
-
◆ placeBall()
| void placeBall |
( |
const Update & |
event | ) |
|
Action that has the placing robot dribble the ball to the destination, while other robots line up outside of the defense area
- Parameters
-
◆ retreat()
| void retreat |
( |
const Update & |
event | ) |
|
Action that has the placing robot retreat after placing the ball
- Parameters
-
◆ retreatDone()
| bool retreatDone |
( |
const Update & |
event | ) |
|
Guard on whether the robot has retreated outside of the required range
- Parameters
-
- Returns
- whether the robot has retreated outside of the required range
◆ setupMoveTactics()
| void setupMoveTactics |
( |
const Update & |
event | ) |
|
Helper function that populates the move_tactics field with MoveTactics that organize the robots away from the ball placing robot
- Parameters
-
◆ shouldKickOffWall()
| bool shouldKickOffWall |
( |
const Update & |
event | ) |
|
Guard on whether the ball is in a "dead zone"
- Parameters
-
- Returns
- whether the ball is in a "dead zone"
◆ startWait()
| void startWait |
( |
const Update & |
event | ) |
|
Action that waits stationary 5 seconds for the dribbler to stop spinning
- Parameters
-
◆ waitDone()
| bool waitDone |
( |
const Update & |
event | ) |
|
Guard on whether the robot has waited sufficiently
- Parameters
-
- Returns
- whether the robot has waited for 5 seconds
The documentation for this struct was generated from the following files:
- src/software/ai/hl/stp/play/ball_placement/ball_placement_play_fsm.h
- src/software/ai/hl/stp/play/ball_placement/ball_placement_play_fsm.cpp