diff --git a/pycar/src/car/tracking/algorithms.py b/pycar/src/car/tracking/algorithms.py index 8f4df7a..13652e0 100644 --- a/pycar/src/car/tracking/algorithms.py +++ b/pycar/src/car/tracking/algorithms.py @@ -1,4 +1,5 @@ import math +import numpy as np class Group: @@ -134,6 +135,17 @@ def calc_groups(scan): return allGroups +def calc_groups_edge_algorithm(scan): + """ + Calculates groups using an edge algorithm. This takes advantage of numpy arrays + and vectorisation, rather than the primitive python loop grouping, resulting in + faster grouping speeds. + """ + allGroups = [] + scanArray = np.array(scan) + +def edge_algorithm(): + pass def find_centre(group): """