Public Member Functions | Public Attributes | List of all members
rosbridge_library.internal.services.ServiceCaller Class Reference
Inheritance diagram for rosbridge_library.internal.services.ServiceCaller:
Inheritance graph
[legend]

Public Member Functions

def __init__ (self, service, args, success_callback, error_callback)
 
def run (self)
 

Public Attributes

 args
 
 daemon
 
 error
 
 service
 
 success
 

Detailed Description

Definition at line 47 of file services.py.

Constructor & Destructor Documentation

◆ __init__()

def rosbridge_library.internal.services.ServiceCaller.__init__ (   self,
  service,
  args,
  success_callback,
  error_callback 
)
Create a service caller for the specified service.  Use start()
to start in a separate thread or run() to run in this thread.

Keyword arguments:
service          -- the name of the service to call
args             -- arguments to pass to the service.  Can be an
ordered list, or a dict of name-value pairs.  Anything else will be
treated as though no arguments were provided (which is still valid for
some kinds of service)
success_callback -- a callback to call with the JSON result of the
service call
error_callback   -- a callback to call if an error occurs.  The
callback will be passed the exception that caused the failure

Definition at line 49 of file services.py.

Member Function Documentation

◆ run()

def rosbridge_library.internal.services.ServiceCaller.run (   self)

Definition at line 72 of file services.py.

Member Data Documentation

◆ args

rosbridge_library.internal.services.ServiceCaller.args

Definition at line 68 of file services.py.

◆ daemon

rosbridge_library.internal.services.ServiceCaller.daemon

Definition at line 66 of file services.py.

◆ error

rosbridge_library.internal.services.ServiceCaller.error

Definition at line 70 of file services.py.

◆ service

rosbridge_library.internal.services.ServiceCaller.service

Definition at line 67 of file services.py.

◆ success

rosbridge_library.internal.services.ServiceCaller.success

Definition at line 69 of file services.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