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

Wraps the library api into a fully functional ros node with ros api. More...

Public Member Functions

void init (ros::NodeHandle &nh)
 

Private Types

typedef boost::function< void(zeroconf_msgs::DiscoveredService)> connection_signal_cb
 

Private Member Functions

bool add_listener (AddListener::Request &request, AddListener::Response &response)
 
bool add_service (AddService::Request &request, AddService::Response &response)
 
bool list_discovered_services (ListDiscoveredServices::Request &request, ListDiscoveredServices::Response &response)
 
bool list_published_services (ListPublishedServices::Request &request, ListPublishedServices::Response &response)
 
void lost_connections (DiscoveredService service)
 
void new_connections (DiscoveredService service)
 
bool remove_listener (RemoveListener::Request &request, RemoveListener::Response &response)
 
bool remove_service (AddService::Request &request, AddService::Response &response)
 

Private Attributes

ros::Publisher pub_lost_connections
 
ros::Publisher pub_new_connections
 
ros::ServiceServer server_add_listener
 
ros::ServiceServer server_add_service
 
ros::ServiceServer server_list_discovered_services
 
ros::ServiceServer server_list_published_services
 
ros::ServiceServer server_remove_listener
 
ros::ServiceServer server_remove_service
 
Zeroconf zeroconf
 

Detailed Description

Wraps the library api into a fully functional ros node with ros api.

Simply envelops the c++ api with ros msg/srv communications. Also has some magic to help make publishing and browsing ros masters easy.

Definition at line 43 of file node/zeroconf.cpp.

Member Typedef Documentation

typedef boost::function<void(zeroconf_msgs::DiscoveredService)> ZeroconfNode::connection_signal_cb
private

Definition at line 47 of file node/zeroconf.cpp.

Member Function Documentation

bool ZeroconfNode::add_listener ( AddListener::Request &  request,
AddListener::Response &  response 
)
inlineprivate

Definition at line 182 of file node/zeroconf.cpp.

bool ZeroconfNode::add_service ( AddService::Request &  request,
AddService::Response &  response 
)
inlineprivate

Definition at line 194 of file node/zeroconf.cpp.

void ZeroconfNode::init ( ros::NodeHandle nh)
inline

Definition at line 53 of file node/zeroconf.cpp.

bool ZeroconfNode::list_discovered_services ( ListDiscoveredServices::Request &  request,
ListDiscoveredServices::Response &  response 
)
inlineprivate

Definition at line 204 of file node/zeroconf.cpp.

bool ZeroconfNode::list_published_services ( ListPublishedServices::Request &  request,
ListPublishedServices::Response &  response 
)
inlineprivate

Definition at line 210 of file node/zeroconf.cpp.

void ZeroconfNode::lost_connections ( DiscoveredService  service)
inlineprivate

Definition at line 219 of file node/zeroconf.cpp.

void ZeroconfNode::new_connections ( DiscoveredService  service)
inlineprivate

Definition at line 215 of file node/zeroconf.cpp.

bool ZeroconfNode::remove_listener ( RemoveListener::Request &  request,
RemoveListener::Response &  response 
)
inlineprivate

Definition at line 188 of file node/zeroconf.cpp.

bool ZeroconfNode::remove_service ( AddService::Request &  request,
AddService::Response &  response 
)
inlineprivate

Definition at line 199 of file node/zeroconf.cpp.

Member Data Documentation

ros::Publisher ZeroconfNode::pub_lost_connections
private

Definition at line 227 of file node/zeroconf.cpp.

ros::Publisher ZeroconfNode::pub_new_connections
private

Definition at line 227 of file node/zeroconf.cpp.

ros::ServiceServer ZeroconfNode::server_add_listener
private

Definition at line 225 of file node/zeroconf.cpp.

ros::ServiceServer ZeroconfNode::server_add_service
private

Definition at line 225 of file node/zeroconf.cpp.

ros::ServiceServer ZeroconfNode::server_list_discovered_services
private

Definition at line 226 of file node/zeroconf.cpp.

ros::ServiceServer ZeroconfNode::server_list_published_services
private

Definition at line 226 of file node/zeroconf.cpp.

ros::ServiceServer ZeroconfNode::server_remove_listener
private

Definition at line 225 of file node/zeroconf.cpp.

ros::ServiceServer ZeroconfNode::server_remove_service
private

Definition at line 225 of file node/zeroconf.cpp.

Zeroconf ZeroconfNode::zeroconf
private

Definition at line 224 of file node/zeroconf.cpp.


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


zeroconf_avahi
Author(s): Daniel Stonier
autogenerated on Mon Jun 10 2019 15:49:04