工控机PB文件 用于生成Java Bean
鹰眼自用PB文件放在单独文件夹(personal)目的是为了区分工控机PB还是自用PB
1. studio中*.proto文件中如果出现“Cannot resolve symbol 'xxxx'”提示
不影响正常编译,只影响美观以及无法在proto文件中跳转
1. setting> Languages & Frameworks>Protocol Buffers 取消选中Configure automatically
2. 点击加号选择proto文件所在路径(例如:\MoGoEagleEye\libraries\mogo-adas-data\src\main\proto) 点击OK
2. 遇到例如 MessagePad.Header 提示找不到的情况
不影响正常编译,只影响美观以及无法点击跳转
1. 选中mogo-adas-data
2. 点击Build> Make Moudle 'MoGoEagleEye.libraries.mogo-adas-data'
工控机透传OBU V2I PB转换
| 工控机原始PB文件 | 转换后鹰眼所用PB |
|---|---|
| obu_warning_event.proto | personal/obu_penetrate.proto、personal/obu_scene.proto |
| mogo_v2x.proto | personal/obu_base.proto |
PB需要转换精度的字段
MapMatchData
obu_scene.proto/MapMatchData/speedMaxLimit int32 转 double (0.02m/s 转 m/s)
obu_scene.proto/MapMatchData/speedMinLimit int32 转 double (0.02m/s 转 m/s)
SpatLight
obu_base.proto/SpatLight/countDown int32 转 double (0.1s 转 s)
obu_base.proto/SpatLight/suggestMaxSpeed int32 转 double (0.02m/s 转 m/s)
obu_base.proto/SpatLight/suggestMinSpeed int32 转 double (0.02m/s 转 m/s)
Participant
obu_base.proto/Participant/latitude int64 转 double (1e-7° 转 °)
obu_base.proto/Participant/longitude int64 转 double (1e-7° 转 °)
obu_base.proto/Participant/elevation int64 转 double (0.1m 转 m)
obu_base.proto/Participant/speed int64 转 double (0.02m/s 转 m/s)
obu_base.proto/Participant/heading int32 转 double (0.0125° 转 °)
AccFourAxes
obu_base.proto/AccFourAxes/accLng int32 转 double (0.01m/s2 转 m/s2)
obu_base.proto/AccFourAxes/accLat int32 转 double (0.01m/s2 转 m/s2)
obu_base.proto/AccFourAxes/accVert int32 转 double (0.02G 转 G)
obu_base.proto/AccFourAxes/accYaw int32 转 double (0.01°/s 转 °/s)
VehicleSize
obu_base.proto/VehicleSize/height int32 转 int32 (5cm 转 cm)
V2xWarning
obu_base.proto/V2xWarning/distance int32 转 double (0.01m 转 m)
RsiWarning
obu_base.proto/RsiWarning/speedMaxLimit int32 转 double (0.02m/s 转 m/s)
obu_base.proto/RsiWarning/speedMinLimit int32 转 double (0.02m/s 转 m/s)
obu_base.proto/RsiWarning/eventRadius int32 转 double (0.1m 转 m)
obu_base.proto/RsiWarning/distance int32 转 double (0.01m 转 m)
VerticalLLV
obu_base.proto/VerticalLLV/present/offset1 int32 转 double (0.1m 转 m)
obu_base.proto/VerticalLLV/present/offset2 int32 转 double (0.1m 转 m)
obu_base.proto/VerticalLLV/present/offset3 int32 转 double (0.1m 转 m)
obu_base.proto/VerticalLLV/present/offset4 int32 转 double (0.1m 转 m)
obu_base.proto/VerticalLLV/present/offset5 int32 转 double (0.1m 转 m)
obu_base.proto/VerticalLLV/present/offset6 int32 转 double (0.1m 转 m)
obu_base.proto/VerticalLLV/present/elevation int32 转 double (0.1m 转 m)
PositionLL1
obu_base.proto/PositionLL1/longitude int64 转 double (1e-7° 转 °)
obu_base.proto/PositionLL1/latitude int64 转 double (1e-7° 转 °)
PositionLL2
obu_base.proto/PositionLL2/longitude int64 转 double (1e-7° 转 °)
obu_base.proto/PositionLL2/latitude int64 转 double (1e-7° 转 °)
PositionLL3
obu_base.proto/PositionLL3/longitude int64 转 double (1e-7° 转 °)
obu_base.proto/PositionLL3/latitude int64 转 double (1e-7° 转 °)
PositionLL4
obu_base.proto/PositionLL4/longitude int64 转 double (1e-7° 转 °)
obu_base.proto/PositionLL4/latitude int64 转 double (1e-7° 转 °)
PositionLL5
obu_base.proto/PositionLL5/longitude int64 转 double (1e-7° 转 °)
obu_base.proto/PositionLL5/latitude int64 转 double (1e-7° 转 °)
PositionLL6
obu_base.proto/PositionLL6/longitude int64 转 double (1e-7° 转 °)
obu_base.proto/PositionLL6/latitude int64 转 double (1e-7° 转 °)
PositionLatLon
obu_base.proto/PositionLatLon/longitude int64 转 double (1e-7° 转 °)
obu_base.proto/PositionLatLon/latitude int64 转 double (1e-7° 转 °)