[6.5.0][道路事件] 优化道路施工占道决策判断逻辑

This commit is contained in:
renwj
2024-07-23 13:51:41 +08:00
parent e160951472
commit 37ddb325dc

View File

@@ -22,7 +22,7 @@ object V2NUtils {
fun computeOccupyLanesInfo(car: Triple<Double, Double, Float>, point: Triple<Double, Double, Float> ,polygon: List<Pair<Double, Double>>): Decision? {
val roadInfo = MapDataWrapper.getRoadInfo(point.first, point.second, point.third)
Log.d(TAG, "road_info:$roadInfo")
val lanes = MapDataWrapper.getLaneInfo(roadInfo.tileId, roadInfo.roadId).sortedByDescending { it.id }
val lanes = MapDataWrapper.getLaneInfo(roadInfo.tileId, roadInfo.roadId).sortedBy { it.id }
Log.d(TAG, "lanes: ${lanes.joinToString(",") { itx -> itx.points.joinToString(",") { "${it.first}, ${it.second}" } } }")
if (lanes.isEmpty()) {
return null