Public Member Functions | Private Member Functions | Private Attributes | List of all members
actionlib::ConnectionMonitor Class Reference

#include <connection_monitor.h>

Public Member Functions

void cancelConnectCallback (const ros::SingleSubscriberPublisher &pub)
 
void cancelDisconnectCallback (const ros::SingleSubscriberPublisher &pub)
 
 ConnectionMonitor (ros::Subscriber &feedback_sub, ros::Subscriber &result_sub)
 
void goalConnectCallback (const ros::SingleSubscriberPublisher &pub)
 
void goalDisconnectCallback (const ros::SingleSubscriberPublisher &pub)
 
bool isServerConnected ()
 
void processStatus (const actionlib_msgs::GoalStatusArrayConstPtr &status, const std::string &cur_status_caller_id)
 
bool waitForActionServerToStart (const ros::Duration &timeout=ros::Duration(0, 0), const ros::NodeHandle &nh=ros::NodeHandle())
 

Private Member Functions

std::string cancelSubscribersString ()
 
std::string goalSubscribersString ()
 

Private Attributes

std::map< std::string, size_t > cancelSubscribers_
 
boost::condition check_connection_condition_
 
boost::recursive_mutex data_mutex_
 
ros::Subscriberfeedback_sub_
 
std::map< std::string, size_t > goalSubscribers_
 
ros::Time latest_status_time_
 
ros::Subscriberresult_sub_
 
std::string status_caller_id_
 
bool status_received_
 

Detailed Description

Definition at line 53 of file connection_monitor.h.

Constructor & Destructor Documentation

actionlib::ConnectionMonitor::ConnectionMonitor ( ros::Subscriber feedback_sub,
ros::Subscriber result_sub 
)

Definition at line 53 of file connection_monitor.cpp.

Member Function Documentation

void actionlib::ConnectionMonitor::cancelConnectCallback ( const ros::SingleSubscriberPublisher pub)

Definition at line 119 of file connection_monitor.cpp.

void actionlib::ConnectionMonitor::cancelDisconnectCallback ( const ros::SingleSubscriberPublisher pub)

Definition at line 139 of file connection_monitor.cpp.

std::string actionlib::ConnectionMonitor::cancelSubscribersString ( )
private

Definition at line 162 of file connection_monitor.cpp.

void actionlib::ConnectionMonitor::goalConnectCallback ( const ros::SingleSubscriberPublisher pub)

Definition at line 62 of file connection_monitor.cpp.

void actionlib::ConnectionMonitor::goalDisconnectCallback ( const ros::SingleSubscriberPublisher pub)

Definition at line 82 of file connection_monitor.cpp.

std::string actionlib::ConnectionMonitor::goalSubscribersString ( )
private

Definition at line 104 of file connection_monitor.cpp.

bool actionlib::ConnectionMonitor::isServerConnected ( )

Definition at line 203 of file connection_monitor.cpp.

void actionlib::ConnectionMonitor::processStatus ( const actionlib_msgs::GoalStatusArrayConstPtr &  status,
const std::string &  cur_status_caller_id 
)

Definition at line 177 of file connection_monitor.cpp.

bool actionlib::ConnectionMonitor::waitForActionServerToStart ( const ros::Duration timeout = ros::Duration(0, 0),
const ros::NodeHandle nh = ros::NodeHandle() 
)

Definition at line 246 of file connection_monitor.cpp.

Member Data Documentation

std::map<std::string, size_t> actionlib::ConnectionMonitor::cancelSubscribers_
private

Definition at line 83 of file connection_monitor.h.

boost::condition actionlib::ConnectionMonitor::check_connection_condition_
private

Definition at line 79 of file connection_monitor.h.

boost::recursive_mutex actionlib::ConnectionMonitor::data_mutex_
private

Definition at line 81 of file connection_monitor.h.

ros::Subscriber& actionlib::ConnectionMonitor::feedback_sub_
private

Definition at line 88 of file connection_monitor.h.

std::map<std::string, size_t> actionlib::ConnectionMonitor::goalSubscribers_
private

Definition at line 82 of file connection_monitor.h.

ros::Time actionlib::ConnectionMonitor::latest_status_time_
private

Definition at line 77 of file connection_monitor.h.

ros::Subscriber& actionlib::ConnectionMonitor::result_sub_
private

Definition at line 89 of file connection_monitor.h.

std::string actionlib::ConnectionMonitor::status_caller_id_
private

Definition at line 75 of file connection_monitor.h.

bool actionlib::ConnectionMonitor::status_received_
private

Definition at line 76 of file connection_monitor.h.


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


actionlib
Author(s): Eitan Marder-Eppstein, Vijay Pradeep, Mikael Arguedas
autogenerated on Mon Aug 24 2020 03:40:47