From 32c26e73f96f3bb6f4391015dca3ea5616252fb4 Mon Sep 17 00:00:00 2001 From: renwj Date: Mon, 26 Sep 2022 16:41:34 +0800 Subject: [PATCH] =?UTF-8?q?[V2X][Road]=E4=BC=98=E5=8C=96=E4=BB=A3=E7=A0=81?= =?UTF-8?q?=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../v2x/events/scenario/scene/airoad/AiRoadMarker.kt | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/core/function-impl/mogo-core-function-v2x/src/main/java/com/mogo/eagle/core/function/v2x/events/scenario/scene/airoad/AiRoadMarker.kt b/core/function-impl/mogo-core-function-v2x/src/main/java/com/mogo/eagle/core/function/v2x/events/scenario/scene/airoad/AiRoadMarker.kt index 411ab19fa7..fbd569d4c4 100644 --- a/core/function-impl/mogo-core-function-v2x/src/main/java/com/mogo/eagle/core/function/v2x/events/scenario/scene/airoad/AiRoadMarker.kt +++ b/core/function-impl/mogo-core-function-v2x/src/main/java/com/mogo/eagle/core/function/v2x/events/scenario/scene/airoad/AiRoadMarker.kt @@ -36,10 +36,6 @@ object AiRoadMarker { private val marker by lazy { AtomicReference() } - private val curStopLine by lazy { AtomicReference() } - - private val lastStopLine by lazy { AtomicReference() } - private val carLocation by lazy { AtomicReference>() } private val overlayManager by lazy { MogoOverlayManager.getInstance() } @@ -130,14 +126,12 @@ object AiRoadMarker { if (oldRoadId != roadId) { if (hasCrossRoad) { hasCrossRoad = false - lastStopLine.set(curStopLine.get()) } } this.roadId = roadId } override fun onStopLineInfo(info: StopLine) { Logger.d(TAG, "--- onStopLineInfo --- info: $info") - curStopLine.set(info) if (!hasCrossRoad) { hasCrossRoad = true } @@ -190,6 +184,7 @@ object AiRoadMarker { CallerMapRoadListenerManager.unRegisterRoadListener(TAG) CallerMapLocationListenerManager.removeListener(TAG) pool.shutdownNow() + removeRedLine() }