From 731e45bc6947036cfbac855a334e9f84118645d7 Mon Sep 17 00:00:00 2001 From: lixiaopeng Date: Mon, 29 Mar 2021 14:34:13 +0800 Subject: [PATCH] opt --- .../mogo/module/v2x/V2XServiceManager.java | 46 +++++++++---------- 1 file changed, 23 insertions(+), 23 deletions(-) diff --git a/modules/mogo-module-v2x/src/main/java/com/mogo/module/v2x/V2XServiceManager.java b/modules/mogo-module-v2x/src/main/java/com/mogo/module/v2x/V2XServiceManager.java index c3752530fe..a9b6683ea1 100644 --- a/modules/mogo-module-v2x/src/main/java/com/mogo/module/v2x/V2XServiceManager.java +++ b/modules/mogo-module-v2x/src/main/java/com/mogo/module/v2x/V2XServiceManager.java @@ -168,29 +168,29 @@ public class V2XServiceManager { List lonLats = new ArrayList<>(); // adas 每隔一秒传递的他车或行人数据 - MarkerServiceHandler.getApis().getAdasControllerApi().addAdasRecognizedDataCallback(resultList -> { - // 绘制近景识别到的车辆,行人和二轮车 TODO - AdasRecognizedResultDrawer.getInstance().renderAdasRecognizedResult( resultList ); - - //清理 - V2XServiceManager.getMoGoWarnPolylineManager().clearLine(); - - // 绘制连接线 TODO 来的是列表数据 -// V2XServiceManager.getMoGoWarnPolylineManager().drawableWarnPolyline(context, roadEventEntity); - - //更新数据 - for (ADASRecognizedResult result : resultList) { - MogoLatLng latLng = new MogoLatLng(result.lat, result.lon); - lonLats.add(latLng); - } - - IMogoPolyline mMogoPolyline = V2XServiceManager.getMoGoWarnPolylineManager().getMogoWarnPolyline(); - mMogoPolyline.setPoints(lonLats); - - } ); - - //绘制自车数据 liyz - MogoApisHandler.getInstance().getApis().getMapServiceApi().getSingletonLocationClient(mContext).getLastKnowLocation(); +// MarkerServiceHandler.getApis().getAdasControllerApi().addAdasRecognizedDataCallback(resultList -> { +// // 绘制近景识别到的车辆,行人和二轮车 TODO +// AdasRecognizedResultDrawer.getInstance().renderAdasRecognizedResult( resultList ); +// +// //清理 +// V2XServiceManager.getMoGoWarnPolylineManager().clearLine(); +// +// // 绘制连接线 TODO 来的是列表数据 +//// V2XServiceManager.getMoGoWarnPolylineManager().drawableWarnPolyline(context, roadEventEntity); +// +// //更新数据 +// for (ADASRecognizedResult result : resultList) { +// MogoLatLng latLng = new MogoLatLng(result.lat, result.lon); +// lonLats.add(latLng); +// } +// +// IMogoPolyline mMogoPolyline = V2XServiceManager.getMoGoWarnPolylineManager().getMogoWarnPolyline(); +// mMogoPolyline.setPoints(lonLats); +// +// } ); +// +// //绘制自车数据 liyz +// MogoApisHandler.getInstance().getApis().getMapServiceApi().getSingletonLocationClient(mContext).getLastKnowLocation(); } }