From 9cc08f09af3bd1dd7422c744c6cb4f96ff553deb Mon Sep 17 00:00:00 2001 From: Ruben van de Ven Date: Fri, 16 May 2025 14:48:27 +0200 Subject: [PATCH] explain a bit --- trap/stage.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/trap/stage.py b/trap/stage.py index d00f547..14eedf9 100644 --- a/trap/stage.py +++ b/trap/stage.py @@ -89,7 +89,7 @@ class AppendableLine(LineGenerator): self._drawn_points[-1] = (float(x), float(y)) class ProceduralChain(LineGenerator): - MOVE_DECAY_SPEED = 50 + MOVE_DECAY_SPEED = 80 # speed at which the drawing head should approach the next point VELOCITY_DAMPING = 10 VELOCITY_FACTOR = 2 link_size = .1 # 10cm @@ -456,10 +456,10 @@ class DrawnScenario(TrackScenario): DrawnScenario class does the actual drawing of points incl. transitions """ - ANOMALY_DECAY = .2 - DISTANCE_ANOMALY_FACTOR = .05 - MAX_HISTORY = 80 - CUT_GAP = 5 + ANOMALY_DECAY = .2 # speed with which the cirlce shrinks over time + DISTANCE_ANOMALY_FACTOR = .05 # the ammount to which the difference counts to the anomaly score + MAX_HISTORY = 80 # points of history of trajectory to display (preventing too long lines) + CUT_GAP = 5 # when adding a new prediction, keep the existing prediction until that point + this CUT_GAP margin def __init__(self): # self.created_at = time.time()