From 23a7d1cf8bf30b10a130c054ccc9d519433ee97a Mon Sep 17 00:00:00 2001 From: Piv <18462828+Piv200@users.noreply.github.com> Date: Mon, 20 Jan 2020 21:33:56 +1030 Subject: [PATCH] Add stub algorithm to control car with lidar --- persontracking/algorithms.py | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/persontracking/algorithms.py b/persontracking/algorithms.py index a968b14..8c1461a 100644 --- a/persontracking/algorithms.py +++ b/persontracking/algorithms.py @@ -104,4 +104,12 @@ def assign_groups(prev_groups, new_groups): if ((new_centre[0] - old_centre[0]) ** 2 + (new_centre[1] - old_centre[1]) ** 2) < 50 ** 2: new_group.set_number(group.get_number()) - return new_groups \ No newline at end of file + return new_groups + +def updateCarVelocity(oldGroup, newGroup): + ''' + Return a tuple (throttleChange, steeringChange) that should be + applied given the change in the centre of the groups. + ''' + + pass \ No newline at end of file