changed the used distance function

This commit is contained in:
felipecode 2017-12-05 17:04:34 +01:00
parent 5406d5f0eb
commit 1b89041375
1 changed files with 1 additions and 1 deletions

View File

@ -6,7 +6,7 @@ except ImportError:
raise RuntimeError('cannot import "carla_server_pb2.py", run the protobuf compiler to generate this file')
import json, csv, time
import json, csv, time, math
sldist = lambda c1, c2: math.sqrt((c2[0] - c1[0])**2 + (c2[1] - c1[1])**2)