Public Member Functions | Protected Attributes
PatrolAgent Class Reference

#include <PatrolAgent.h>

Inheritance diagram for PatrolAgent:
Inheritance graph
[legend]

List of all members.

Public Member Functions

void backup ()
void cancelGoal ()
bool check_interference (int ID_ROBOT)
virtual int compute_next_vertex ()=0
void do_interference_behavior ()
void do_send_message (std_msgs::Int16MultiArray &msg)
void getRobotPose (int robotid, float &x, float &y, float &theta)
void goalActiveCallback ()
void goalDoneCallback (const actionlib::SimpleClientGoalState &state, const move_base_msgs::MoveBaseResultConstPtr &result)
void goalFeedbackCallback (const move_base_msgs::MoveBaseFeedbackConstPtr &feedback)
virtual void init (int argc, char **argv)
void initialize_node ()
void odomCB (const nav_msgs::Odometry::ConstPtr &msg)
virtual void onGoalComplete ()
void onGoalNotComplete ()
 PatrolAgent ()
void positionsCB (const nav_msgs::Odometry::ConstPtr &msg)
virtual void processEvents ()
void readParams ()
void ready ()
void receive_positions ()
virtual void receive_results ()
void resultsCB (const std_msgs::Int16MultiArray::ConstPtr &msg)
virtual void run ()
void send_goal_reached ()
void send_interference ()
void send_positions ()
virtual void send_results ()
void sendGoal (int next_vertex)
void update_idleness ()

Protected Attributes

int aborted_count
MoveBaseClientac
ros::Publisher cmd_vel_pub
double communication_delay
uint current_vertex
uint dimension
bool end_simulation
bool goal_canceled_by_user
bool goal_complete
double goal_reached_wait
std::string graph_file
int ID_ROBOT
std::string initial_positions
bool initialize
double * instantaneous_idleness
bool interference
double last_communication_delay_time
double last_interference
double * last_visit
tf::TransformListenerlistener
double lost_message_rate
std::string mapname
int next_vertex
ros::Subscriber odom_sub
ros::Publisher positions_pub
ros::Subscriber positions_sub
int resend_goal_count
bool ResendGoal
ros::Publisher results_pub
ros::Subscriber results_sub
int TEAMSIZE
vertexvertex_web
std::vector< int > vresults
double xPos [NUM_MAX_ROBOTS]
double yPos [NUM_MAX_ROBOTS]

Detailed Description

Definition at line 60 of file PatrolAgent.h.


Constructor & Destructor Documentation

Definition at line 103 of file PatrolAgent.h.


Member Function Documentation

Definition at line 625 of file PatrolAgent.cpp.

Definition at line 515 of file PatrolAgent.cpp.

bool PatrolAgent::check_interference ( int  ID_ROBOT)

Definition at line 602 of file PatrolAgent.cpp.

virtual int PatrolAgent::compute_next_vertex ( ) [pure virtual]

Definition at line 667 of file PatrolAgent.cpp.

void PatrolAgent::do_send_message ( std_msgs::Int16MultiArray &  msg)

Definition at line 781 of file PatrolAgent.cpp.

void PatrolAgent::getRobotPose ( int  robotid,
float &  x,
float &  y,
float &  theta 
)

Definition at line 442 of file PatrolAgent.cpp.

Definition at line 570 of file PatrolAgent.cpp.

void PatrolAgent::goalDoneCallback ( const actionlib::SimpleClientGoalState state,
const move_base_msgs::MoveBaseResultConstPtr &  result 
)

Definition at line 522 of file PatrolAgent.cpp.

void PatrolAgent::goalFeedbackCallback ( const move_base_msgs::MoveBaseFeedbackConstPtr &  feedback)

Definition at line 575 of file PatrolAgent.cpp.

void PatrolAgent::init ( int  argc,
char **  argv 
) [virtual]

D.Portugal: needed in case you "rosrun" from another folder

Reimplemented in SSIPatrolAgent, CBLS_Agent, DTAGreedy_Agent, DTASSIPart_Agent, SEBS_Agent, GBS_Agent, MSP_Agent, Conscientious_Cognitive_Agent, and Cyclic_Agent.

Definition at line 59 of file PatrolAgent.cpp.

Definition at line 416 of file PatrolAgent.cpp.

void PatrolAgent::odomCB ( const nav_msgs::Odometry::ConstPtr &  msg)

Definition at line 476 of file PatrolAgent.cpp.

void PatrolAgent::onGoalComplete ( ) [virtual]

SEND GOAL (REACHED) AND INTENTION

Reimplemented in SSIPatrolAgent, CBLS_Agent, and Conscientious_Cognitive_Agent.

Definition at line 339 of file PatrolAgent.cpp.

Definition at line 363 of file PatrolAgent.cpp.

void PatrolAgent::positionsCB ( const nav_msgs::Odometry::ConstPtr &  msg)

Definition at line 731 of file PatrolAgent.cpp.

void PatrolAgent::processEvents ( ) [virtual]

Reimplemented in CBLS_Agent, SEBS_Agent, and GBS_Agent.

Definition at line 398 of file PatrolAgent.cpp.

Definition at line 240 of file PatrolAgent.cpp.

Definition at line 208 of file PatrolAgent.cpp.

Definition at line 726 of file PatrolAgent.cpp.

void PatrolAgent::receive_results ( ) [virtual]

Reimplemented in SSIPatrolAgent, CBLS_Agent, DTAGreedy_Agent, SEBS_Agent, and GBS_Agent.

Definition at line 796 of file PatrolAgent.cpp.

void PatrolAgent::resultsCB ( const std_msgs::Int16MultiArray::ConstPtr &  msg)

Definition at line 819 of file PatrolAgent.cpp.

void PatrolAgent::run ( ) [virtual]

Definition at line 268 of file PatrolAgent.cpp.

Definition at line 584 of file PatrolAgent.cpp.

Definition at line 800 of file PatrolAgent.cpp.

Definition at line 702 of file PatrolAgent.cpp.

void PatrolAgent::send_results ( ) [virtual]

Reimplemented in SSIPatrolAgent, CBLS_Agent, DTAGreedy_Agent, SEBS_Agent, and GBS_Agent.

Definition at line 776 of file PatrolAgent.cpp.

void PatrolAgent::sendGoal ( int  next_vertex)

Definition at line 496 of file PatrolAgent.cpp.

Definition at line 402 of file PatrolAgent.cpp.


Member Data Documentation

int PatrolAgent::aborted_count [protected]

Definition at line 90 of file PatrolAgent.h.

Definition at line 92 of file PatrolAgent.h.

Definition at line 98 of file PatrolAgent.h.

Definition at line 88 of file PatrolAgent.h.

Definition at line 74 of file PatrolAgent.h.

Definition at line 73 of file PatrolAgent.h.

bool PatrolAgent::end_simulation [protected]

Definition at line 80 of file PatrolAgent.h.

Definition at line 87 of file PatrolAgent.h.

bool PatrolAgent::goal_complete [protected]

Definition at line 78 of file PatrolAgent.h.

double PatrolAgent::goal_reached_wait [protected]

Definition at line 88 of file PatrolAgent.h.

std::string PatrolAgent::graph_file [protected]

Definition at line 72 of file PatrolAgent.h.

int PatrolAgent::ID_ROBOT [protected]

Definition at line 65 of file PatrolAgent.h.

std::string PatrolAgent::initial_positions [protected]

Definition at line 89 of file PatrolAgent.h.

bool PatrolAgent::initialize [protected]

Definition at line 79 of file PatrolAgent.h.

Definition at line 84 of file PatrolAgent.h.

bool PatrolAgent::interference [protected]

Definition at line 76 of file PatrolAgent.h.

Definition at line 88 of file PatrolAgent.h.

double PatrolAgent::last_interference [protected]

Definition at line 77 of file PatrolAgent.h.

double* PatrolAgent::last_visit [protected]

Definition at line 85 of file PatrolAgent.h.

Definition at line 70 of file PatrolAgent.h.

double PatrolAgent::lost_message_rate [protected]

Definition at line 88 of file PatrolAgent.h.

std::string PatrolAgent::mapname [protected]

Definition at line 72 of file PatrolAgent.h.

int PatrolAgent::next_vertex [protected]

Definition at line 81 of file PatrolAgent.h.

Definition at line 94 of file PatrolAgent.h.

Definition at line 95 of file PatrolAgent.h.

Definition at line 94 of file PatrolAgent.h.

Definition at line 90 of file PatrolAgent.h.

bool PatrolAgent::ResendGoal [protected]

Definition at line 75 of file PatrolAgent.h.

Definition at line 97 of file PatrolAgent.h.

Definition at line 96 of file PatrolAgent.h.

int PatrolAgent::TEAMSIZE [protected]

Definition at line 64 of file PatrolAgent.h.

Definition at line 83 of file PatrolAgent.h.

std::vector<int> PatrolAgent::vresults [protected]

Definition at line 86 of file PatrolAgent.h.

double PatrolAgent::xPos[NUM_MAX_ROBOTS] [protected]

Definition at line 67 of file PatrolAgent.h.

double PatrolAgent::yPos[NUM_MAX_ROBOTS] [protected]

Definition at line 68 of file PatrolAgent.h.


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


patrolling_sim
Author(s):
autogenerated on Thu Jun 6 2019 20:27:09