Decision Module  1.0
ICRA2020 AI Challenge Northwestern Polytechnical University Aoxiang Team Strategy Code
roborts_decision::WaitForEnemySupplyArea Class Reference

#include <wait_for_enemy_supply_area.h>

Public Member Functions

 WaitForEnemySupplyArea (std::shared_ptr< MyRobot > p_my_robot1, std::shared_ptr< MyRobot > p_my_robot2, std::shared_ptr< Blackboard > p_blackboard, std::shared_ptr< RobotBehaviors > p_robot1_behaviors, std::shared_ptr< RobotBehaviors > p_robot2_behaviors)
 
bool Run (EnemyBuffZone enemy_zone)
 
void Cancel ()
 

Static Public Member Functions

static void CancelBehavior (const std::shared_ptr< MyRobot > &myRobot, const std::shared_ptr< RobotBehaviors > &robotBehaviors)
 

Private Member Functions

std::pair< geometry_msgs::PoseStamped, geometry_msgs::PoseStamped > getGoalPose (int zone_id)
 

Private Attributes

std::shared_ptr< MyRobotp_my_robot1
 
std::shared_ptr< MyRobotp_my_robot2
 
std::shared_ptr< Blackboardp_blackboard_
 
std::shared_ptr< RobotBehaviors > p_robot1_behaviors
 
std::shared_ptr< RobotBehaviors > p_robot2_behaviors
 
BuffStatus buff_status_restoration
 
BuffStatus buff_status_projection_supplier
 

Constructor & Destructor Documentation

◆ WaitForEnemySupplyArea()

roborts_decision::WaitForEnemySupplyArea::WaitForEnemySupplyArea ( std::shared_ptr< MyRobot p_my_robot1,
std::shared_ptr< MyRobot p_my_robot2,
std::shared_ptr< Blackboard p_blackboard,
std::shared_ptr< RobotBehaviors >  p_robot1_behaviors,
std::shared_ptr< RobotBehaviors >  p_robot2_behaviors 
)
inline

Member Function Documentation

◆ Cancel()

void roborts_decision::WaitForEnemySupplyArea::Cancel ( )
inline

◆ CancelBehavior()

static void roborts_decision::WaitForEnemySupplyArea::CancelBehavior ( const std::shared_ptr< MyRobot > &  myRobot,
const std::shared_ptr< RobotBehaviors > &  robotBehaviors 
)
inlinestatic

◆ getGoalPose()

std::pair<geometry_msgs::PoseStamped, geometry_msgs::PoseStamped> roborts_decision::WaitForEnemySupplyArea::getGoalPose ( int  zone_id)
inlineprivate

◆ Run()

bool roborts_decision::WaitForEnemySupplyArea::Run ( EnemyBuffZone  enemy_zone)
inline

Member Data Documentation

◆ buff_status_projection_supplier

BuffStatus roborts_decision::WaitForEnemySupplyArea::buff_status_projection_supplier
private

◆ buff_status_restoration

BuffStatus roborts_decision::WaitForEnemySupplyArea::buff_status_restoration
private

◆ p_blackboard_

std::shared_ptr<Blackboard> roborts_decision::WaitForEnemySupplyArea::p_blackboard_
private

◆ p_my_robot1

std::shared_ptr<MyRobot> roborts_decision::WaitForEnemySupplyArea::p_my_robot1
private

◆ p_my_robot2

std::shared_ptr<MyRobot> roborts_decision::WaitForEnemySupplyArea::p_my_robot2
private

◆ p_robot1_behaviors

std::shared_ptr<RobotBehaviors> roborts_decision::WaitForEnemySupplyArea::p_robot1_behaviors
private

◆ p_robot2_behaviors

std::shared_ptr<RobotBehaviors> roborts_decision::WaitForEnemySupplyArea::p_robot2_behaviors
private

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