From f05a876a361696d4f570d3534e0b94a919e7dea0 Mon Sep 17 00:00:00 2001 From: Dominik Roth Date: Fri, 16 Sep 2022 11:49:48 +0200 Subject: [PATCH] Added note about cov ellipsoid rendering --- columbus/env.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/columbus/env.py b/columbus/env.py index 333bfc7..32f3e33 100644 --- a/columbus/env.py +++ b/columbus/env.py @@ -294,6 +294,9 @@ class ColumbusEnv(gym.Env): self.joystick_offset[0], 20+int(60*y)+self.joystick_offset[1]), 20, width=0) def _draw_confidence_ellipse(self, chol, forceDraw=False, seconds=1): + # The 'seconds'-parameter only really makes sense, when using control_type='SPEED', + # you can still use it to scale the cov-ellipse when using control_type='ACC', + # but it's relation to 'seconds' is no longer there... if self.draw_confidence_ellipse and (self.visible or forceDraw): col = (255, 255, 255) f = seconds/self.speed_fac