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

#include <receiver_tactic.h>

Inheritance diagram for ReceiverTactic:
Collaboration diagram for ReceiverTactic:

Public Member Functions

 ReceiverTactic (const TbotsProto::ReceiverTacticConfig &receiver_config)
 
void updateControlParams (std::optional< Pass > updated_pass, bool disable_one_touch_shot=false)
 
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

This tactic is for a robot receiving a pass.

Note that this tactic does not take into account the time the pass should occur at, it simply tries to move to the best position to receive the pass as possible

Constructor & Destructor Documentation

◆ ReceiverTactic()

ReceiverTactic ( const TbotsProto::ReceiverTacticConfig &  receiver_config)
explicit

Creates a new ReceiverTactic

Parameters
receiver_configThe config to fetch parameters from

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 ( std::optional< Pass updated_pass,
bool  disable_one_touch_shot = false 
)

Updates the control parameters for this ReceiverTactic.

Parameters
updated_passThe pass this tactic should try to receive
disable_one_touch_shotIf set to true, the receiver will not perform a one-touch The robot will simply receive and dribble.

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