[6.8.0]
1、Routing增加黑名单点的传入。 2、sendTrajectoryDownloadReq增加注释 3、增加TODO 需要 亚坤补齐
This commit is contained in:
@@ -597,6 +597,11 @@ class DriverM1Model {
|
||||
parameters.endLatLon =
|
||||
AutopilotControlParameters.AutoPilotLonLat(mCurrentOrder?.wgs84Lat!!, mCurrentOrder?.wgs84Lon!!)
|
||||
parameters.vehicleType = VEHICLE_TYPE
|
||||
|
||||
// TODO 这里需要增加传入 白名单点列表、黑名单点列表,顺序按照服务端传入顺序为准。
|
||||
//parameters.wayLatLons
|
||||
//parameters.blackLatLons
|
||||
|
||||
if (parameters.autoPilotLine == null) {
|
||||
parameters.autoPilotLine = AutopilotControlParameters.AutoPilotLine(
|
||||
mCurrentOrder!!.lineId.toLong(), mCurrentOrder!!.lineName,
|
||||
|
||||
@@ -1190,6 +1190,11 @@ object CharterPassengerModel {
|
||||
parameters.endName = PinYinUtil.getPinYinHeadChar(orderInfo.siteName)
|
||||
parameters.startLatLon = AutoPilotLonLat(startWgsLat, startWgsLon)
|
||||
parameters.endLatLon = AutoPilotLonLat(endWgsLat, endWgsLon)
|
||||
|
||||
// TODO 这里需要增加传入 白名单点列表、黑名单点列表,顺序按照服务端传入顺序为准。
|
||||
//parameters.wayLatLons
|
||||
//parameters.blackLatLons
|
||||
|
||||
locusInfo?.let { locus ->
|
||||
if (parameters.autoPilotLine == null) {
|
||||
parameters.autoPilotLine = AutoPilotLine(
|
||||
|
||||
@@ -1013,6 +1013,11 @@ public class TaxiModel {
|
||||
parameters.endName = PinYinUtil.getPinYinHeadChar(mCurrentOCHOrder.endSiteAddr); // 终点名称拼音首字母大写:科学城C区三号门(KXCCQSHM)
|
||||
parameters.startLatLon = new AutopilotControlParameters.AutoPilotLonLat(startWgsLat, startWgsLon);
|
||||
parameters.endLatLon = new AutopilotControlParameters.AutoPilotLonLat(endWgsLat, endWgsLon);
|
||||
|
||||
// TODO 这里需要增加传入 白名单点列表、黑名单点列表,顺序按照服务端传入顺序为准。
|
||||
//parameters.wayLatLons
|
||||
//parameters.blackLatLons
|
||||
|
||||
if (parameters.autoPilotLine == null) {
|
||||
parameters.autoPilotLine = new AutopilotControlParameters.AutoPilotLine(
|
||||
mCurrentOCHOrder.lineId, mCurrentOCHOrder.lineName,
|
||||
|
||||
@@ -161,6 +161,11 @@ object AutopilotManager : IOchAutopilotStatusListener {
|
||||
parameters.startLatLon =
|
||||
AutopilotControlParameters.AutoPilotLonLat(startWgsLat, startWgsLon)
|
||||
parameters.endLatLon = AutopilotControlParameters.AutoPilotLonLat(endWgsLat, endWgsLon)
|
||||
|
||||
// TODO 这里需要增加传入 白名单点列表、黑名单点列表,顺序按照服务端传入顺序为准。
|
||||
//parameters.wayLatLons
|
||||
//parameters.blackLatLons
|
||||
|
||||
if (parameters.autoPilotLine == null) {
|
||||
parameters.autoPilotLine = AutopilotControlParameters.AutoPilotLine(
|
||||
TaxiPassengerModel.currentOCHOrder!!.lineId,
|
||||
|
||||
@@ -1288,6 +1288,11 @@ object TaxiTaskModel {
|
||||
parameters.startLatLon =
|
||||
AutopilotControlParameters.AutoPilotLonLat(startWgsLat, startWgsLon)
|
||||
parameters.endLatLon = AutopilotControlParameters.AutoPilotLonLat(endWgsLat, endWgsLon)
|
||||
|
||||
// TODO 这里需要增加传入 白名单点列表、黑名单点列表,顺序按照服务端传入顺序为准。
|
||||
//parameters.wayLatLons
|
||||
//parameters.blackLatLons
|
||||
|
||||
if (parameters.autoPilotLine == null) {
|
||||
parameters.autoPilotLine = AutopilotControlParameters.AutoPilotLine(
|
||||
mCurrentTaskTrajectory!!.lineId,
|
||||
|
||||
@@ -153,6 +153,11 @@ object AutopilotManager : IOchAutopilotStatusListener {
|
||||
parameters.startLatLon =
|
||||
AutopilotControlParameters.AutoPilotLonLat(startWgsLat, startWgsLon)
|
||||
parameters.endLatLon = AutopilotControlParameters.AutoPilotLonLat(endWgsLat, endWgsLon)
|
||||
|
||||
// TODO 这里需要增加传入 白名单点列表、黑名单点列表,顺序按照服务端传入顺序为准。
|
||||
//parameters.wayLatLons
|
||||
//parameters.blackLatLons
|
||||
|
||||
if (parameters.autoPilotLine == null) {
|
||||
if (TaxiPassengerModel.currentLineId != null
|
||||
&& TaxiPassengerModel.currentTrajectoryInfo != null
|
||||
|
||||
@@ -43,12 +43,20 @@ fun AutopilotControlParameters.toRouteInfo(): MessagePad.RouteInfo {
|
||||
endLoc.latitude = it.lat
|
||||
endLoc.longitude = it.lon
|
||||
}
|
||||
// Routing算路白名单点赋值
|
||||
this.wayLatLons?.forEach {
|
||||
val locBuilder = MessagePad.Location.newBuilder()
|
||||
locBuilder.latitude = it.lat
|
||||
locBuilder.longitude = it.lon
|
||||
routeInfo.addWayPoints(locBuilder.build())
|
||||
}
|
||||
// Routing算路黑名单点赋值
|
||||
this.blackLatLons?.forEach {
|
||||
val locBuilder = MessagePad.Location.newBuilder()
|
||||
locBuilder.latitude = it.lat
|
||||
locBuilder.longitude = it.lon
|
||||
routeInfo.addBlackPoints(locBuilder.build())
|
||||
}
|
||||
if (this.routeID > 0) {
|
||||
routeInfo.routeID = this.routeID
|
||||
}
|
||||
@@ -61,7 +69,7 @@ fun AutopilotControlParameters.toRouteInfo(): MessagePad.RouteInfo {
|
||||
routeInfo.startLocation = startLoc.build()
|
||||
routeInfo.endLocation = endLoc.build()
|
||||
|
||||
//20240523 用于表示判断是否是站点下单。默认false:起点下单,接管下单; true: 中间站点下单
|
||||
// TODO 20240523 用于表示判断是否是站点下单。默认false:起点下单,接管下单; true: 中间站点下单
|
||||
//routeInfo.isStation = false
|
||||
|
||||
val line = MessagePad.Line.newBuilder()
|
||||
@@ -121,6 +129,7 @@ class AutopilotControlParameters {
|
||||
@JvmField
|
||||
var startLatLon: AutoPilotLonLat? = null
|
||||
|
||||
// Bus 需要将中间站点填充进去(运营平台完成此步骤)
|
||||
@JvmField
|
||||
var wayLatLons: List<AutoPilotLonLat>? = null // Routing 给算路引擎使用的经停点列表,不是真正的要停车
|
||||
|
||||
|
||||
@@ -57,6 +57,9 @@ interface IMoGoAutopilotControlProvider : IMoGoFunctionServerProvider {
|
||||
|
||||
/**
|
||||
* 发送 轨迹下载请求
|
||||
*
|
||||
* @param autoPilotLine 线路相关参数详情见PB message_pad.proto -> Line
|
||||
* @param routeInfo 20240523 进行自动算路,务必下单时候携带自动驾驶路径信息,否则可不填!
|
||||
*/
|
||||
fun sendTrajectoryDownloadReq(autoPilotLine: AutopilotControlParameters.AutoPilotLine, routeInfo: MessagePad.RouteInfo?)
|
||||
|
||||
|
||||
@@ -204,7 +204,7 @@ object CallerAutoPilotControlManager {
|
||||
}
|
||||
|
||||
/**
|
||||
* 发送 轨迹下载请求
|
||||
* 发送 轨迹下载请求。带有Routing的参数,让MAP进行离线算路。
|
||||
*/
|
||||
fun sendTrajectoryDownloadReq(autopilotControlParameters: AutopilotControlParameters) {
|
||||
if (AppIdentityModeUtils.isDriver(FunctionBuildConfig.appIdentityMode)) {
|
||||
@@ -216,6 +216,7 @@ object CallerAutoPilotControlManager {
|
||||
|
||||
/**
|
||||
* 发送 轨迹下载请求
|
||||
* @param autoPilotLine 启动算路参数
|
||||
*/
|
||||
fun sendTrajectoryDownloadReq(autoPilotLine: AutopilotControlParameters.AutoPilotLine) {
|
||||
if (AppIdentityModeUtils.isDriver(FunctionBuildConfig.appIdentityMode)) {
|
||||
|
||||
Reference in New Issue
Block a user