From 243d046992e247c49ed020142c2e9199058457e8 Mon Sep 17 00:00:00 2001 From: Martins Mozeiko Date: Fri, 6 Sep 2019 12:59:23 -0700 Subject: [PATCH] Visualize ground truth bounding boxes also when bridge is not connected --- Assets/Scripts/Sensors/GroundTruth2DSensor.cs | 6 +++--- Assets/Scripts/Sensors/GroundTruth3DSensor.cs | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/Assets/Scripts/Sensors/GroundTruth2DSensor.cs b/Assets/Scripts/Sensors/GroundTruth2DSensor.cs index aba2f90f5..8082a77c0 100644 --- a/Assets/Scripts/Sensors/GroundTruth2DSensor.cs +++ b/Assets/Scripts/Sensors/GroundTruth2DSensor.cs @@ -134,10 +134,10 @@ private void Update() Sequence = seqId++, Data = Detected.Values.ToArray(), }); - - Visualized = Detected.Values.ToArray(); - Detected.Clear(); } + + Visualized = Detected.Values.ToArray(); + Detected.Clear(); } Vector4 CalculateDetectedRect(Vector3 cen, Vector3 ext, Quaternion rotation) diff --git a/Assets/Scripts/Sensors/GroundTruth3DSensor.cs b/Assets/Scripts/Sensors/GroundTruth3DSensor.cs index ca3e29818..50bfbea5f 100644 --- a/Assets/Scripts/Sensors/GroundTruth3DSensor.cs +++ b/Assets/Scripts/Sensors/GroundTruth3DSensor.cs @@ -67,10 +67,10 @@ void Update() Sequence = seqId++, Data = Detected.Values.ToArray(), }); - - Visualized = Detected.Keys.ToArray(); - Detected.Clear(); } + + Visualized = Detected.Keys.ToArray(); + Detected.Clear(); } public override void OnBridgeSetup(IBridge bridge)