From 1b89041375c11dda68e313b9dcf28922fd2235c1 Mon Sep 17 00:00:00 2001 From: felipecode Date: Tue, 5 Dec 2017 17:04:34 +0100 Subject: [PATCH] changed the used distance function --- PythonClient/benchmarks/benchmark.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PythonClient/benchmarks/benchmark.py b/PythonClient/benchmarks/benchmark.py index 48c08fab0..26d4b840c 100644 --- a/PythonClient/benchmarks/benchmark.py +++ b/PythonClient/benchmarks/benchmark.py @@ -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)