rosbridge_library.internal.services module
- exception rosbridge_library.internal.services.InvalidServiceException(service_name)
Bases:
Exception
- class rosbridge_library.internal.services.ServiceCaller(service: str, args: dict, timeout: float, success_callback: Callable[[dict], None], error_callback: Callable[[Exception], None], node_handle: Node)
Bases:
Thread
- run() None
Method representing the thread’s activity.
You may override this method in a subclass. The standard run() method invokes the callable object passed to the object’s constructor as the target argument, if any, with sequential and keyword arguments taken from the args and kwargs arguments, respectively.
- rosbridge_library.internal.services.args_to_service_request_instance(inst: Any, args: list | dict | None) Any
Populate a service request instance with the provided args.
Propagates any exceptions that may be raised.
- Parameters:
args – Can be a dictionary of values, or a list, or None
- rosbridge_library.internal.services.call_service(node_handle: Node, service: str, args: dict | None = None, server_ready_timeout: float = 1.0, server_response_timeout: float = 5.0) dict