Add timeout to manual_control.py

This commit is contained in:
nsubiron 2018-09-30 10:47:24 +02:00
parent 0b38510f8f
commit b9a6ad659c
1 changed files with 1 additions and 0 deletions

View File

@ -71,6 +71,7 @@ CAMERA_POSITION = carla.Transform(carla.Location(x=0.5, z=1.40))
class CarlaGame(object):
def __init__(self, args):
self._client = carla.Client(args.host, args.port)
self._client.set_timeout(2.0)
self._display = None
self._surface = None
self._camera = None