RosClient.call_sync_service
- RosClient.call_sync_service(message, timeout)[source]
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.
- Args:
message (
Message
): ROS Bridge Message containing the request. timeout (int
): Number of seconds to wait for the response beforeraising an exception.
- Returns:
Either returns the service request results or raises a timeout exception.