#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::Subscriber & | feedback_sub_ |
std::map< std::string, size_t > | goalSubscribers_ |
ros::Time | latest_status_time_ |
ros::Subscriber & | result_sub_ |
std::string | status_caller_id_ |
bool | status_received_ |
Definition at line 53 of file connection_monitor.h.
actionlib::ConnectionMonitor::ConnectionMonitor | ( | ros::Subscriber & | feedback_sub, |
ros::Subscriber & | result_sub | ||
) |
Definition at line 53 of file connection_monitor.cpp.
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.
|
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.
|
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.
|
private |
Definition at line 83 of file connection_monitor.h.
|
private |
Definition at line 79 of file connection_monitor.h.
|
private |
Definition at line 81 of file connection_monitor.h.
|
private |
Definition at line 88 of file connection_monitor.h.
|
private |
Definition at line 82 of file connection_monitor.h.
|
private |
Definition at line 77 of file connection_monitor.h.
|
private |
Definition at line 89 of file connection_monitor.h.
|
private |
Definition at line 75 of file connection_monitor.h.
|
private |
Definition at line 76 of file connection_monitor.h.