From a04300a62dbad943a281c270f86fdf9f7ed9c19b Mon Sep 17 00:00:00 2001 From: liujing Date: Wed, 29 Jun 2022 18:45:59 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=A4=E5=86=85=E6=A8=A1=E6=8B=9F=E5=AF=BC?= =?UTF-8?q?=E8=88=AA=E8=B7=AF=E7=BA=BF,=E5=B7=A5=E6=8E=A7=E6=9C=BA?= =?UTF-8?q?=E8=BF=94=E5=9B=9E=E6=95=B0=E6=8D=AE=E9=AA=8C=E8=AF=81,?= =?UTF-8?q?=E6=95=B0=E6=8D=AE=E4=B8=8D=E7=B2=BE=E7=A1=AE=E5=BE=85=E8=81=94?= =?UTF-8?q?=E8=B0=83,=E6=95=B0=E6=8D=AE=E5=8F=8D=E9=A6=88=E4=B8=8A?= =?UTF-8?q?=E7=BA=BF=E6=97=B6=E9=97=B47=E6=9C=88=E4=BB=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/res/layout/bus_base_fragment.xml | 41 ++++++++------- .../hmi/ui/setting/DebugSettingView.kt | 2 +- .../core/function/smp/AMapCustomView.java | 50 +------------------ 3 files changed, 25 insertions(+), 68 deletions(-) diff --git a/OCH/mogo-och-bus/src/main/res/layout/bus_base_fragment.xml b/OCH/mogo-och-bus/src/main/res/layout/bus_base_fragment.xml index 7ab295d950..a0ef277338 100644 --- a/OCH/mogo-och-bus/src/main/res/layout/bus_base_fragment.xml +++ b/OCH/mogo-och-bus/src/main/res/layout/bus_base_fragment.xml @@ -5,26 +5,31 @@ android:layout_width="match_parent" android:layout_height="match_parent" android:layout_marginTop="@dimen/dp_72"> - + - + + + + + + + + - trajectoryInfos) { - - } - - /** - * 根据全路径获取起始点和经停点进行导航路线绘制 - * 自动驾驶启动后获得数据,获取全路径的具体时间要进行路测 - * 室内某个bag包自动驾驶启动8s后返回 - */ - @Override - public void onAutopilotRotting(@org.jetbrains.annotations.Nullable MessagePad.GlobalPathResp globalPathResp) { - List list = globalPathResp.getWayPointsList(); - int minCount = 2; - if (list.size() >= minCount) { - Location sLocation = (Location) list.get(0); - Location eLocation = (Location) list.get(list.size() - 1); - mStartLatlng = new NaviLatLng(sLocation.getLongitude(), sLocation.getLatitude()); - mEndLatlng = new NaviLatLng(eLocation.getLongitude(), eLocation.getLatitude()); - sList.add(mStartLatlng); - eList.add(mEndLatlng); - for (int i = 1; i < list.size() - minCount; i++) { - Location wayLoc = (Location) list.get(i); - NaviLatLng way = new NaviLatLng(wayLoc.getLongitude(), wayLoc.getLatitude()); - mWayPointList.add(way); - } - } - int strategy = 0; - try { - //再次强调,最后一个参数为true时代表多路径,否则代表单路径 - strategy = mAMapNavi.strategyConvert(true, false, false, false, false); - } catch (Exception e) { - e.printStackTrace(); - } - Log.d(TAG, "calculateDriveRoute ADAS全局路径坐标:" + list.size() + "," + sList.toString() + "," + eList.toString() + "," + mWayPointList.toString()); - //指定路径绘制导航路线 - mAMapNavi.calculateDriveRoute(sList, eList, mWayPointList, strategy); - } }