[8.0.0][opt]调整预测的数据和绘制逻辑
This commit is contained in:
@@ -7,6 +7,7 @@ import com.mogo.map.overlay.proxy.point.IMapPointOverlay
|
||||
import com.mogo.map.overlay.proxy.line.IMapPolylineOverlay
|
||||
import mogo.telematics.pad.MessagePad.TrackedObject
|
||||
import mogo.yycp.api.proto.SocketDownData
|
||||
import prediction2025.Prediction2025
|
||||
import java.util.HashMap
|
||||
|
||||
/**
|
||||
@@ -51,6 +52,8 @@ interface IMogoMap {
|
||||
*/
|
||||
fun updateBatchAiMarkerPosition(optionsArrayList: HashMap<String, SocketDownData.CloudRoadDataProto>?)
|
||||
|
||||
fun updatePreMarkerPosition(optionsArrayList: HashMap<String, Prediction2025.mPredictionObjectApp>?)
|
||||
|
||||
/**
|
||||
* 添加感知使用到的3d模型
|
||||
*
|
||||
@@ -65,4 +68,6 @@ interface IMogoMap {
|
||||
* @param uuidString
|
||||
*/
|
||||
fun removeMarker(uuidString: String?)
|
||||
|
||||
fun switchData(x: Double, y: Double, isWgs84: Boolean): DoubleArray?
|
||||
}
|
||||
@@ -1,8 +1,10 @@
|
||||
package com.mogo.map.identity
|
||||
|
||||
import com.mogo.eagle.core.data.map.MogoLocation
|
||||
import com.mogo.map.MogoMap
|
||||
import mogo.telematics.pad.MessagePad.TrackedObject
|
||||
import mogo.yycp.api.proto.SocketDownData
|
||||
import prediction2025.Prediction2025
|
||||
import java.util.HashMap
|
||||
|
||||
/**
|
||||
@@ -29,4 +31,15 @@ interface IMogoIdentifyManager {
|
||||
* @param optionsArrayList 锚点集合
|
||||
*/
|
||||
fun updateBatchAiMarkerPosition(optionsArrayList: HashMap<String, SocketDownData.CloudRoadDataProto>, mapInstance:String = MogoMap.DEFAULT)
|
||||
|
||||
/**
|
||||
* 批量更新预测数据对应的锚点位置
|
||||
*
|
||||
* @param optionsArrayList 锚点集合
|
||||
*/
|
||||
fun updatePreMarkerPosition(optionsArrayList: HashMap<String, Prediction2025.mPredictionObjectApp>, mapInstance:String)
|
||||
|
||||
fun updateGps(gnssInfo: MogoLocation, mapInstance: String)
|
||||
|
||||
fun updateUTM(carX: Double, carY: Double, preX: Double, preY: Double, mapInstance: String)
|
||||
}
|
||||
@@ -219,6 +219,7 @@ data class Polyline(val id: String, val owner: String, val level: Level, val opt
|
||||
}
|
||||
|
||||
private fun str2Int(tag: String): Int {
|
||||
if (tag.isEmpty()) return 0
|
||||
var sum = 0
|
||||
for (c in tag) {
|
||||
sum += c.code
|
||||
|
||||
Reference in New Issue
Block a user