INNER CODE UNIT · Python
request_batch
unrealcv/unrealcv · client/python/unrealcv/__init__.py:512
def request_batch(self, batch):
"""
Send a batch of requests to server and wait util get all responses from server.
Parameters
----------
batch : list
a list of requests, each request is a string, such as ['command1', 'command2', ...]
Returns
-------
list
a list of responses, such as ['response1', 'response2', ...]
Examples
--------
>>> client.request_batch(['vget /camera/0/location', 'vget /camera/0/rotation'])
['100.0 -100.0 100.0', '0.0 0.0 0.0']
"""
for message in batch: