# SuZhouAvp

停车场泊车     苏州 约等于（长春） AVP
https://protobuf.dev/getting-started/javatutorial/

protoc --java_out=app\src\main\java\ -I app\src\main\proto\  response.proto
protoc --java_out=app\src\main\java\ -I d:\WorkSpace\suzhouavp\app\src\main\proto\  response.proto

## websocket 订阅字典
var subDic = mapOf(
"/topic/vehicle" to "/avp/api/VL961/vehicle/1694264612474306561",//车辆位姿数据
"/topic/dataMerge" to "/avp/api/VL961/dataMerge",//感知目标物
"/topic/signal" to "/avp/api/VL961/signal",
"/topic/v2xStart" to "/avp/api/VL961/v2xStart",//v2x预警开始
"/topic/v2xEnd" to "/avp/api/VL961/v2xEnd",//v2x预警结束
"/topic/vehicleStatus" to "/avp/api/VL961/vehicleStatus",//联网车辆数据
"/topic/timeDelay" to "/avp/api/VL961/timeDelay",
"/topic/points" to "/avp/api/VL961/points",//停车位变更
"/topic/linePlaning" to "/avp/api/VL961/linePlaning",//全局路径发生切换
"/topic/partLine" to "/avp/api/VL961/partLine",// // 局部路径
"/topic/rsiEvent" to "/avp/api/VL961/rsiEvent",// rsi事件
)


## websocket回调字典
var dic = mapOf(
5231 to "/topic/vehicle",
5232 to "/topic/dataMerge",
5233 to "topic/signa",
5234 to "/topic/v2xStart",
5235 to "/topic/v2xEnd",
5236 to "/topic/vehicleStatus",
5237 to "/topic/timeDelay",
1 to "/topic/point",
52310 to "/topic/linePlaning",
52311 to "/topic/rsiEvent",
52312 to "/topic/partLine",
)

## 获取订单信息 getOrderData 后只有当avpStatus=3或5的时候需要路径规划

## 地锁
有四个状态 down(0, "已落下"),
up(1, "已升起"),
downing(2, "落下中"),
upping(3, "升起中"),
地锁状态变化时，会通过 /topic/parkingLockStatusChange 把状态发

## 问题
  全局没有是因为路径没有发生切换
  局部没有是因为路上没有障碍物，没有推送避障路线


