Public Member Functions | Public Attributes | Static Public Attributes | List of all members
rosbridge_library.capabilities.advertise_service.AdvertisedServiceHandler Class Reference

Public Member Functions

def __init__ (self, service_name, service_type, protocol)
 
def graceful_shutdown (self, timeout)
 
def handle_request (self, req)
 
def next_id (self)
 

Public Attributes

 active_requests
 
 lock
 
 protocol
 
 service_handle
 
 service_name
 
 service_type
 
 shutdown_requested
 

Static Public Attributes

int id_counter = 1
 
dictionary responses = {}
 

Detailed Description

Definition at line 12 of file advertise_service.py.

Constructor & Destructor Documentation

def rosbridge_library.capabilities.advertise_service.AdvertisedServiceHandler.__init__ (   self,
  service_name,
  service_type,
  protocol 
)

Definition at line 17 of file advertise_service.py.

Member Function Documentation

def rosbridge_library.capabilities.advertise_service.AdvertisedServiceHandler.graceful_shutdown (   self,
  timeout 
)
Signal the AdvertisedServiceHandler to shutdown

Using this, rather than just rospy.Service.shutdown(), allows us
time to stop any active service requests, ending their busy wait
loops.

Definition at line 68 of file advertise_service.py.

def rosbridge_library.capabilities.advertise_service.AdvertisedServiceHandler.handle_request (   self,
  req 
)

Definition at line 32 of file advertise_service.py.

def rosbridge_library.capabilities.advertise_service.AdvertisedServiceHandler.next_id (   self)

Definition at line 27 of file advertise_service.py.

Member Data Documentation

rosbridge_library.capabilities.advertise_service.AdvertisedServiceHandler.active_requests

Definition at line 18 of file advertise_service.py.

int rosbridge_library.capabilities.advertise_service.AdvertisedServiceHandler.id_counter = 1
static

Definition at line 14 of file advertise_service.py.

rosbridge_library.capabilities.advertise_service.AdvertisedServiceHandler.lock

Definition at line 20 of file advertise_service.py.

rosbridge_library.capabilities.advertise_service.AdvertisedServiceHandler.protocol

Definition at line 23 of file advertise_service.py.

dictionary rosbridge_library.capabilities.advertise_service.AdvertisedServiceHandler.responses = {}
static

Definition at line 15 of file advertise_service.py.

rosbridge_library.capabilities.advertise_service.AdvertisedServiceHandler.service_handle

Definition at line 25 of file advertise_service.py.

rosbridge_library.capabilities.advertise_service.AdvertisedServiceHandler.service_name

Definition at line 21 of file advertise_service.py.

rosbridge_library.capabilities.advertise_service.AdvertisedServiceHandler.service_type

Definition at line 22 of file advertise_service.py.

rosbridge_library.capabilities.advertise_service.AdvertisedServiceHandler.shutdown_requested

Definition at line 19 of file advertise_service.py.


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


rosbridge_library
Author(s): Jonathan Mace
autogenerated on Wed Jun 3 2020 03:55:14