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

#include <chip_tactic.h>

Inheritance diagram for ChipTactic:
Collaboration diagram for ChipTactic:

Public Member Functions

 ChipTactic ()
 
void updateControlParams (const Point &chip_origin, const Angle &chip_direction, double chip_distance_meters)
 
void updateControlParams (const Point &chip_origin, const Point &chip_target)
 
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 ChipTactic will move the assigned robot to the given chip origin and then chip the ball to the chip target.

Constructor & Destructor Documentation

◆ ChipTactic()

ChipTactic ( )
explicit

Creates a new ChipTactic

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 chip_origin,
const Angle chip_direction,
double  chip_distance_meters 
)

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

Parameters
chip_originThe location where the chip will be taken
chip_directionThe direction the Robot will chip in
chip_distance_metersThe distance between the starting location of the chip and the location of the first bounce

◆ updateControlParams() [2/2]

void updateControlParams ( const Point chip_origin,
const Point chip_target 
)

Updates the control parameters for this ChipTactic.

Parameters
chip_originThe location where the chip will be taken
chip_directionThe direction the Robot will chip in

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