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

#include <get_behind_ball_tactic.h>

Inheritance diagram for GetBehindBallTactic:
Collaboration diagram for GetBehindBallTactic:

Public Member Functions

 GetBehindBallTactic ()
 
void updateControlParams (const Point &ball_location, Angle chick_direction)
 
void accept (TacticVisitor &visitor) const override
 
- Public Member Functions inherited from Tactic
 Tactic (const std::set< RobotCapability > &capability_reqs_)
 
virtual bool done () const =0
 
virtual std::string getFSMState () const =0
 
const std::set< RobotCapability > & robotCapabilityRequirements () const
 
std::set< RobotCapability > & mutableRobotCapabilityRequirements ()
 
void setLastExecutionRobot (std::optional< RobotId > last_execution_robot)
 
std::map< RobotId, std::shared_ptr< Primitive > > get (const WorldPtr &world_ptr)
 

Additional Inherited Members

- Protected Attributes inherited from Tactic
std::optional< RobotId > last_execution_robot
 

Detailed Description

The GetBehindBallTactic will move the assigned robot to the given destination and arrive with the specified final orientation and speed

Constructor & Destructor Documentation

◆ GetBehindBallTactic()

GetBehindBallTactic ( )
explicit

Creates a new GetBehindBallTactic

Member Function Documentation

◆ accept()

void accept ( TacticVisitor visitor) const
overridevirtual

Accepts a Tactic Visitor and calls the visit function on itself

Parameters
visitorA Tactic Visitor

Implements Tactic.

◆ updateControlParams()

void updateControlParams ( const Point ball_location,
Angle  chick_direction 
)

Updates the control parameters for this GetBehindBallTactic.

Parameters
ball_locationThe location of the ball when it will be chipped or kicked
chick_directionThe direction to kick or chip

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