RosClient.blocking_call_from_thread

RosClient.blocking_call_from_thread(callback, timeout)[source]

Call the given function from a thread, and wait for the result synchronously for as long as the timeout will allow.

Args:

callback: Callable function to be invoked from the thread. timeout (int): Number of seconds to wait for the response before

raising an exception.

Returns:

The results from the callback, or a timeout exception.