Public Member Functions | Private Member Functions | Private Attributes | List of all members
node_check_switch Class Reference

#include <node_check_switch.h>

Public Member Functions

 node_check_switch ()
 
 ~node_check_switch ()
 

Private Member Functions

void callback_ (const ros::MessageEvent< topic_tools::ShapeShifter > &msg_event)
 
void connection_callback_ (const ros::SingleSubscriberPublisher &)
 
void subscribe_ ()
 
bool target_node_exists_ ()
 
void unsubscribe_ ()
 

Private Attributes

volatile bool advertised_
 
std::string check_target_node_name_
 
ros::Publisher exist_pub_
 
ros::NodeHandle nh_
 
ros::Publisher not_exist_pub_
 
ros::Subscribersub_ptr_
 
std::string topic_exist_
 
std::string topic_not_exist_
 

Detailed Description

Definition at line 8 of file node_check_switch.h.

Constructor & Destructor Documentation

node_check_switch::node_check_switch ( )

Definition at line 3 of file node_check_switch.cpp.

node_check_switch::~node_check_switch ( )

Definition at line 12 of file node_check_switch.cpp.

Member Function Documentation

void node_check_switch::callback_ ( const ros::MessageEvent< topic_tools::ShapeShifter > &  msg_event)
private

Definition at line 17 of file node_check_switch.cpp.

void node_check_switch::connection_callback_ ( const ros::SingleSubscriberPublisher )
private
void node_check_switch::subscribe_ ( )
private

Definition at line 55 of file node_check_switch.cpp.

bool node_check_switch::target_node_exists_ ( )
private

Definition at line 41 of file node_check_switch.cpp.

void node_check_switch::unsubscribe_ ( )
private

Definition at line 61 of file node_check_switch.cpp.

Member Data Documentation

volatile bool node_check_switch::advertised_
private

Definition at line 26 of file node_check_switch.h.

std::string node_check_switch::check_target_node_name_
private

Definition at line 20 of file node_check_switch.h.

ros::Publisher node_check_switch::exist_pub_
private

Definition at line 16 of file node_check_switch.h.

ros::NodeHandle node_check_switch::nh_
private

Definition at line 14 of file node_check_switch.h.

ros::Publisher node_check_switch::not_exist_pub_
private

Definition at line 17 of file node_check_switch.h.

ros::Subscriber* node_check_switch::sub_ptr_
private

Definition at line 15 of file node_check_switch.h.

std::string node_check_switch::topic_exist_
private

Definition at line 18 of file node_check_switch.h.

std::string node_check_switch::topic_not_exist_
private

Definition at line 19 of file node_check_switch.h.


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


topic_switch
Author(s):
autogenerated on Mon Jun 10 2019 15:27:01