class ServiceImpl(_Service):
Known subclasses: niryo_libraries.rospy.Service
Constructor: ServiceImpl(name, service_class, handler, buff_size, error_handler)
Implementation of ROS Service. This intermediary class allows for more configuration of behavior than the Service class.
Method | __init__ |
Undocumented |
Method | error |
Undocumented |
Method | handle |
Process incoming request. This method should be run in its own thread. If header['persistent'] is set to 1, method will block until connection is broken. @param transport: transport instance @type transport: L{TCPROSTransport} @param header: headers from client @type header: dict... |
Method | shutdown |
Stop this service @param reason: human-readable shutdown reason @type reason: str |
Method | spin |
Let service run and take over thread until service or node shutdown. Use this method to keep your scripts from exiting execution. |
Instance Variable | buff |
Undocumented |
Instance Variable | done |
Undocumented |
Instance Variable | handler |
Undocumented |
Instance Variable | protocol |
Undocumented |
Instance Variable | registered |
Undocumented |
Instance Variable | seq |
Undocumented |
Instance Variable | uri |
Undocumented |
Method | _handle |
Process a single incoming request. @param transport: transport instance @type transport: L{TCPROSTransport} @param request: Message @type request: genpy.Message |
Method | _write |
Send error message to client @param transport: transport connection to client @type transport: Transport @param err_msg: error message to send to client @type err_msg: str |
niryo_libraries.rospy.Service
Undocumented
Process incoming request. This method should be run in its own thread. If header['persistent'] is set to 1, method will block until connection is broken. @param transport: transport instance @type transport: L{TCPROSTransport} @param header: headers from client @type header: dict
Let service run and take over thread until service or node shutdown. Use this method to keep your scripts from exiting execution.
Process a single incoming request. @param transport: transport instance @type transport: L{TCPROSTransport} @param request: Message @type request: genpy.Message