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

◆ __init__()

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

◆ graceful_shutdown()

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.

◆ handle_request()

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

Definition at line 32 of file advertise_service.py.

◆ next_id()

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

Definition at line 27 of file advertise_service.py.

Member Data Documentation

◆ active_requests

rosbridge_library.capabilities.advertise_service.AdvertisedServiceHandler.active_requests

Definition at line 18 of file advertise_service.py.

◆ id_counter

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

Definition at line 14 of file advertise_service.py.

◆ lock

rosbridge_library.capabilities.advertise_service.AdvertisedServiceHandler.lock

Definition at line 20 of file advertise_service.py.

◆ protocol

rosbridge_library.capabilities.advertise_service.AdvertisedServiceHandler.protocol

Definition at line 23 of file advertise_service.py.

◆ responses

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

Definition at line 15 of file advertise_service.py.

◆ service_handle

rosbridge_library.capabilities.advertise_service.AdvertisedServiceHandler.service_handle

Definition at line 25 of file advertise_service.py.

◆ service_name

rosbridge_library.capabilities.advertise_service.AdvertisedServiceHandler.service_name

Definition at line 21 of file advertise_service.py.

◆ service_type

rosbridge_library.capabilities.advertise_service.AdvertisedServiceHandler.service_type

Definition at line 22 of file advertise_service.py.

◆ shutdown_requested

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 Tue Oct 3 2023 02:12:45