RosClient.call_sync_service(message, timeout)

Send a blocking service request to ROS once the connection is established, waiting for the result to be return.

If a connection to ROS is already available, the request is sent immediately.

  • message (Message) – ROS Bridge Message containing the request.

  • timeout (int) – Number of seconds to wait for the response before raising an exception.


Either returns the service request results or raises a timeout exception.