RosClient.call_sync_service

RosClient.call_sync_service(message, timeout)

Send a blocking service request to the ROS Master 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.

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

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

Returns

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