Public Member Functions | Public Attributes | Private Member Functions | Private Attributes
Strategy Class Reference

#include <strategy.h>

List of all members.

Public Member Functions

void BackToBase ()
int FindRole ()
void Follow ()
void Goto ()
void init ()
void Land ()
void publish_strategy ()
void reset ()
void Seek ()
void SetXYChosen (double xchosen, double ychosen)
 Strategy ()
 Constructor.
void Takeoff ()
 ~Strategy ()
 Destructor.

Public Attributes

bool backupCalled
float batteryLeft
bool Drone1
bool Intheair
ucl_drone::DroneRoles lastDronesrolesreceived
ardrone_autonomy::Navdata lastNavdataReceived
ucl_drone::Pose3D lastPoseReceivedFromSlave
float oldbatteryLeft
float oldstrategychosen
bool StrategyCbreceived
float strategychosen
bool TargetDetectedFromMaster
bool TargetDetectedFromSlave
float xchosen
float ychosen

Private Member Functions

void multi_strategyCb (const ucl_drone::DroneRoles::ConstPtr drones_rolesPtr)
void navdataCb (const ardrone_autonomy::Navdata::ConstPtr navdataPtr)
void poseFromSlaveCb (const ucl_drone::Pose3D::ConstPtr posePtr)
void targetDetectedCb (const ucl_drone::TargetDetected::ConstPtr targetDetectedPtr)
 Callback when TargetDetected is received.
void targetDetectedFromMasterCb (const ucl_drone::TargetDetected::ConstPtr targetDetectedPtr)
void targetDetectedFromSlaveCb (const ucl_drone::TargetDetected::ConstPtr targetDetectedPtr)

Private Attributes

std::string drone_name
int i
ucl_drone::TargetDetected lastTargetDetected
ucl_drone::TargetDetected lastTargetDetectedFromMaster
ucl_drone::TargetDetected lastTargetDetectedFromSlave
std::string multi_strategy_channel
ros::Subscriber multi_strategy_sub
std::string navdata_channel
ros::Subscriber navdata_sub
ros::NodeHandle nh
std::string pose_from_slave_channel
ros::Subscriber pose_from_slave_sub
std::string strategy_channel
ros::Publisher strategy_pub
std::string target_channel
std::string target_channel_from_master
std::string target_channel_from_slave
 Measure.
ros::Subscriber target_sub
ros::Subscriber target_sub_from_master
ros::Subscriber target_sub_from_slave
float xDetectedBySlave
float yDetectedBySlave

Detailed Description

Definition at line 28 of file strategy.h.


Constructor & Destructor Documentation

Constructor.

Definition at line 19 of file strategy.cpp.

Destructor.

Definition at line 89 of file strategy.cpp.


Member Function Documentation

Definition at line 132 of file strategy.cpp.

Definition at line 139 of file strategy.cpp.

void Strategy::Follow ( )

Definition at line 126 of file strategy.cpp.

void Strategy::Goto ( )

Definition at line 114 of file strategy.cpp.

void Strategy::init ( )
void Strategy::Land ( )

Definition at line 120 of file strategy.cpp.

void Strategy::multi_strategyCb ( const ucl_drone::DroneRoles::ConstPtr  drones_rolesPtr) [private]

Definition at line 218 of file strategy.cpp.

void Strategy::navdataCb ( const ardrone_autonomy::Navdata::ConstPtr  navdataPtr) [private]

Definition at line 228 of file strategy.cpp.

void Strategy::poseFromSlaveCb ( const ucl_drone::Pose3D::ConstPtr  posePtr) [private]

Definition at line 246 of file strategy.cpp.

Definition at line 164 of file strategy.cpp.

void Strategy::reset ( )

Definition at line 96 of file strategy.cpp.

void Strategy::Seek ( )

Definition at line 108 of file strategy.cpp.

void Strategy::SetXYChosen ( double  xchosen,
double  ychosen 
)

Definition at line 157 of file strategy.cpp.

Definition at line 102 of file strategy.cpp.

void Strategy::targetDetectedCb ( const ucl_drone::TargetDetected::ConstPtr  targetDetectedPtr) [private]

Callback when TargetDetected is received.

Definition at line 178 of file strategy.cpp.

void Strategy::targetDetectedFromMasterCb ( const ucl_drone::TargetDetected::ConstPtr  targetDetectedPtr) [private]

Definition at line 189 of file strategy.cpp.

void Strategy::targetDetectedFromSlaveCb ( const ucl_drone::TargetDetected::ConstPtr  targetDetectedPtr) [private]

Definition at line 204 of file strategy.cpp.


Member Data Documentation

Definition at line 96 of file strategy.h.

Definition at line 94 of file strategy.h.

Definition at line 89 of file strategy.h.

std::string Strategy::drone_name [private]

Definition at line 31 of file strategy.h.

int Strategy::i [private]

Definition at line 66 of file strategy.h.

Definition at line 90 of file strategy.h.

Definition at line 74 of file strategy.h.

ardrone_autonomy::Navdata Strategy::lastNavdataReceived

Definition at line 99 of file strategy.h.

Definition at line 100 of file strategy.h.

ucl_drone::TargetDetected Strategy::lastTargetDetected [private]

Definition at line 51 of file strategy.h.

ucl_drone::TargetDetected Strategy::lastTargetDetectedFromMaster [private]

Definition at line 52 of file strategy.h.

ucl_drone::TargetDetected Strategy::lastTargetDetectedFromSlave [private]

Definition at line 53 of file strategy.h.

std::string Strategy::multi_strategy_channel [private]

Definition at line 45 of file strategy.h.

Definition at line 39 of file strategy.h.

std::string Strategy::navdata_channel [private]

Definition at line 48 of file strategy.h.

Definition at line 40 of file strategy.h.

Definition at line 33 of file strategy.h.

Definition at line 95 of file strategy.h.

Definition at line 88 of file strategy.h.

std::string Strategy::pose_from_slave_channel [private]

Definition at line 49 of file strategy.h.

Definition at line 41 of file strategy.h.

std::string Strategy::strategy_channel [private]

Definition at line 43 of file strategy.h.

Definition at line 35 of file strategy.h.

Definition at line 91 of file strategy.h.

Definition at line 87 of file strategy.h.

std::string Strategy::target_channel [private]

Definition at line 44 of file strategy.h.

std::string Strategy::target_channel_from_master [private]

Definition at line 46 of file strategy.h.

std::string Strategy::target_channel_from_slave [private]

Measure.

Definition at line 47 of file strategy.h.

Definition at line 36 of file strategy.h.

Definition at line 37 of file strategy.h.

Definition at line 38 of file strategy.h.

Definition at line 92 of file strategy.h.

Definition at line 93 of file strategy.h.

Definition at line 97 of file strategy.h.

float Strategy::xDetectedBySlave [private]

Definition at line 64 of file strategy.h.

Definition at line 98 of file strategy.h.

float Strategy::yDetectedBySlave [private]

Definition at line 65 of file strategy.h.


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


ucl_drone
Author(s): dronesinma
autogenerated on Sat Jun 8 2019 20:51:53