This commit is contained in:
zhongchao
2022-03-11 20:04:11 +08:00
parent c804f5162d
commit 5886f4feb7
81 changed files with 1689 additions and 1095 deletions

View File

@@ -0,0 +1,17 @@
package com.mogo.eagle.core.function.api.autopilot
import mogo.telematics.pad.MessagePad
/**
* 工控机基础信息
*/
interface IMoGoAutopilotCarConfigListener {
/**
* 工控机基础信息
*
* @param carConfigResp 包括docker版本macAddress等基础信息详见proto
*/
fun onAutopilotCarConfig(carConfigResp: MessagePad.CarConfigResp)
}

View File

@@ -1,6 +1,6 @@
package com.mogo.eagle.core.function.api.autopilot
import com.mogo.eagle.core.data.autopilot.AutopilotCarStateInfo
import mogo.telematics.pad.MessagePad
/**
*@author xiaoyuzhou
@@ -12,7 +12,7 @@ interface IMoGoAutopilotCarStateListener {
/**
* 车辆状态&定位 数据
*
* @param autoPilotCarStateInfo
* @param gnssInfo
*/
fun onAutopilotCarStateData(autoPilotCarStateInfo: AutopilotCarStateInfo?)
fun onAutopilotCarStateData(gnssInfo: MessagePad.GnssInfo?)
}

View File

@@ -1,9 +1,7 @@
package com.mogo.eagle.core.function.api.autopilot
import com.mogo.eagle.core.data.autopilot.AutoPilotRecordResult
import com.mogo.eagle.core.data.autopilot.AutopilotWarnMessage
import com.mogo.eagle.core.data.traffic.TrafficData
import java.util.*
import mogo.telematics.pad.MessagePad
import record_cache.RecordPanelOuterClass
/**
* @author xiaoyuzhou
@@ -17,19 +15,18 @@ interface IMoGoAutopilotIdentifyListener {
*
* @param trafficData 交通元素信息列表
*/
fun onAutopilotIdentifyDataUpdate(trafficData: ArrayList<TrafficData>?) {}
fun onAutopilotIdentifyDataUpdate(trafficData: ArrayList<MessagePad.TrackedObject>?) {}
/**
* 报警信息
*
* @param autopilotWarnMessage 预警信息
* @param warn 预警信息
*/
fun onAutopilotWarnMessage(autopilotWarnMessage: AutopilotWarnMessage?) {}
fun onAutopilotWarnMessage(warn: MessagePad.Warn?) {}
/**
* 采集结果回调
*/
fun onAutopilotRecordResult(record: AutoPilotRecordResult?) {}
fun onAutopilotRecordResult(recordPanel: RecordPanelOuterClass.RecordPanel) {}
}

View File

@@ -1,7 +1,7 @@
package com.mogo.eagle.core.function.api.autopilot
import com.mogo.eagle.core.data.autopilot.ADASTrajectoryInfo
import com.mogo.eagle.core.data.autopilot.AutopilotRouteInfo
import mogo.telematics.pad.MessagePad
import java.util.ArrayList
/**
@@ -18,7 +18,7 @@ interface IMoGoAutopilotPlanningListener {
/**
* 2021/6/23 工控机经纬度 绘制时转成高德经纬度
*
* @param routeList 工控机全局规划路径
* @param globalPathResp 工控机全局规划路径
*/
fun onAutopilotRotting(routeList: AutopilotRouteInfo?)
fun onAutopilotRotting(globalPathResp: MessagePad.GlobalPathResp?)
}

View File

@@ -75,12 +75,6 @@ interface IMoGoAutopilotProvider : IMoGoFunctionServerProvider {
*/
fun setEnableLog(isEnableLog: Boolean)
/**
* Log 是否写入
*
* @param isWriteLog true-打开,false-关闭
*/
fun setIsWriteLog(isWriteLog: Boolean)
fun setAutoPilotSpeed(speed: Int): Boolean
/**

View File

@@ -1,8 +1,8 @@
package com.mogo.eagle.core.function.api.autopilot
import com.mogo.eagle.core.data.autopilot.AutopilotGuardianStatusInfo
import com.mogo.eagle.core.data.autopilot.AutopilotStationInfo
import com.mogo.eagle.core.data.autopilot.AutopilotStatusInfo
import mogo.telematics.pad.MessagePad
import mogo_msg.MogoReportMsg
/**
* @author xiaoyuzhou
@@ -16,24 +16,24 @@ interface IMoGoAutopilotStatusListener {
*
* @param autoPilotStatusInfo 状态信息
*/
fun onAutopilotStatusResponse(autoPilotStatusInfo: AutopilotStatusInfo){}
fun onAutopilotStatusResponse(autoPilotStatusInfo: AutopilotStatusInfo) {}
/**
* 自动驾驶到站
*
* @param autopilotWayArrive 所到车站的简单信息
* @param arrivalNotification 所到车站的简单信息
*/
fun onAutopilotArriveAtStation(autopilotWayArrive: AutopilotStationInfo?){}
fun onAutopilotArriveAtStation(arrivalNotification: MessagePad.ArrivalNotification?) {}
/**
* 工控机获取SN
*/
fun onAutopilotSNRequest(){}
fun onAutopilotSNRequest() {}
/**
* 工控机监控节点
*/
fun onAutopilotGuardian(guardianInfo: AutopilotGuardianStatusInfo?){}
fun onAutopilotGuardian(guardianInfo: MogoReportMsg.MogoReportMessage?) {}
companion object {

View File

@@ -0,0 +1,21 @@
package com.mogo.eagle.core.function.api.autopilot
import chassis.Chassis
/**
* 车辆底盘 数据 回调监听
*/
interface IMoGoAutopilotVehicleStateListener {
/**
* 车辆转向灯 数据
* @param lightSwitch
*/
fun onAutopilotLightSwitchData(lightSwitch: Chassis.LightSwitch?)
/**
* 车辆刹车灯 数据
* @param brakeLight
*/
fun onAutopilotBrakeLightData(brakeLight: Boolean)
}

View File

@@ -1,9 +1,9 @@
package com.mogo.eagle.core.function.api.devatools
import android.view.View
import com.mogo.eagle.core.data.autopilot.AutoPilotRecordResult
import com.mogo.eagle.core.data.deva.chain.ChainLogParam
import com.mogo.eagle.core.function.api.base.IMoGoFunctionServerProvider
import record_cache.RecordPanelOuterClass
/**
* 开发套件工具接口
@@ -32,5 +32,5 @@ interface IDevaToolsProvider : IMoGoFunctionServerProvider {
/**
* 当工控机回调时调用
*/
fun onReceiveBadCaseRecord(record: AutoPilotRecordResult)
fun onReceiveBadCaseRecord(record: RecordPanelOuterClass.RecordPanel)
}