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

#include <kick_tactic.h>

Inheritance diagram for KickTactic:
Collaboration diagram for KickTactic:

Public Member Functions

 KickTactic ()
 
void updateControlParams (const Point &kick_origin, const Angle &kick_direction, double kick_speed_meters_per_second)
 
void updateControlParams (const Point &kick_origin, const Point &kick_target, double kick_speed_meters_per_second)
 
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 KickTactic will move the assigned robot to the given kick origin and then kick the ball to the kick target.

Constructor & Destructor Documentation

◆ KickTactic()

KickTactic ( )
explicit

Creates a new KickTactic

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() [1/2]

void updateControlParams ( const Point kick_origin,
const Angle kick_direction,
double  kick_speed_meters_per_second 
)

Updates the params for this tactic that cannot be derived from the world

Parameters
kick_originThe location where the kick will be taken
kick_directionThe direction the Robot will kick in
kick_speed_meters_per_secondThe speed of how fast the Robot will kick the ball in meters per second

◆ updateControlParams() [2/2]

void updateControlParams ( const Point kick_origin,
const Point kick_target,
double  kick_speed_meters_per_second 
)

Updates the control parameters for this KickTactic.

Parameters
kick_originThe location where the kick will be taken
kick_directionThe direction the Robot will kick in
kick_speed_meters_per_secondThe speed of how fast the Robot will kick the ball in meters per second

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