From 712505b4688f108b7cbc16ad297f19a73d30c579 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=91=A3=E5=AE=8F=E5=AE=87?= Date: Wed, 28 Oct 2020 14:33:27 +0800 Subject: [PATCH 1/9] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E8=87=AA=E7=A0=94?= =?UTF-8?q?=E5=9C=B0=E5=9B=BESDK?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- libraries/map-custom/build.gradle | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/map-custom/build.gradle b/libraries/map-custom/build.gradle index 56e4020d79..b542142f9d 100644 --- a/libraries/map-custom/build.gradle +++ b/libraries/map-custom/build.gradle @@ -55,7 +55,7 @@ dependencies { implementation project(':foudations:mogo-commons') } - implementation 'com.zhidaoauto.machine:map:1.0.0-online-19' + implementation 'com.zhidaoauto.machine:map:1.0.0-online-21' } apply from: new File(rootProject.rootDir, "gradle/upload.gradle").toString() From 90df6a0c182de5fb114ba56a2bc309bf8502e2fc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=91=A3=E5=AE=8F=E5=AE=87?= Date: Wed, 28 Oct 2020 15:22:05 +0800 Subject: [PATCH 2/9] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E4=BA=86=E6=A8=A1?= =?UTF-8?q?=E6=8B=9F=E6=95=B0=E6=8D=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...nario_push_vr_event_data_double_flash.json | 19 - ...cenario_push_vr_event_data_shuangshan.json | 821 ++++++++++++++++++ .../scenario_push_vr_event_data_yongdu.json | 821 ++++++++++++++++++ 3 files changed, 1642 insertions(+), 19 deletions(-) delete mode 100644 modules/mogo-module-v2x/src/main/res/raw/scenario_push_vr_event_data_double_flash.json create mode 100644 modules/mogo-module-v2x/src/main/res/raw/scenario_push_vr_event_data_shuangshan.json create mode 100644 modules/mogo-module-v2x/src/main/res/raw/scenario_push_vr_event_data_yongdu.json diff --git a/modules/mogo-module-v2x/src/main/res/raw/scenario_push_vr_event_data_double_flash.json b/modules/mogo-module-v2x/src/main/res/raw/scenario_push_vr_event_data_double_flash.json deleted file mode 100644 index 29a2457283..0000000000 --- a/modules/mogo-module-v2x/src/main/res/raw/scenario_push_vr_event_data_double_flash.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "sceneId": "200001", - "alarmContent": "发现前方双闪车辆注意绕行", - "expireTime": 30000, - "sceneCategory": 0, - "sceneDescription": "双闪车辆,自动绕行", - "sceneName": "双闪车辆,自动绕行", - "sceneLevel": 0, - "videoUrl": "", - "videoChannel": "", - "videoSn": "", - "tts": "发现前方双闪车辆注意绕行", - "zoom":false, - "zoomScale": 15, - "lat": 39.968678, - "lon": 116.405467, - "userHead": "", - "msgImgUrl": "" -} \ No newline at end of file diff --git a/modules/mogo-module-v2x/src/main/res/raw/scenario_push_vr_event_data_shuangshan.json b/modules/mogo-module-v2x/src/main/res/raw/scenario_push_vr_event_data_shuangshan.json new file mode 100644 index 0000000000..878b662ecc --- /dev/null +++ b/modules/mogo-module-v2x/src/main/res/raw/scenario_push_vr_event_data_shuangshan.json @@ -0,0 +1,821 @@ +{ + "sceneId": "200008", + "alarmContent": "拥堵路线推荐", + "expireTime": 30000, + "sceneCategory": 0, + "sceneDescription": "拥堵路线推荐", + "sceneName": "拥堵路线推荐", + "sceneLevel": 0, + "videoUrl": "", + "videoChannel": "", + "videoSn": "", + "tts": "发现前方拥堵,最优路线快6分钟", + "zoom": false, + "zoomScale": 15, + "userHead": "", + "msgImgUrl": "", + "lat": 40.195246, + "lon": 116.728154, + "polyline": [ + [ + 116.737779, + 40.196461 + ], + [ + 116.737689, + 40.196462 + ], + [ + 116.737545, + 40.196464 + ], + [ + 116.737396, + 40.196465 + ], + [ + 116.737215, + 40.196466 + ], + [ + 116.737064, + 40.196467 + ], + [ + 116.736875, + 40.196468 + ], + [ + 116.736744, + 40.196468 + ], + [ + 116.736602, + 40.196469 + ], + [ + 116.736458, + 40.19647 + ], + [ + 116.736304, + 40.196471 + ], + [ + 116.736175, + 40.196472 + ], + [ + 116.736044, + 40.196472 + ], + [ + 116.735883, + 40.196473 + ], + [ + 116.735228, + 40.196477 + ], + [ + 116.735117, + 40.196478 + ], + [ + 116.734994, + 40.196478 + ], + [ + 116.734878, + 40.196479 + ], + [ + 116.734748, + 40.19648 + ], + [ + 116.734636, + 40.196481 + ], + [ + 116.734557, + 40.196481 + ], + [ + 116.734472, + 40.196481 + ], + [ + 116.734392, + 40.196482 + ], + [ + 116.734293, + 40.196482 + ], + [ + 116.734226, + 40.196482 + ], + [ + 116.734138, + 40.196483 + ], + [ + 116.733983, + 40.196484 + ], + [ + 116.733862, + 40.196485 + ], + [ + 116.733725, + 40.196486 + ], + [ + 116.7336, + 40.196486 + ], + [ + 116.733432, + 40.196485 + ], + [ + 116.733331, + 40.196484 + ], + [ + 116.733259, + 40.196482 + ], + [ + 116.733173, + 40.19648 + ], + [ + 116.733106, + 40.196477 + ], + [ + 116.733002, + 40.196471 + ], + [ + 116.732923, + 40.196467 + ], + [ + 116.73282, + 40.196459 + ], + [ + 116.732724, + 40.19645 + ], + [ + 116.73263, + 40.196441 + ], + [ + 116.732529, + 40.19643 + ], + [ + 116.732431, + 40.196419 + ], + [ + 116.732376, + 40.196413 + ], + [ + 116.732295, + 40.196403 + ], + [ + 116.732215, + 40.196391 + ], + [ + 116.732154, + 40.196382 + ], + [ + 116.732076, + 40.196371 + ], + [ + 116.731991, + 40.196356 + ], + [ + 116.731927, + 40.196345 + ], + [ + 116.731847, + 40.19633 + ], + [ + 116.73177, + 40.196316 + ], + [ + 116.731728, + 40.196307 + ], + [ + 116.731664, + 40.196294 + ], + [ + 116.731571, + 40.196274 + ], + [ + 116.731509, + 40.19626 + ], + [ + 116.731435, + 40.196244 + ], + [ + 116.731357, + 40.196224 + ], + [ + 116.7313, + 40.196211 + ], + [ + 116.731226, + 40.196191 + ], + [ + 116.731148, + 40.196171 + ], + [ + 116.731076, + 40.19615 + ], + [ + 116.731016, + 40.196133 + ], + [ + 116.730949, + 40.196113 + ], + [ + 116.730892, + 40.196096 + ], + [ + 116.730827, + 40.196075 + ], + [ + 116.730761, + 40.196053 + ], + [ + 116.730675, + 40.196025 + ], + [ + 116.730616, + 40.196005 + ], + [ + 116.730549, + 40.195981 + ], + [ + 116.730353, + 40.195908 + ], + [ + 116.730214, + 40.195852 + ], + [ + 116.730081, + 40.195798 + ], + [ + 116.729945, + 40.195742 + ], + [ + 116.729836, + 40.195699 + ], + [ + 116.729727, + 40.195659 + ], + [ + 116.729611, + 40.195616 + ], + [ + 116.729486, + 40.195572 + ], + [ + 116.72935, + 40.195529 + ], + [ + 116.729181, + 40.195479 + ], + [ + 116.729013, + 40.195434 + ], + [ + 116.728924, + 40.195412 + ], + [ + 116.72877, + 40.195374 + ], + [ + 116.728622, + 40.195341 + ], + [ + 116.728469, + 40.195308 + ], + [ + 116.728325, + 40.195281 + ], + [ + 116.728174, + 40.195254 + ], + [ + 116.728018, + 40.195229 + ], + [ + 116.727794, + 40.1952 + ], + [ + 116.727599, + 40.195179 + ], + [ + 116.727432, + 40.195165 + ], + [ + 116.727299, + 40.195156 + ], + [ + 116.727073, + 40.195145 + ], + [ + 116.72695, + 40.195142 + ], + [ + 116.726733, + 40.195139 + ], + [ + 116.726488, + 40.19514 + ], + [ + 116.726312, + 40.195141 + ], + [ + 116.726115, + 40.195143 + ], + [ + 116.725869, + 40.195148 + ], + [ + 116.725651, + 40.195155 + ], + [ + 116.72537, + 40.195161 + ], + [ + 116.725188, + 40.195163 + ], + [ + 116.725092, + 40.195162 + ], + [ + 116.725091, + 40.195123 + ], + [ + 116.725335, + 40.195123 + ], + [ + 116.725499, + 40.195123 + ], + [ + 116.72602, + 40.195109 + ], + [ + 116.726235, + 40.195106 + ], + [ + 116.726424, + 40.195105 + ], + [ + 116.726658, + 40.195104 + ], + [ + 116.726733, + 40.195105 + ], + [ + 116.72688, + 40.195106 + ], + [ + 116.72704, + 40.195109 + ], + [ + 116.727217, + 40.195115 + ], + [ + 116.727388, + 40.195124 + ], + [ + 116.727562, + 40.195136 + ], + [ + 116.727735, + 40.195155 + ], + [ + 116.727887, + 40.195174 + ], + [ + 116.727979, + 40.195186 + ], + [ + 116.728056, + 40.195198 + ], + [ + 116.728165, + 40.195216 + ], + [ + 116.728237, + 40.195228 + ], + [ + 116.728345, + 40.195247 + ], + [ + 116.728411, + 40.19526 + ], + [ + 116.728533, + 40.195283 + ], + [ + 116.728589, + 40.195295 + ], + [ + 116.728694, + 40.195318 + ], + [ + 116.728761, + 40.195334 + ], + [ + 116.728868, + 40.19536 + ], + [ + 116.728918, + 40.195372 + ], + [ + 116.729088, + 40.195416 + ], + [ + 116.729262, + 40.195462 + ], + [ + 116.729424, + 40.195512 + ], + [ + 116.729547, + 40.195553 + ], + [ + 116.729584, + 40.195566 + ], + [ + 116.729692, + 40.195606 + ], + [ + 116.729739, + 40.195624 + ], + [ + 116.729844, + 40.195661 + ], + [ + 116.730011, + 40.195726 + ], + [ + 116.73014, + 40.195778 + ], + [ + 116.730309, + 40.195849 + ], + [ + 116.730467, + 40.195911 + ], + [ + 116.730608, + 40.195962 + ], + [ + 116.730673, + 40.195984 + ], + [ + 116.730766, + 40.196015 + ], + [ + 116.730831, + 40.196036 + ], + [ + 116.730935, + 40.196069 + ], + [ + 116.730993, + 40.196087 + ], + [ + 116.731086, + 40.196113 + ], + [ + 116.731164, + 40.196135 + ], + [ + 116.731285, + 40.196165 + ], + [ + 116.731315, + 40.196173 + ], + [ + 116.731434, + 40.196202 + ], + [ + 116.731486, + 40.196214 + ], + [ + 116.731586, + 40.196238 + ], + [ + 116.731652, + 40.196253 + ], + [ + 116.731749, + 40.196273 + ], + [ + 116.731818, + 40.196287 + ], + [ + 116.731924, + 40.196305 + ], + [ + 116.731991, + 40.196317 + ], + [ + 116.732108, + 40.196336 + ], + [ + 116.732269, + 40.196361 + ], + [ + 116.732333, + 40.19637 + ], + [ + 116.732464, + 40.196385 + ], + [ + 116.732507, + 40.19639 + ], + [ + 116.732628, + 40.196404 + ], + [ + 116.732678, + 40.196409 + ], + [ + 116.732784, + 40.196418 + ], + [ + 116.732851, + 40.196424 + ], + [ + 116.732985, + 40.196433 + ], + [ + 116.73314, + 40.196439 + ], + [ + 116.733198, + 40.196441 + ], + [ + 116.733379, + 40.196445 + ], + [ + 116.733548, + 40.196445 + ], + [ + 116.733722, + 40.196445 + ], + [ + 116.733903, + 40.196445 + ], + [ + 116.734081, + 40.196447 + ], + [ + 116.734251, + 40.196446 + ], + [ + 116.734439, + 40.196445 + ], + [ + 116.734624, + 40.196444 + ], + [ + 116.734805, + 40.196442 + ], + [ + 116.734982, + 40.196442 + ], + [ + 116.735164, + 40.196441 + ], + [ + 116.735329, + 40.19644 + ], + [ + 116.735519, + 40.196438 + ], + [ + 116.735682, + 40.196437 + ], + [ + 116.735855, + 40.196437 + ], + [ + 116.736034, + 40.196436 + ], + [ + 116.73621, + 40.196435 + ], + [ + 116.736385, + 40.196433 + ], + [ + 116.736566, + 40.196433 + ], + [ + 116.736742, + 40.196431 + ], + [ + 116.736926, + 40.196431 + ], + [ + 116.737046, + 40.19643 + ], + [ + 116.737173, + 40.19643 + ], + [ + 116.737298, + 40.196429 + ], + [ + 116.737449, + 40.196427 + ], + [ + 116.737582, + 40.196427 + ], + [ + 116.737662, + 40.196425 + ], + [ + 116.737748, + 40.196425 + ], + [ + 116.73778, + 40.196424 + ] + ] +} \ No newline at end of file diff --git a/modules/mogo-module-v2x/src/main/res/raw/scenario_push_vr_event_data_yongdu.json b/modules/mogo-module-v2x/src/main/res/raw/scenario_push_vr_event_data_yongdu.json new file mode 100644 index 0000000000..878b662ecc --- /dev/null +++ b/modules/mogo-module-v2x/src/main/res/raw/scenario_push_vr_event_data_yongdu.json @@ -0,0 +1,821 @@ +{ + "sceneId": "200008", + "alarmContent": "拥堵路线推荐", + "expireTime": 30000, + "sceneCategory": 0, + "sceneDescription": "拥堵路线推荐", + "sceneName": "拥堵路线推荐", + "sceneLevel": 0, + "videoUrl": "", + "videoChannel": "", + "videoSn": "", + "tts": "发现前方拥堵,最优路线快6分钟", + "zoom": false, + "zoomScale": 15, + "userHead": "", + "msgImgUrl": "", + "lat": 40.195246, + "lon": 116.728154, + "polyline": [ + [ + 116.737779, + 40.196461 + ], + [ + 116.737689, + 40.196462 + ], + [ + 116.737545, + 40.196464 + ], + [ + 116.737396, + 40.196465 + ], + [ + 116.737215, + 40.196466 + ], + [ + 116.737064, + 40.196467 + ], + [ + 116.736875, + 40.196468 + ], + [ + 116.736744, + 40.196468 + ], + [ + 116.736602, + 40.196469 + ], + [ + 116.736458, + 40.19647 + ], + [ + 116.736304, + 40.196471 + ], + [ + 116.736175, + 40.196472 + ], + [ + 116.736044, + 40.196472 + ], + [ + 116.735883, + 40.196473 + ], + [ + 116.735228, + 40.196477 + ], + [ + 116.735117, + 40.196478 + ], + [ + 116.734994, + 40.196478 + ], + [ + 116.734878, + 40.196479 + ], + [ + 116.734748, + 40.19648 + ], + [ + 116.734636, + 40.196481 + ], + [ + 116.734557, + 40.196481 + ], + [ + 116.734472, + 40.196481 + ], + [ + 116.734392, + 40.196482 + ], + [ + 116.734293, + 40.196482 + ], + [ + 116.734226, + 40.196482 + ], + [ + 116.734138, + 40.196483 + ], + [ + 116.733983, + 40.196484 + ], + [ + 116.733862, + 40.196485 + ], + [ + 116.733725, + 40.196486 + ], + [ + 116.7336, + 40.196486 + ], + [ + 116.733432, + 40.196485 + ], + [ + 116.733331, + 40.196484 + ], + [ + 116.733259, + 40.196482 + ], + [ + 116.733173, + 40.19648 + ], + [ + 116.733106, + 40.196477 + ], + [ + 116.733002, + 40.196471 + ], + [ + 116.732923, + 40.196467 + ], + [ + 116.73282, + 40.196459 + ], + [ + 116.732724, + 40.19645 + ], + [ + 116.73263, + 40.196441 + ], + [ + 116.732529, + 40.19643 + ], + [ + 116.732431, + 40.196419 + ], + [ + 116.732376, + 40.196413 + ], + [ + 116.732295, + 40.196403 + ], + [ + 116.732215, + 40.196391 + ], + [ + 116.732154, + 40.196382 + ], + [ + 116.732076, + 40.196371 + ], + [ + 116.731991, + 40.196356 + ], + [ + 116.731927, + 40.196345 + ], + [ + 116.731847, + 40.19633 + ], + [ + 116.73177, + 40.196316 + ], + [ + 116.731728, + 40.196307 + ], + [ + 116.731664, + 40.196294 + ], + [ + 116.731571, + 40.196274 + ], + [ + 116.731509, + 40.19626 + ], + [ + 116.731435, + 40.196244 + ], + [ + 116.731357, + 40.196224 + ], + [ + 116.7313, + 40.196211 + ], + [ + 116.731226, + 40.196191 + ], + [ + 116.731148, + 40.196171 + ], + [ + 116.731076, + 40.19615 + ], + [ + 116.731016, + 40.196133 + ], + [ + 116.730949, + 40.196113 + ], + [ + 116.730892, + 40.196096 + ], + [ + 116.730827, + 40.196075 + ], + [ + 116.730761, + 40.196053 + ], + [ + 116.730675, + 40.196025 + ], + [ + 116.730616, + 40.196005 + ], + [ + 116.730549, + 40.195981 + ], + [ + 116.730353, + 40.195908 + ], + [ + 116.730214, + 40.195852 + ], + [ + 116.730081, + 40.195798 + ], + [ + 116.729945, + 40.195742 + ], + [ + 116.729836, + 40.195699 + ], + [ + 116.729727, + 40.195659 + ], + [ + 116.729611, + 40.195616 + ], + [ + 116.729486, + 40.195572 + ], + [ + 116.72935, + 40.195529 + ], + [ + 116.729181, + 40.195479 + ], + [ + 116.729013, + 40.195434 + ], + [ + 116.728924, + 40.195412 + ], + [ + 116.72877, + 40.195374 + ], + [ + 116.728622, + 40.195341 + ], + [ + 116.728469, + 40.195308 + ], + [ + 116.728325, + 40.195281 + ], + [ + 116.728174, + 40.195254 + ], + [ + 116.728018, + 40.195229 + ], + [ + 116.727794, + 40.1952 + ], + [ + 116.727599, + 40.195179 + ], + [ + 116.727432, + 40.195165 + ], + [ + 116.727299, + 40.195156 + ], + [ + 116.727073, + 40.195145 + ], + [ + 116.72695, + 40.195142 + ], + [ + 116.726733, + 40.195139 + ], + [ + 116.726488, + 40.19514 + ], + [ + 116.726312, + 40.195141 + ], + [ + 116.726115, + 40.195143 + ], + [ + 116.725869, + 40.195148 + ], + [ + 116.725651, + 40.195155 + ], + [ + 116.72537, + 40.195161 + ], + [ + 116.725188, + 40.195163 + ], + [ + 116.725092, + 40.195162 + ], + [ + 116.725091, + 40.195123 + ], + [ + 116.725335, + 40.195123 + ], + [ + 116.725499, + 40.195123 + ], + [ + 116.72602, + 40.195109 + ], + [ + 116.726235, + 40.195106 + ], + [ + 116.726424, + 40.195105 + ], + [ + 116.726658, + 40.195104 + ], + [ + 116.726733, + 40.195105 + ], + [ + 116.72688, + 40.195106 + ], + [ + 116.72704, + 40.195109 + ], + [ + 116.727217, + 40.195115 + ], + [ + 116.727388, + 40.195124 + ], + [ + 116.727562, + 40.195136 + ], + [ + 116.727735, + 40.195155 + ], + [ + 116.727887, + 40.195174 + ], + [ + 116.727979, + 40.195186 + ], + [ + 116.728056, + 40.195198 + ], + [ + 116.728165, + 40.195216 + ], + [ + 116.728237, + 40.195228 + ], + [ + 116.728345, + 40.195247 + ], + [ + 116.728411, + 40.19526 + ], + [ + 116.728533, + 40.195283 + ], + [ + 116.728589, + 40.195295 + ], + [ + 116.728694, + 40.195318 + ], + [ + 116.728761, + 40.195334 + ], + [ + 116.728868, + 40.19536 + ], + [ + 116.728918, + 40.195372 + ], + [ + 116.729088, + 40.195416 + ], + [ + 116.729262, + 40.195462 + ], + [ + 116.729424, + 40.195512 + ], + [ + 116.729547, + 40.195553 + ], + [ + 116.729584, + 40.195566 + ], + [ + 116.729692, + 40.195606 + ], + [ + 116.729739, + 40.195624 + ], + [ + 116.729844, + 40.195661 + ], + [ + 116.730011, + 40.195726 + ], + [ + 116.73014, + 40.195778 + ], + [ + 116.730309, + 40.195849 + ], + [ + 116.730467, + 40.195911 + ], + [ + 116.730608, + 40.195962 + ], + [ + 116.730673, + 40.195984 + ], + [ + 116.730766, + 40.196015 + ], + [ + 116.730831, + 40.196036 + ], + [ + 116.730935, + 40.196069 + ], + [ + 116.730993, + 40.196087 + ], + [ + 116.731086, + 40.196113 + ], + [ + 116.731164, + 40.196135 + ], + [ + 116.731285, + 40.196165 + ], + [ + 116.731315, + 40.196173 + ], + [ + 116.731434, + 40.196202 + ], + [ + 116.731486, + 40.196214 + ], + [ + 116.731586, + 40.196238 + ], + [ + 116.731652, + 40.196253 + ], + [ + 116.731749, + 40.196273 + ], + [ + 116.731818, + 40.196287 + ], + [ + 116.731924, + 40.196305 + ], + [ + 116.731991, + 40.196317 + ], + [ + 116.732108, + 40.196336 + ], + [ + 116.732269, + 40.196361 + ], + [ + 116.732333, + 40.19637 + ], + [ + 116.732464, + 40.196385 + ], + [ + 116.732507, + 40.19639 + ], + [ + 116.732628, + 40.196404 + ], + [ + 116.732678, + 40.196409 + ], + [ + 116.732784, + 40.196418 + ], + [ + 116.732851, + 40.196424 + ], + [ + 116.732985, + 40.196433 + ], + [ + 116.73314, + 40.196439 + ], + [ + 116.733198, + 40.196441 + ], + [ + 116.733379, + 40.196445 + ], + [ + 116.733548, + 40.196445 + ], + [ + 116.733722, + 40.196445 + ], + [ + 116.733903, + 40.196445 + ], + [ + 116.734081, + 40.196447 + ], + [ + 116.734251, + 40.196446 + ], + [ + 116.734439, + 40.196445 + ], + [ + 116.734624, + 40.196444 + ], + [ + 116.734805, + 40.196442 + ], + [ + 116.734982, + 40.196442 + ], + [ + 116.735164, + 40.196441 + ], + [ + 116.735329, + 40.19644 + ], + [ + 116.735519, + 40.196438 + ], + [ + 116.735682, + 40.196437 + ], + [ + 116.735855, + 40.196437 + ], + [ + 116.736034, + 40.196436 + ], + [ + 116.73621, + 40.196435 + ], + [ + 116.736385, + 40.196433 + ], + [ + 116.736566, + 40.196433 + ], + [ + 116.736742, + 40.196431 + ], + [ + 116.736926, + 40.196431 + ], + [ + 116.737046, + 40.19643 + ], + [ + 116.737173, + 40.19643 + ], + [ + 116.737298, + 40.196429 + ], + [ + 116.737449, + 40.196427 + ], + [ + 116.737582, + 40.196427 + ], + [ + 116.737662, + 40.196425 + ], + [ + 116.737748, + 40.196425 + ], + [ + 116.73778, + 40.196424 + ] + ] +} \ No newline at end of file From 503e053b7a9b50b9579bd34bdd2d98daaa567b54 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=91=A3=E5=AE=8F=E5=AE=87?= Date: Wed, 28 Oct 2020 15:33:13 +0800 Subject: [PATCH 3/9] =?UTF-8?q?=E4=BF=AE=E6=AD=A3=E6=B5=8B=E6=B5=8B?= =?UTF-8?q?=E8=AF=95=E6=95=B0=E6=8D=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...cenario_push_vr_event_data_shuangshan.json | 874 +++++------------- .../scenario_push_vr_event_data_yongdu.json | 874 +++++------------- 2 files changed, 482 insertions(+), 1266 deletions(-) diff --git a/modules/mogo-module-v2x/src/main/res/raw/scenario_push_vr_event_data_shuangshan.json b/modules/mogo-module-v2x/src/main/res/raw/scenario_push_vr_event_data_shuangshan.json index 878b662ecc..cfe56edbf5 100644 --- a/modules/mogo-module-v2x/src/main/res/raw/scenario_push_vr_event_data_shuangshan.json +++ b/modules/mogo-module-v2x/src/main/res/raw/scenario_push_vr_event_data_shuangshan.json @@ -16,806 +16,414 @@ "msgImgUrl": "", "lat": 40.195246, "lon": 116.728154, - "polyline": [ + "polyLine": [ [ - 116.737779, - 40.196461 + 116.725092, + 40.195204 ], [ - 116.737689, - 40.196462 + 116.725192, + 40.195205 ], [ - 116.737545, - 40.196464 + 116.725374, + 40.195202 ], [ - 116.737396, - 40.196465 + 116.725656, + 40.195194 ], [ - 116.737215, - 40.196466 + 116.725873, + 40.195188 ], [ - 116.737064, - 40.196467 + 116.726119, + 40.195184 ], [ - 116.736875, - 40.196468 + 116.726315, + 40.195181 ], [ - 116.736744, - 40.196468 - ], - [ - 116.736602, - 40.196469 - ], - [ - 116.736458, - 40.19647 - ], - [ - 116.736304, - 40.196471 - ], - [ - 116.736175, - 40.196472 - ], - [ - 116.736044, - 40.196472 - ], - [ - 116.735883, - 40.196473 - ], - [ - 116.735228, - 40.196477 - ], - [ - 116.735117, - 40.196478 - ], - [ - 116.734994, - 40.196478 - ], - [ - 116.734878, - 40.196479 - ], - [ - 116.734748, - 40.19648 - ], - [ - 116.734636, - 40.196481 - ], - [ - 116.734557, - 40.196481 - ], - [ - 116.734472, - 40.196481 - ], - [ - 116.734392, - 40.196482 - ], - [ - 116.734293, - 40.196482 - ], - [ - 116.734226, - 40.196482 - ], - [ - 116.734138, - 40.196483 - ], - [ - 116.733983, - 40.196484 - ], - [ - 116.733862, - 40.196485 - ], - [ - 116.733725, - 40.196486 - ], - [ - 116.7336, - 40.196486 - ], - [ - 116.733432, - 40.196485 - ], - [ - 116.733331, - 40.196484 - ], - [ - 116.733259, - 40.196482 - ], - [ - 116.733173, - 40.19648 - ], - [ - 116.733106, - 40.196477 - ], - [ - 116.733002, - 40.196471 - ], - [ - 116.732923, - 40.196467 - ], - [ - 116.73282, - 40.196459 - ], - [ - 116.732724, - 40.19645 - ], - [ - 116.73263, - 40.196441 - ], - [ - 116.732529, - 40.19643 - ], - [ - 116.732431, - 40.196419 - ], - [ - 116.732376, - 40.196413 - ], - [ - 116.732295, - 40.196403 - ], - [ - 116.732215, - 40.196391 - ], - [ - 116.732154, - 40.196382 - ], - [ - 116.732076, - 40.196371 - ], - [ - 116.731991, - 40.196356 - ], - [ - 116.731927, - 40.196345 - ], - [ - 116.731847, - 40.19633 - ], - [ - 116.73177, - 40.196316 - ], - [ - 116.731728, - 40.196307 - ], - [ - 116.731664, - 40.196294 - ], - [ - 116.731571, - 40.196274 - ], - [ - 116.731509, - 40.19626 - ], - [ - 116.731435, - 40.196244 - ], - [ - 116.731357, - 40.196224 - ], - [ - 116.7313, - 40.196211 - ], - [ - 116.731226, - 40.196191 - ], - [ - 116.731148, - 40.196171 - ], - [ - 116.731076, - 40.19615 - ], - [ - 116.731016, - 40.196133 - ], - [ - 116.730949, - 40.196113 - ], - [ - 116.730892, - 40.196096 - ], - [ - 116.730827, - 40.196075 - ], - [ - 116.730761, - 40.196053 - ], - [ - 116.730675, - 40.196025 - ], - [ - 116.730616, - 40.196005 - ], - [ - 116.730549, - 40.195981 - ], - [ - 116.730353, - 40.195908 - ], - [ - 116.730214, - 40.195852 - ], - [ - 116.730081, - 40.195798 - ], - [ - 116.729945, - 40.195742 - ], - [ - 116.729836, - 40.195699 - ], - [ - 116.729727, - 40.195659 - ], - [ - 116.729611, - 40.195616 - ], - [ - 116.729486, - 40.195572 - ], - [ - 116.72935, - 40.195529 - ], - [ - 116.729181, - 40.195479 - ], - [ - 116.729013, - 40.195434 - ], - [ - 116.728924, - 40.195412 - ], - [ - 116.72877, - 40.195374 - ], - [ - 116.728622, - 40.195341 - ], - [ - 116.728469, - 40.195308 - ], - [ - 116.728325, - 40.195281 - ], - [ - 116.728174, - 40.195254 - ], - [ - 116.728018, - 40.195229 - ], - [ - 116.727794, - 40.1952 - ], - [ - 116.727599, + 116.726492, 40.195179 ], [ - 116.727432, - 40.195165 + 116.726736, + 40.195178 ], [ - 116.727299, - 40.195156 + 116.726953, + 40.195182 ], [ - 116.727073, - 40.195145 + 116.727076, + 40.195185 ], [ - 116.72695, - 40.195142 + 116.727301, + 40.195196 ], [ - 116.726733, - 40.195139 + 116.727433, + 40.195206 ], [ - 116.726488, - 40.19514 + 116.727599, + 40.195221 ], [ - 116.726312, - 40.195141 + 116.727794, + 40.195243 ], [ - 116.726115, - 40.195143 + 116.728016, + 40.195272 ], [ - 116.725869, - 40.195148 + 116.728172, + 40.195297 ], [ - 116.725651, - 40.195155 + 116.728324, + 40.195324 ], [ - 116.72537, - 40.195161 + 116.728466, + 40.195351 ], [ - 116.725188, - 40.195163 + 116.728619, + 40.195383 ], [ - 116.725092, - 40.195162 - ], - [ - 116.725091, - 40.195123 - ], - [ - 116.725335, - 40.195123 - ], - [ - 116.725499, - 40.195123 - ], - [ - 116.72602, - 40.195109 - ], - [ - 116.726235, - 40.195106 - ], - [ - 116.726424, - 40.195105 - ], - [ - 116.726658, - 40.195104 - ], - [ - 116.726733, - 40.195105 - ], - [ - 116.72688, - 40.195106 - ], - [ - 116.72704, - 40.195109 - ], - [ - 116.727217, - 40.195115 - ], - [ - 116.727388, - 40.195124 - ], - [ - 116.727562, - 40.195136 - ], - [ - 116.727735, - 40.195155 - ], - [ - 116.727887, - 40.195174 - ], - [ - 116.727979, - 40.195186 - ], - [ - 116.728056, - 40.195198 - ], - [ - 116.728165, - 40.195216 - ], - [ - 116.728237, - 40.195228 - ], - [ - 116.728345, - 40.195247 - ], - [ - 116.728411, - 40.19526 - ], - [ - 116.728533, - 40.195283 - ], - [ - 116.728589, - 40.195295 - ], - [ - 116.728694, - 40.195318 - ], - [ - 116.728761, - 40.195334 - ], - [ - 116.728868, - 40.19536 - ], - [ - 116.728918, - 40.195372 - ], - [ - 116.729088, + 116.728767, 40.195416 ], [ - 116.729262, - 40.195462 + 116.72892, + 40.195454 ], [ - 116.729424, - 40.195512 + 116.729009, + 40.195477 ], [ - 116.729547, - 40.195553 + 116.729176, + 40.195522 ], [ - 116.729584, - 40.195566 + 116.729344, + 40.195571 ], [ - 116.729692, - 40.195606 + 116.729479, + 40.195614 ], [ - 116.729739, - 40.195624 + 116.729604, + 40.195658 ], [ - 116.729844, - 40.195661 + 116.729719, + 40.1957 ], [ - 116.730011, - 40.195726 + 116.729827, + 40.195741 ], [ - 116.73014, - 40.195778 + 116.729936, + 40.195785 ], [ - 116.730309, - 40.195849 + 116.730072, + 40.195841 ], [ - 116.730467, - 40.195911 + 116.730205, + 40.195895 ], [ - 116.730608, - 40.195962 + 116.730344, + 40.19595 ], [ - 116.730673, - 40.195984 + 116.730542, + 40.196022 ], [ - 116.730766, - 40.196015 + 116.730609, + 40.196047 ], [ - 116.730831, - 40.196036 + 116.730668, + 40.196067 ], [ - 116.730935, - 40.196069 + 116.730754, + 40.196096 ], [ - 116.730993, - 40.196087 + 116.730821, + 40.196117 ], [ - 116.731086, - 40.196113 + 116.730886, + 40.196138 ], [ - 116.731164, - 40.196135 + 116.730943, + 40.196156 ], [ - 116.731285, - 40.196165 + 116.731011, + 40.196175 ], [ - 116.731315, - 40.196173 + 116.73107, + 40.196192 ], [ - 116.731434, - 40.196202 + 116.731143, + 40.196213 ], [ - 116.731486, - 40.196214 + 116.731221, + 40.196233 ], [ - 116.731586, - 40.196238 - ], - [ - 116.731652, + 116.731297, 40.196253 ], [ - 116.731749, - 40.196273 + 116.731353, + 40.196266 ], [ - 116.731818, - 40.196287 + 116.731432, + 40.196285 ], [ - 116.731924, - 40.196305 + 116.731506, + 40.196303 ], [ - 116.731991, + 116.731568, 40.196317 ], [ - 116.732108, - 40.196336 + 116.731661, + 40.196337 ], [ - 116.732269, - 40.196361 + 116.731725, + 40.19635 ], [ - 116.732333, - 40.19637 + 116.731767, + 40.196358 ], [ - 116.732464, - 40.196385 + 116.731845, + 40.196373 ], [ - 116.732507, - 40.19639 + 116.731925, + 40.196387 ], [ - 116.732628, - 40.196404 + 116.73199, + 40.196398 ], [ - 116.732678, - 40.196409 + 116.732075, + 40.196412 ], [ - 116.732784, - 40.196418 - ], - [ - 116.732851, + 116.732153, 40.196424 ], [ - 116.732985, + 116.732215, 40.196433 ], [ - 116.73314, - 40.196439 - ], - [ - 116.733198, - 40.196441 - ], - [ - 116.733379, - 40.196445 - ], - [ - 116.733548, - 40.196445 - ], - [ - 116.733722, - 40.196445 - ], - [ - 116.733903, - 40.196445 - ], - [ - 116.734081, - 40.196447 - ], - [ - 116.734251, - 40.196446 - ], - [ - 116.734439, - 40.196445 - ], - [ - 116.734624, + 116.732295, 40.196444 ], [ - 116.734805, - 40.196442 + 116.732376, + 40.196454 ], [ - 116.734982, - 40.196442 + 116.732431, + 40.196461 ], [ - 116.735164, - 40.196441 + 116.732529, + 40.196472 ], [ - 116.735329, - 40.19644 + 116.73263, + 40.196483 ], [ - 116.735519, - 40.196438 + 116.732725, + 40.196492 ], [ - 116.735682, - 40.196437 + 116.732821, + 40.196501 ], [ - 116.735855, - 40.196437 + 116.732925, + 40.196509 ], [ - 116.736034, - 40.196436 + 116.733004, + 40.196514 ], [ - 116.73621, - 40.196435 + 116.733108, + 40.19652 ], [ - 116.736385, - 40.196433 + 116.733176, + 40.196523 ], [ - 116.736566, - 40.196433 + 116.733262, + 40.196526 ], [ - 116.736742, - 40.196431 + 116.733334, + 40.196527 ], [ - 116.736926, - 40.196431 + 116.733436, + 40.196528 ], [ - 116.737046, - 40.19643 + 116.733603, + 40.196529 ], [ - 116.737173, - 40.19643 + 116.733728, + 40.196528 ], [ - 116.737298, - 40.196429 + 116.733865, + 40.196527 ], [ - 116.737449, - 40.196427 + 116.733986, + 40.196526 ], [ - 116.737582, - 40.196427 + 116.734142, + 40.196525 ], [ - 116.737662, - 40.196425 + 116.734229, + 40.196524 ], [ - 116.737748, - 40.196425 + 116.734297, + 40.196524 + ], + [ + 116.734396, + 40.196524 + ], + [ + 116.734476, + 40.196523 + ], + [ + 116.734561, + 40.196523 + ], + [ + 116.73464, + 40.196523 + ], + [ + 116.734752, + 40.196522 + ], + [ + 116.734882, + 40.196521 + ], + [ + 116.734997, + 40.19652 + ], + [ + 116.73512, + 40.19652 + ], + [ + 116.735232, + 40.196519 + ], + [ + 116.735887, + 40.196515 + ], + [ + 116.736048, + 40.196515 + ], + [ + 116.736179, + 40.196514 + ], + [ + 116.736308, + 40.196513 + ], + [ + 116.736461, + 40.196512 + ], + [ + 116.736606, + 40.196511 + ], + [ + 116.736748, + 40.19651 + ], + [ + 116.736879, + 40.196509 + ], + [ + 116.737067, + 40.196508 + ], + [ + 116.737219, + 40.196507 + ], + [ + 116.737399, + 40.196506 + ], + [ + 116.737549, + 40.196505 + ], + [ + 116.737693, + 40.196504 ], [ 116.73778, - 40.196424 + 40.196504 ] ] } \ No newline at end of file diff --git a/modules/mogo-module-v2x/src/main/res/raw/scenario_push_vr_event_data_yongdu.json b/modules/mogo-module-v2x/src/main/res/raw/scenario_push_vr_event_data_yongdu.json index 878b662ecc..cfe56edbf5 100644 --- a/modules/mogo-module-v2x/src/main/res/raw/scenario_push_vr_event_data_yongdu.json +++ b/modules/mogo-module-v2x/src/main/res/raw/scenario_push_vr_event_data_yongdu.json @@ -16,806 +16,414 @@ "msgImgUrl": "", "lat": 40.195246, "lon": 116.728154, - "polyline": [ + "polyLine": [ [ - 116.737779, - 40.196461 + 116.725092, + 40.195204 ], [ - 116.737689, - 40.196462 + 116.725192, + 40.195205 ], [ - 116.737545, - 40.196464 + 116.725374, + 40.195202 ], [ - 116.737396, - 40.196465 + 116.725656, + 40.195194 ], [ - 116.737215, - 40.196466 + 116.725873, + 40.195188 ], [ - 116.737064, - 40.196467 + 116.726119, + 40.195184 ], [ - 116.736875, - 40.196468 + 116.726315, + 40.195181 ], [ - 116.736744, - 40.196468 - ], - [ - 116.736602, - 40.196469 - ], - [ - 116.736458, - 40.19647 - ], - [ - 116.736304, - 40.196471 - ], - [ - 116.736175, - 40.196472 - ], - [ - 116.736044, - 40.196472 - ], - [ - 116.735883, - 40.196473 - ], - [ - 116.735228, - 40.196477 - ], - [ - 116.735117, - 40.196478 - ], - [ - 116.734994, - 40.196478 - ], - [ - 116.734878, - 40.196479 - ], - [ - 116.734748, - 40.19648 - ], - [ - 116.734636, - 40.196481 - ], - [ - 116.734557, - 40.196481 - ], - [ - 116.734472, - 40.196481 - ], - [ - 116.734392, - 40.196482 - ], - [ - 116.734293, - 40.196482 - ], - [ - 116.734226, - 40.196482 - ], - [ - 116.734138, - 40.196483 - ], - [ - 116.733983, - 40.196484 - ], - [ - 116.733862, - 40.196485 - ], - [ - 116.733725, - 40.196486 - ], - [ - 116.7336, - 40.196486 - ], - [ - 116.733432, - 40.196485 - ], - [ - 116.733331, - 40.196484 - ], - [ - 116.733259, - 40.196482 - ], - [ - 116.733173, - 40.19648 - ], - [ - 116.733106, - 40.196477 - ], - [ - 116.733002, - 40.196471 - ], - [ - 116.732923, - 40.196467 - ], - [ - 116.73282, - 40.196459 - ], - [ - 116.732724, - 40.19645 - ], - [ - 116.73263, - 40.196441 - ], - [ - 116.732529, - 40.19643 - ], - [ - 116.732431, - 40.196419 - ], - [ - 116.732376, - 40.196413 - ], - [ - 116.732295, - 40.196403 - ], - [ - 116.732215, - 40.196391 - ], - [ - 116.732154, - 40.196382 - ], - [ - 116.732076, - 40.196371 - ], - [ - 116.731991, - 40.196356 - ], - [ - 116.731927, - 40.196345 - ], - [ - 116.731847, - 40.19633 - ], - [ - 116.73177, - 40.196316 - ], - [ - 116.731728, - 40.196307 - ], - [ - 116.731664, - 40.196294 - ], - [ - 116.731571, - 40.196274 - ], - [ - 116.731509, - 40.19626 - ], - [ - 116.731435, - 40.196244 - ], - [ - 116.731357, - 40.196224 - ], - [ - 116.7313, - 40.196211 - ], - [ - 116.731226, - 40.196191 - ], - [ - 116.731148, - 40.196171 - ], - [ - 116.731076, - 40.19615 - ], - [ - 116.731016, - 40.196133 - ], - [ - 116.730949, - 40.196113 - ], - [ - 116.730892, - 40.196096 - ], - [ - 116.730827, - 40.196075 - ], - [ - 116.730761, - 40.196053 - ], - [ - 116.730675, - 40.196025 - ], - [ - 116.730616, - 40.196005 - ], - [ - 116.730549, - 40.195981 - ], - [ - 116.730353, - 40.195908 - ], - [ - 116.730214, - 40.195852 - ], - [ - 116.730081, - 40.195798 - ], - [ - 116.729945, - 40.195742 - ], - [ - 116.729836, - 40.195699 - ], - [ - 116.729727, - 40.195659 - ], - [ - 116.729611, - 40.195616 - ], - [ - 116.729486, - 40.195572 - ], - [ - 116.72935, - 40.195529 - ], - [ - 116.729181, - 40.195479 - ], - [ - 116.729013, - 40.195434 - ], - [ - 116.728924, - 40.195412 - ], - [ - 116.72877, - 40.195374 - ], - [ - 116.728622, - 40.195341 - ], - [ - 116.728469, - 40.195308 - ], - [ - 116.728325, - 40.195281 - ], - [ - 116.728174, - 40.195254 - ], - [ - 116.728018, - 40.195229 - ], - [ - 116.727794, - 40.1952 - ], - [ - 116.727599, + 116.726492, 40.195179 ], [ - 116.727432, - 40.195165 + 116.726736, + 40.195178 ], [ - 116.727299, - 40.195156 + 116.726953, + 40.195182 ], [ - 116.727073, - 40.195145 + 116.727076, + 40.195185 ], [ - 116.72695, - 40.195142 + 116.727301, + 40.195196 ], [ - 116.726733, - 40.195139 + 116.727433, + 40.195206 ], [ - 116.726488, - 40.19514 + 116.727599, + 40.195221 ], [ - 116.726312, - 40.195141 + 116.727794, + 40.195243 ], [ - 116.726115, - 40.195143 + 116.728016, + 40.195272 ], [ - 116.725869, - 40.195148 + 116.728172, + 40.195297 ], [ - 116.725651, - 40.195155 + 116.728324, + 40.195324 ], [ - 116.72537, - 40.195161 + 116.728466, + 40.195351 ], [ - 116.725188, - 40.195163 + 116.728619, + 40.195383 ], [ - 116.725092, - 40.195162 - ], - [ - 116.725091, - 40.195123 - ], - [ - 116.725335, - 40.195123 - ], - [ - 116.725499, - 40.195123 - ], - [ - 116.72602, - 40.195109 - ], - [ - 116.726235, - 40.195106 - ], - [ - 116.726424, - 40.195105 - ], - [ - 116.726658, - 40.195104 - ], - [ - 116.726733, - 40.195105 - ], - [ - 116.72688, - 40.195106 - ], - [ - 116.72704, - 40.195109 - ], - [ - 116.727217, - 40.195115 - ], - [ - 116.727388, - 40.195124 - ], - [ - 116.727562, - 40.195136 - ], - [ - 116.727735, - 40.195155 - ], - [ - 116.727887, - 40.195174 - ], - [ - 116.727979, - 40.195186 - ], - [ - 116.728056, - 40.195198 - ], - [ - 116.728165, - 40.195216 - ], - [ - 116.728237, - 40.195228 - ], - [ - 116.728345, - 40.195247 - ], - [ - 116.728411, - 40.19526 - ], - [ - 116.728533, - 40.195283 - ], - [ - 116.728589, - 40.195295 - ], - [ - 116.728694, - 40.195318 - ], - [ - 116.728761, - 40.195334 - ], - [ - 116.728868, - 40.19536 - ], - [ - 116.728918, - 40.195372 - ], - [ - 116.729088, + 116.728767, 40.195416 ], [ - 116.729262, - 40.195462 + 116.72892, + 40.195454 ], [ - 116.729424, - 40.195512 + 116.729009, + 40.195477 ], [ - 116.729547, - 40.195553 + 116.729176, + 40.195522 ], [ - 116.729584, - 40.195566 + 116.729344, + 40.195571 ], [ - 116.729692, - 40.195606 + 116.729479, + 40.195614 ], [ - 116.729739, - 40.195624 + 116.729604, + 40.195658 ], [ - 116.729844, - 40.195661 + 116.729719, + 40.1957 ], [ - 116.730011, - 40.195726 + 116.729827, + 40.195741 ], [ - 116.73014, - 40.195778 + 116.729936, + 40.195785 ], [ - 116.730309, - 40.195849 + 116.730072, + 40.195841 ], [ - 116.730467, - 40.195911 + 116.730205, + 40.195895 ], [ - 116.730608, - 40.195962 + 116.730344, + 40.19595 ], [ - 116.730673, - 40.195984 + 116.730542, + 40.196022 ], [ - 116.730766, - 40.196015 + 116.730609, + 40.196047 ], [ - 116.730831, - 40.196036 + 116.730668, + 40.196067 ], [ - 116.730935, - 40.196069 + 116.730754, + 40.196096 ], [ - 116.730993, - 40.196087 + 116.730821, + 40.196117 ], [ - 116.731086, - 40.196113 + 116.730886, + 40.196138 ], [ - 116.731164, - 40.196135 + 116.730943, + 40.196156 ], [ - 116.731285, - 40.196165 + 116.731011, + 40.196175 ], [ - 116.731315, - 40.196173 + 116.73107, + 40.196192 ], [ - 116.731434, - 40.196202 + 116.731143, + 40.196213 ], [ - 116.731486, - 40.196214 + 116.731221, + 40.196233 ], [ - 116.731586, - 40.196238 - ], - [ - 116.731652, + 116.731297, 40.196253 ], [ - 116.731749, - 40.196273 + 116.731353, + 40.196266 ], [ - 116.731818, - 40.196287 + 116.731432, + 40.196285 ], [ - 116.731924, - 40.196305 + 116.731506, + 40.196303 ], [ - 116.731991, + 116.731568, 40.196317 ], [ - 116.732108, - 40.196336 + 116.731661, + 40.196337 ], [ - 116.732269, - 40.196361 + 116.731725, + 40.19635 ], [ - 116.732333, - 40.19637 + 116.731767, + 40.196358 ], [ - 116.732464, - 40.196385 + 116.731845, + 40.196373 ], [ - 116.732507, - 40.19639 + 116.731925, + 40.196387 ], [ - 116.732628, - 40.196404 + 116.73199, + 40.196398 ], [ - 116.732678, - 40.196409 + 116.732075, + 40.196412 ], [ - 116.732784, - 40.196418 - ], - [ - 116.732851, + 116.732153, 40.196424 ], [ - 116.732985, + 116.732215, 40.196433 ], [ - 116.73314, - 40.196439 - ], - [ - 116.733198, - 40.196441 - ], - [ - 116.733379, - 40.196445 - ], - [ - 116.733548, - 40.196445 - ], - [ - 116.733722, - 40.196445 - ], - [ - 116.733903, - 40.196445 - ], - [ - 116.734081, - 40.196447 - ], - [ - 116.734251, - 40.196446 - ], - [ - 116.734439, - 40.196445 - ], - [ - 116.734624, + 116.732295, 40.196444 ], [ - 116.734805, - 40.196442 + 116.732376, + 40.196454 ], [ - 116.734982, - 40.196442 + 116.732431, + 40.196461 ], [ - 116.735164, - 40.196441 + 116.732529, + 40.196472 ], [ - 116.735329, - 40.19644 + 116.73263, + 40.196483 ], [ - 116.735519, - 40.196438 + 116.732725, + 40.196492 ], [ - 116.735682, - 40.196437 + 116.732821, + 40.196501 ], [ - 116.735855, - 40.196437 + 116.732925, + 40.196509 ], [ - 116.736034, - 40.196436 + 116.733004, + 40.196514 ], [ - 116.73621, - 40.196435 + 116.733108, + 40.19652 ], [ - 116.736385, - 40.196433 + 116.733176, + 40.196523 ], [ - 116.736566, - 40.196433 + 116.733262, + 40.196526 ], [ - 116.736742, - 40.196431 + 116.733334, + 40.196527 ], [ - 116.736926, - 40.196431 + 116.733436, + 40.196528 ], [ - 116.737046, - 40.19643 + 116.733603, + 40.196529 ], [ - 116.737173, - 40.19643 + 116.733728, + 40.196528 ], [ - 116.737298, - 40.196429 + 116.733865, + 40.196527 ], [ - 116.737449, - 40.196427 + 116.733986, + 40.196526 ], [ - 116.737582, - 40.196427 + 116.734142, + 40.196525 ], [ - 116.737662, - 40.196425 + 116.734229, + 40.196524 ], [ - 116.737748, - 40.196425 + 116.734297, + 40.196524 + ], + [ + 116.734396, + 40.196524 + ], + [ + 116.734476, + 40.196523 + ], + [ + 116.734561, + 40.196523 + ], + [ + 116.73464, + 40.196523 + ], + [ + 116.734752, + 40.196522 + ], + [ + 116.734882, + 40.196521 + ], + [ + 116.734997, + 40.19652 + ], + [ + 116.73512, + 40.19652 + ], + [ + 116.735232, + 40.196519 + ], + [ + 116.735887, + 40.196515 + ], + [ + 116.736048, + 40.196515 + ], + [ + 116.736179, + 40.196514 + ], + [ + 116.736308, + 40.196513 + ], + [ + 116.736461, + 40.196512 + ], + [ + 116.736606, + 40.196511 + ], + [ + 116.736748, + 40.19651 + ], + [ + 116.736879, + 40.196509 + ], + [ + 116.737067, + 40.196508 + ], + [ + 116.737219, + 40.196507 + ], + [ + 116.737399, + 40.196506 + ], + [ + 116.737549, + 40.196505 + ], + [ + 116.737693, + 40.196504 ], [ 116.73778, - 40.196424 + 40.196504 ] ] } \ No newline at end of file From c92ec52f34f96db6c39482f3732a2c9282b48e42 Mon Sep 17 00:00:00 2001 From: liujing Date: Wed, 28 Oct 2020 15:48:22 +0800 Subject: [PATCH 4/9] =?UTF-8?q?[add]=20=E6=A8=A1=E6=8B=9F=E6=95=B0?= =?UTF-8?q?=E6=8D=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../listener/V2XMessageListener_401003.java | 1 + ...enario_push_vr_behind_danger_car_data.json | 820 ++++++++++++++++++ .../raw/scenario_push_vr_car_break_data.json | 820 ++++++++++++++++++ .../raw/scenario_push_vr_hehind_vip_data.json | 810 ++++++++++++++++- .../scenario_push_vr_reverse_car_data.json | 810 ++++++++++++++++- ...cenario_push_vr_vip_light_change_data.json | 820 ++++++++++++++++++ .../scenario_push_vr_xingren_yujing_data.json | 820 ++++++++++++++++++ 7 files changed, 4889 insertions(+), 12 deletions(-) create mode 100644 modules/mogo-module-v2x/src/main/res/raw/scenario_push_vr_behind_danger_car_data.json create mode 100644 modules/mogo-module-v2x/src/main/res/raw/scenario_push_vr_car_break_data.json create mode 100644 modules/mogo-module-v2x/src/main/res/raw/scenario_push_vr_vip_light_change_data.json create mode 100644 modules/mogo-module-v2x/src/main/res/raw/scenario_push_vr_xingren_yujing_data.json diff --git a/modules/mogo-module-v2x/src/main/java/com/mogo/module/v2x/listener/V2XMessageListener_401003.java b/modules/mogo-module-v2x/src/main/java/com/mogo/module/v2x/listener/V2XMessageListener_401003.java index b8ff8aec5d..17eca2d238 100644 --- a/modules/mogo-module-v2x/src/main/java/com/mogo/module/v2x/listener/V2XMessageListener_401003.java +++ b/modules/mogo-module-v2x/src/main/java/com/mogo/module/v2x/listener/V2XMessageListener_401003.java @@ -101,6 +101,7 @@ public class V2XMessageListener_401003 implements IMogoOnMessageListener Date: Wed, 28 Oct 2020 15:51:49 +0800 Subject: [PATCH 5/9] =?UTF-8?q?=E6=9C=BA=E5=99=A8=E8=A7=86=E8=A7=89?= =?UTF-8?q?=E5=9C=B0=E5=9B=BE=E7=BB=98=E5=88=B6=E7=82=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../IMachineVisionInterface.aidl | 1 + .../common/constants/AdasRecognizedType.java | 27 ++++++++++++++++ .../module/common/constants/DataTypes.java | 20 ++++++++++++ .../drawer}/AdasRecognizedResultDrawer.java | 31 ++++++++++++------- .../common/drawer}/SnapshotSetDataDrawer.java | 29 +++++++++-------- .../service/marker/MapMarkerManager.java | 9 ++---- .../vision/MachineVisionMapViewHandler.java | 3 +- .../adas/entity/ADASRecognizedListResult.java | 1 + 8 files changed, 90 insertions(+), 31 deletions(-) create mode 100644 modules/mogo-module-common/src/main/java/com/mogo/module/common/constants/AdasRecognizedType.java create mode 100644 modules/mogo-module-common/src/main/java/com/mogo/module/common/constants/DataTypes.java rename modules/{mogo-module-service/src/main/java/com/mogo/module/service/marker => mogo-module-common/src/main/java/com/mogo/module/common/drawer}/AdasRecognizedResultDrawer.java (80%) rename modules/{mogo-module-service/src/main/java/com/mogo/module/service/marker => mogo-module-common/src/main/java/com/mogo/module/common/drawer}/SnapshotSetDataDrawer.java (83%) diff --git a/modules/mogo-module-common/src/main/aidl/com/mogo/module/common/machinevision/IMachineVisionInterface.aidl b/modules/mogo-module-common/src/main/aidl/com/mogo/module/common/machinevision/IMachineVisionInterface.aidl index c456abaca1..3c929e50fa 100644 --- a/modules/mogo-module-common/src/main/aidl/com/mogo/module/common/machinevision/IMachineVisionInterface.aidl +++ b/modules/mogo-module-common/src/main/aidl/com/mogo/module/common/machinevision/IMachineVisionInterface.aidl @@ -1,6 +1,7 @@ // IMachineVisionInterface.aidl package com.mogo.module.common.machinevision; import com.mogo.module.common.entity.MogoSnapshotSetData; +import com.mogo.service.adas.entity.ADASRecognizedListResult; // Declare any non-default types here with import statements diff --git a/modules/mogo-module-common/src/main/java/com/mogo/module/common/constants/AdasRecognizedType.java b/modules/mogo-module-common/src/main/java/com/mogo/module/common/constants/AdasRecognizedType.java new file mode 100644 index 0000000000..0059b0da60 --- /dev/null +++ b/modules/mogo-module-common/src/main/java/com/mogo/module/common/constants/AdasRecognizedType.java @@ -0,0 +1,27 @@ +package com.mogo.module.common.constants; + +public +/** + * @author congtaowang + * @since 2020/10/27 + *

+ * 描述 + */ +class AdasRecognizedType { + //背景 + public static final int classIdBackground = 0; + //人 + public static final int classIdPerson = 1; + //自行车 + public static final int classIdBicycle = 2; + //小轿车 + public static final int classIdCar = 3; + //摩托车 + public static final int classIdMoto = 4; + //红绿灯 + public static final int classIdTrafficSign = 5; + //bus + public static final int classIdTrafficBus = 6; + //track + public static final int classIdTrafficTruck = 8; +} diff --git a/modules/mogo-module-common/src/main/java/com/mogo/module/common/constants/DataTypes.java b/modules/mogo-module-common/src/main/java/com/mogo/module/common/constants/DataTypes.java new file mode 100644 index 0000000000..a7c1934848 --- /dev/null +++ b/modules/mogo-module-common/src/main/java/com/mogo/module/common/constants/DataTypes.java @@ -0,0 +1,20 @@ +package com.mogo.module.common.constants; + +public +/** + * @author congtaowang + * @since 2020/10/28 + * + * 描述 + */ +class DataTypes { + /** + * adas识别数据 + */ + public static final String TYPE_MARKER_ADAS = "TYPE_MARKER_ADAS"; + + /** + * 云端下发数据 + */ + public static final String TYPE_MARKER_CLOUD_DATA = "TYPE_MARKER_CLOUD_DATA"; +} diff --git a/modules/mogo-module-service/src/main/java/com/mogo/module/service/marker/AdasRecognizedResultDrawer.java b/modules/mogo-module-common/src/main/java/com/mogo/module/common/drawer/AdasRecognizedResultDrawer.java similarity index 80% rename from modules/mogo-module-service/src/main/java/com/mogo/module/service/marker/AdasRecognizedResultDrawer.java rename to modules/mogo-module-common/src/main/java/com/mogo/module/common/drawer/AdasRecognizedResultDrawer.java index 89f8234fee..08d3bc5ba6 100644 --- a/modules/mogo-module-service/src/main/java/com/mogo/module/service/marker/AdasRecognizedResultDrawer.java +++ b/modules/mogo-module-common/src/main/java/com/mogo/module/common/drawer/AdasRecognizedResultDrawer.java @@ -1,4 +1,4 @@ -package com.mogo.module.service.marker; +package com.mogo.module.common.drawer; import android.content.Context; import android.graphics.BitmapFactory; @@ -8,9 +8,10 @@ import com.mogo.map.MogoLatLng; import com.mogo.map.marker.IMogoMarker; import com.mogo.map.marker.MogoMarkerOptions; import com.mogo.module.common.ModuleNames; -import com.mogo.module.service.MarkerServiceHandler; -import com.mogo.module.service.R; -import com.mogo.module.service.ServiceConst; +import com.mogo.module.common.MogoApisHandler; +import com.mogo.module.common.R; +import com.mogo.module.common.constants.AdasRecognizedType; +import com.mogo.module.common.constants.DataTypes; import com.mogo.service.adas.entity.ADASRecognizedListResult; import java.util.ArrayList; @@ -61,7 +62,7 @@ class AdasRecognizedResultDrawer { public void renderAdasRecognizedResult( List< ADASRecognizedListResult > resultList ) { if ( resultList == null || resultList.isEmpty() ) { - MarkerServiceHandler.getApis().getMapServiceApi().getMarkerManager( mContext ).removeMarkers( ServiceConst.TYPE_MARKER_ADAS ); + MogoApisHandler.getInstance().getApis().getMapServiceApi().getMarkerManager( mContext ).removeMarkers( DataTypes.TYPE_MARKER_ADAS ); return; } purgeAdasRecognizedData( resultList ); @@ -79,9 +80,9 @@ class AdasRecognizedResultDrawer { mAdasRecognizedMarkersCaches.put( uniqueKey, marker ); } + List< MogoLatLng > points = new ArrayList<>(); if ( recognizedListResult.latLonList != null || recognizedListResult.latLonList.size() > 1 ) { - List< MogoLatLng > points = new ArrayList<>(); for ( int j = 0; j < recognizedListResult.latLonList.size(); j++ ) { ADASRecognizedListResult.LatLon latLon = recognizedListResult.latLonList.get( j ); if ( latLon == null ) { @@ -89,11 +90,19 @@ class AdasRecognizedResultDrawer { } points.add( new MogoLatLng( latLon.lat, latLon.lon ) ); } - if ( points.size() >= 1 ) { - marker.startSmooth( points, 1000 ); - } else { + } else { + // 原来的点和新的点做一个数组进行平滑移动 + MogoLatLng latLng = marker.getPosition(); + ADASRecognizedListResult.LatLon latLon = recognizedListResult.latLonList.get( 0 ); + if ( latLon == null ) { + continue; } + points.add( latLng ); + points.add( new MogoLatLng( latLng.lat, latLon.lon ) ); + } + if ( points.size() >= 1 ) { + marker.startSmooth( points, 1000 ); } } } @@ -143,9 +152,9 @@ class AdasRecognizedResultDrawer { } MogoMarkerOptions options = new MogoMarkerOptions() - .owner( ServiceConst.TYPE_MARKER_ADAS ) + .owner( DataTypes.TYPE_MARKER_ADAS ) .icon( BitmapFactory.decodeResource( mContext.getResources(), R.drawable.map_custom_ic_current_location2 ) ) .position( new MogoLatLng( recognizedListResult.latLonList.get( 0 ).lat, recognizedListResult.latLonList.get( 0 ).lon ) ); - return MarkerServiceHandler.getMapService().getMarkerManager( mContext ).addMarker( ModuleNames.CARD_TYPE_ROAD_CONDITION, options ); + return MogoApisHandler.getInstance().getApis().getMapServiceApi().getMarkerManager( mContext ).addMarker( ModuleNames.CARD_TYPE_ROAD_CONDITION, options ); } } diff --git a/modules/mogo-module-service/src/main/java/com/mogo/module/service/marker/SnapshotSetDataDrawer.java b/modules/mogo-module-common/src/main/java/com/mogo/module/common/drawer/SnapshotSetDataDrawer.java similarity index 83% rename from modules/mogo-module-service/src/main/java/com/mogo/module/service/marker/SnapshotSetDataDrawer.java rename to modules/mogo-module-common/src/main/java/com/mogo/module/common/drawer/SnapshotSetDataDrawer.java index 70b36b7fe2..3b5ca12e41 100644 --- a/modules/mogo-module-service/src/main/java/com/mogo/module/service/marker/SnapshotSetDataDrawer.java +++ b/modules/mogo-module-common/src/main/java/com/mogo/module/common/drawer/SnapshotSetDataDrawer.java @@ -1,4 +1,4 @@ -package com.mogo.module.service.marker; +package com.mogo.module.common.drawer; import android.content.Context; import android.graphics.BitmapFactory; @@ -8,12 +8,13 @@ import com.mogo.map.MogoLatLng; import com.mogo.map.marker.IMogoMarker; import com.mogo.map.marker.MogoMarkerOptions; import com.mogo.module.common.ModuleNames; +import com.mogo.module.common.MogoApisHandler; +import com.mogo.module.common.R; +import com.mogo.module.common.constants.AdasRecognizedType; +import com.mogo.module.common.constants.DataTypes; import com.mogo.module.common.entity.CloudLocationInfo; import com.mogo.module.common.entity.CloudRoadData; import com.mogo.module.common.entity.MogoSnapshotSetData; -import com.mogo.module.service.MarkerServiceHandler; -import com.mogo.module.service.R; -import com.mogo.module.service.ServiceConst; import java.util.ArrayList; import java.util.HashMap; @@ -67,7 +68,7 @@ class SnapshotSetDataDrawer { * * @param data */ - public void renderSnapshotData( MogoSnapshotSetData data ) { + public void renderSnapshotData( MogoSnapshotSetData data, boolean filterAdasData ) { if ( data == null || data.getAllList() == null || data.getAllList().isEmpty() ) { return; } @@ -76,7 +77,7 @@ class SnapshotSetDataDrawer { if ( cloudRoadData == null ) { continue; } - if ( cloudRoadData.getDistance() < 50 ) { + if ( filterAdasData && cloudRoadData.getDistance() < 50 ) { // 过滤 adas 识别的车辆 continue; } @@ -89,9 +90,9 @@ class SnapshotSetDataDrawer { marker = drawSnapshotDataMarker( cloudRoadData ); mCloudSnapshotMarkersCaches.put( uniqueKey, marker ); } + List< MogoLatLng > points = new ArrayList<>(); if ( cloudRoadData.getCoordinates() != null || cloudRoadData.getCoordinates().size() > 1 ) { - List< MogoLatLng > points = new ArrayList<>(); for ( int j = 0; j < cloudRoadData.getCoordinates().size(); j++ ) { CloudLocationInfo poi = cloudRoadData.getCoordinates().get( j ); if ( poi == null ) { @@ -101,11 +102,13 @@ class SnapshotSetDataDrawer { double lng = poi.getLon(); points.add( new MogoLatLng( lat, lng ) ); } - if ( points.size() >= 1 ) { - marker.startSmooth( points, 1000 ); - } else { - } + } else { + points.add( marker.getPosition() ); + points.add( new MogoLatLng( cloudRoadData.getLat(), cloudRoadData.getLon() ) ); + } + if ( points.size() >= 1 ) { + marker.startSmooth( points, 1000 ); } } } @@ -156,9 +159,9 @@ class SnapshotSetDataDrawer { } MogoMarkerOptions options = new MogoMarkerOptions() - .owner( ServiceConst.TYPE_MARKER_CLOUD_DATA ) + .owner( DataTypes.TYPE_MARKER_CLOUD_DATA ) .icon( BitmapFactory.decodeResource( mContext.getResources(), R.drawable.map_custom_ic_current_location2 ) ) .position( new MogoLatLng( data.getLat(), data.getLon() ) ); - return MarkerServiceHandler.getMapService().getMarkerManager( mContext ).addMarker( ModuleNames.CARD_TYPE_ROAD_CONDITION, options ); + return MogoApisHandler.getInstance().getApis().getMapServiceApi().getMarkerManager( mContext ).addMarker( ModuleNames.CARD_TYPE_ROAD_CONDITION, options ); } } diff --git a/modules/mogo-module-service/src/main/java/com/mogo/module/service/marker/MapMarkerManager.java b/modules/mogo-module-service/src/main/java/com/mogo/module/service/marker/MapMarkerManager.java index cba98cd5f4..bcffc5c194 100644 --- a/modules/mogo-module-service/src/main/java/com/mogo/module/service/marker/MapMarkerManager.java +++ b/modules/mogo-module-service/src/main/java/com/mogo/module/service/marker/MapMarkerManager.java @@ -1,7 +1,6 @@ package com.mogo.module.service.marker; import android.content.Context; -import android.graphics.BitmapFactory; import android.graphics.Rect; import android.text.TextUtils; import android.view.animation.LinearInterpolator; @@ -17,8 +16,8 @@ import com.mogo.map.marker.anim.OnMarkerAnimationListener; import com.mogo.map.uicontroller.EnumMapUI; import com.mogo.module.common.ModuleNames; import com.mogo.module.common.api.CallChatApi; -import com.mogo.module.common.entity.CloudLocationInfo; -import com.mogo.module.common.entity.CloudRoadData; +import com.mogo.module.common.drawer.AdasRecognizedResultDrawer; +import com.mogo.module.common.drawer.SnapshotSetDataDrawer; import com.mogo.module.common.entity.MarkerCarPois; import com.mogo.module.common.entity.MarkerCardResult; import com.mogo.module.common.entity.MarkerExploreWay; @@ -38,7 +37,6 @@ import com.mogo.module.service.network.RefreshModel; import com.mogo.module.service.utils.ViewUtils; import com.mogo.module.service.vrmode.VrModeController; import com.mogo.service.adas.IMogoADASControlStatusChangedListener; -import com.mogo.service.adas.entity.ADASRecognizedListResult; import com.mogo.service.connection.IMogoOnMessageListener; import com.mogo.service.connection.IMogoOnWebSocketMessageListener; import com.mogo.service.connection.WebSocketMsgType; @@ -57,7 +55,6 @@ import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; -import java.util.concurrent.ConcurrentHashMap; /** * author : donghongyu @@ -162,7 +159,7 @@ public class MapMarkerManager implements IMogoMarkerClickListener, if ( data == null ) { return; } - SnapshotSetDataDrawer.getInstance().renderSnapshotData( data ); + SnapshotSetDataDrawer.getInstance().renderSnapshotData( data, true ); VrModeController.getInstance().renderMogoSnapshotSetData( data ); } diff --git a/modules/mogo-modules-mvision/src/main/java/com/mogo/module/machine/vision/MachineVisionMapViewHandler.java b/modules/mogo-modules-mvision/src/main/java/com/mogo/module/machine/vision/MachineVisionMapViewHandler.java index 53587802d0..87402df068 100644 --- a/modules/mogo-modules-mvision/src/main/java/com/mogo/module/machine/vision/MachineVisionMapViewHandler.java +++ b/modules/mogo-modules-mvision/src/main/java/com/mogo/module/machine/vision/MachineVisionMapViewHandler.java @@ -1,5 +1,6 @@ package com.mogo.module.machine.vision; +import com.mogo.module.common.drawer.SnapshotSetDataDrawer; import com.mogo.module.common.entity.MogoSnapshotSetData; public @@ -50,6 +51,6 @@ class MachineVisionMapViewHandler { if ( mMachineVisionMapView == null ) { return; } - + SnapshotSetDataDrawer.getInstance().renderSnapshotData( data, false ); } } diff --git a/services/mogo-service-api/src/main/java/com/mogo/service/adas/entity/ADASRecognizedListResult.java b/services/mogo-service-api/src/main/java/com/mogo/service/adas/entity/ADASRecognizedListResult.java index df8da8f28e..43cebcf2fe 100644 --- a/services/mogo-service-api/src/main/java/com/mogo/service/adas/entity/ADASRecognizedListResult.java +++ b/services/mogo-service-api/src/main/java/com/mogo/service/adas/entity/ADASRecognizedListResult.java @@ -18,6 +18,7 @@ class ADASRecognizedListResult { public List< LatLon > latLonList; public static class LatLon { + public LatLon( double lat, double lon ) { this.lat = lat; this.lon = lon; From 469556a70aec777838894077e5b034bca5404fd8 Mon Sep 17 00:00:00 2001 From: liujing Date: Wed, 28 Oct 2020 16:16:07 +0800 Subject: [PATCH 6/9] no message --- .../scene/test/V2XTestConsoleWindow.java | 58 ++++++++++++++++++- 1 file changed, 57 insertions(+), 1 deletion(-) diff --git a/modules/mogo-module-v2x/src/main/java/com/mogo/module/v2x/scenario/scene/test/V2XTestConsoleWindow.java b/modules/mogo-module-v2x/src/main/java/com/mogo/module/v2x/scenario/scene/test/V2XTestConsoleWindow.java index 3c886f4d0a..891d28e02b 100644 --- a/modules/mogo-module-v2x/src/main/java/com/mogo/module/v2x/scenario/scene/test/V2XTestConsoleWindow.java +++ b/modules/mogo-module-v2x/src/main/java/com/mogo/module/v2x/scenario/scene/test/V2XTestConsoleWindow.java @@ -118,7 +118,7 @@ public class V2XTestConsoleWindow extends ConstraintLayout { mogoDriverInfo.setSn("12345678"); mogoDriverInfo.setUserName("测试"); mogoDriverInfo.setUserHead("https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1600872867592&di=994e371880ca6ae2814f553e0d0e4139&imgtype=0&src=http%3A%2F%2Fp3.ssl.cdn.btime.com%2Ft014c5d8a1e5cef12ba.jpg%3Fsize%3D506x543"); - V2XServiceManager.getCarsChattingProvider().showUserWindow("CAR_CALL_USER_TO_" + V2XConst.MODULE_NAME,mogoDriverInfo,context); + V2XServiceManager.getCarsChattingProvider().showUserWindow("CAR_CALL_USER_TO_" + V2XConst.MODULE_NAME, mogoDriverInfo, context); }); mBtnTriggerOpen.setOnClickListener(v -> @@ -197,6 +197,28 @@ public class V2XTestConsoleWindow extends ConstraintLayout { LocalBroadcastManager.getInstance(getContext()).sendBroadcast(intent); }); + /* + *后方VIP车辆提示 + * */ + btnTriggerRearVIPCarTip.setOnClickListener(v -> { + + }); + /* + *前车急刹 + * */ + btnTriggerVehicleBrakes.setOnClickListener(v -> { + + }); + /* + *后方危险车辆预警 + * */ + btnTriggerRearDangerousVehicles.setOnClickListener(v -> { + + }); + + /* + * 逆向车辆路线预判 + * */ btnTriggerReverseVehicleRoutePrediction.setOnClickListener(v -> { V2XMessageEntity> v2XMessageEntity = TestOnLineCarUtils.getV2XScenarionVRReverseCarData(); @@ -206,6 +228,40 @@ public class V2XTestConsoleWindow extends ConstraintLayout { LocalBroadcastManager.getInstance(getContext()).sendBroadcast(intent); }); + /* + *VIP变灯通行 + * */ + btnTriggerVIPLightChange.setOnClickListener(v -> { + + }); + + /* + *障碍物绕行 + * */ + btnTriggerObstacleDetour.setOnClickListener(v -> { + + }); + + /* + *行人预警,行人路线预测 + * */ + btnTriggerPedestrianWarning.setOnClickListener(v -> { + + }); + + /* + *拥堵路线推荐 + * */ + btnTriggerCongestedRouteRecommendation.setOnClickListener(v -> { + + }); + + /* + *双闪车辆,自动绕行 + * */ + btnTriggerDoubleFlash.setOnClickListener(v -> { + + }); } } From 735f5a6812af2cb60e3af545542e235caba4e31d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=91=A3=E5=AE=8F=E5=AE=87?= Date: Wed, 28 Oct 2020 16:16:42 +0800 Subject: [PATCH 7/9] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E4=BA=86=E6=8E=A8?= =?UTF-8?q?=E9=80=81VR=E7=9A=84=E5=9C=BA=E6=99=AF=E5=A4=84=E7=90=86?= =?UTF-8?q?=EF=BC=8C=E7=9B=AE=E5=89=8D=E6=98=AF=E7=A9=BA=E5=AE=9E=E7=8E=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../common/entity/V2XMessageEntity.java | 3 + .../v2x/scenario/impl/V2XScenarioManager.java | 4 + .../scene/pushVR/V2XPushVREventMarker.java | 78 ++++++++++ .../scene/pushVR/V2XPushVREventScenario.java | 141 ++++++++++++++++++ .../scene/test/V2XTestConsoleWindow.java | 10 ++ .../module/v2x/utils/TestOnLineCarUtils.java | 33 ++++ 6 files changed, 269 insertions(+) create mode 100644 modules/mogo-module-v2x/src/main/java/com/mogo/module/v2x/scenario/scene/pushVR/V2XPushVREventMarker.java create mode 100644 modules/mogo-module-v2x/src/main/java/com/mogo/module/v2x/scenario/scene/pushVR/V2XPushVREventScenario.java diff --git a/modules/mogo-module-common/src/main/java/com/mogo/module/common/entity/V2XMessageEntity.java b/modules/mogo-module-common/src/main/java/com/mogo/module/common/entity/V2XMessageEntity.java index 3da153adb3..598a4b7658 100644 --- a/modules/mogo-module-common/src/main/java/com/mogo/module/common/entity/V2XMessageEntity.java +++ b/modules/mogo-module-common/src/main/java/com/mogo/module/common/entity/V2XMessageEntity.java @@ -139,6 +139,8 @@ public class V2XMessageEntity implements Serializable { int ALERT_ILLEGAL_PARK_WARNING = 1_008; // 呼叫、请求直播事件 int ALERT_VOICE_CALL_FOR_LIVECAR_SHOW = 1_009; + // 推送VR消息展示 + int ALERT_PUSH_VR_SHOW = 2_000; // 自车求助 int ALERT_CAR_FOR_HELP = 8_000; // obu事件 @@ -157,6 +159,7 @@ public class V2XMessageEntity implements Serializable { V2XTypeEnum.ALERT_ILLEGAL_PARK_WARNING, V2XTypeEnum.ALERT_CAR_FOR_HELP, V2XTypeEnum.ALERT_VOICE_CALL_FOR_LIVECAR_SHOW, + V2XTypeEnum.ALERT_PUSH_VR_SHOW, V2XTypeEnum.ALERT_OBU_EVENT, }) @Target({ diff --git a/modules/mogo-module-v2x/src/main/java/com/mogo/module/v2x/scenario/impl/V2XScenarioManager.java b/modules/mogo-module-v2x/src/main/java/com/mogo/module/v2x/scenario/impl/V2XScenarioManager.java index 5378e38d52..7674b5c9c3 100644 --- a/modules/mogo-module-v2x/src/main/java/com/mogo/module/v2x/scenario/impl/V2XScenarioManager.java +++ b/modules/mogo-module-v2x/src/main/java/com/mogo/module/v2x/scenario/impl/V2XScenarioManager.java @@ -15,6 +15,7 @@ import com.mogo.module.v2x.scenario.scene.livecar.V2XPushLiveCarScenario; import com.mogo.module.v2x.scenario.scene.livecar.V2XVoiceCallLiveScenario; import com.mogo.module.v2x.scenario.scene.park.V2XIllegalParkScenario; import com.mogo.module.v2x.scenario.scene.push.V2XPushEventScenario; +import com.mogo.module.v2x.scenario.scene.pushVR.V2XPushVREventScenario; import com.mogo.module.v2x.scenario.scene.road.V2XRoadEventScenario; import com.mogo.module.v2x.scenario.scene.seek.V2XSeekHelpScenario; import com.mogo.module.v2x.utils.V2XUtils; @@ -99,6 +100,9 @@ public class V2XScenarioManager implements IV2XScenarioManager { case V2XMessageEntity.V2XTypeEnum.ALERT_VOICE_CALL_FOR_LIVECAR_SHOW: mV2XScenario = V2XVoiceCallLiveScenario.getInstance(); break; + case V2XMessageEntity.V2XTypeEnum.ALERT_PUSH_VR_SHOW: + mV2XScenario = V2XPushVREventScenario.getInstance(); + break; default: Logger.e(MODULE_NAME, "当前V2X消息类型未定义。"); TipToast.tip("当前V2X消息类型未定义"); diff --git a/modules/mogo-module-v2x/src/main/java/com/mogo/module/v2x/scenario/scene/pushVR/V2XPushVREventMarker.java b/modules/mogo-module-v2x/src/main/java/com/mogo/module/v2x/scenario/scene/pushVR/V2XPushVREventMarker.java new file mode 100644 index 0000000000..f0c145d8d4 --- /dev/null +++ b/modules/mogo-module-v2x/src/main/java/com/mogo/module/v2x/scenario/scene/pushVR/V2XPushVREventMarker.java @@ -0,0 +1,78 @@ +package com.mogo.module.v2x.scenario.scene.pushVR; + +import com.mogo.module.common.entity.MarkerExploreWay; +import com.mogo.module.common.entity.MarkerExploreWayItem; +import com.mogo.module.common.entity.MarkerLocation; +import com.mogo.module.common.entity.V2XPoiTypeEnum; +import com.mogo.module.common.entity.V2XPushMessageEntity; +import com.mogo.module.common.entity.V2XRoadEventEntity; +import com.mogo.module.v2x.V2XServiceManager; +import com.mogo.module.v2x.listener.V2XMarkerClickListener; +import com.mogo.module.v2x.scenario.view.IV2XMarker; +import com.mogo.module.v2x.utils.MarkerUtils; + +import java.util.ArrayList; +import java.util.List; + +/** + * author : donghongyu + * e-mail : 1358506549@qq.com + * date : 2020/5/15 5:37 PM + * desc : 推送VR场景 + * version: 1.0 + */ +public class V2XPushVREventMarker implements IV2XMarker { + @Override + public void drawPOI(V2XPushMessageEntity entity) { + try { + // 清除道路事件 + V2XServiceManager + .getMoGoV2XMarkerManager().clearALLPOI(); + + // 位置信息 + MarkerLocation markerLocation = new MarkerLocation(); + markerLocation.setLon(entity.getLon()); + markerLocation.setLat(entity.getLat()); + + // 进行数据转换,用于Marker展示 + V2XRoadEventEntity v2XRoadEventEntity = new V2XRoadEventEntity(); + v2XRoadEventEntity.setLocation(markerLocation); + // 探路目前只有上报拥堵 + v2XRoadEventEntity.setPoiType(V2XPoiTypeEnum.ALERT_TRAFFIC_EXPRESS); + + MarkerExploreWay markerNoveltyInfo = new MarkerExploreWay(); + + List items = new ArrayList<>(); + MarkerExploreWayItem exploreWayItem = new MarkerExploreWayItem(); + exploreWayItem.setThumbnail(entity.getMsgImgUrl()); + items.add(exploreWayItem); + markerNoveltyInfo.setPoiType(V2XPoiTypeEnum.ALERT_TRAFFIC_EXPRESS); + markerNoveltyInfo.setItems(items); + markerNoveltyInfo.setUploadType("1"); + + v2XRoadEventEntity.setNoveltyInfo(markerNoveltyInfo); + v2XRoadEventEntity.setExpireTime(20000); + + V2XServiceManager + .getMoGoV2XMarkerManager() + .drawableAlarmPOI(V2XServiceManager.getContext(), + v2XRoadEventEntity, + V2XMarkerClickListener.getInstance()); + + } catch (Exception e) { + e.printStackTrace(); + } + } + + @Override + public void clearPOI() { + // 锁车就是将地图视图移植中心点,因为行驶中的车和地图要相对的跟随 + MarkerUtils.resetMapZoom(16); + // 移除线 + V2XServiceManager.getMoGoV2XPolylineManager().clearLine(); + // 移除事件POI + V2XServiceManager.getMoGoV2XMarkerManager().clearAlarmPOI(); + // 绘制上次的数据 + V2XServiceManager.getMoGoV2XMarkerManager().drawableLastAllPOI(); + } +} diff --git a/modules/mogo-module-v2x/src/main/java/com/mogo/module/v2x/scenario/scene/pushVR/V2XPushVREventScenario.java b/modules/mogo-module-v2x/src/main/java/com/mogo/module/v2x/scenario/scene/pushVR/V2XPushVREventScenario.java new file mode 100644 index 0000000000..3defbed3f0 --- /dev/null +++ b/modules/mogo-module-v2x/src/main/java/com/mogo/module/v2x/scenario/scene/pushVR/V2XPushVREventScenario.java @@ -0,0 +1,141 @@ +package com.mogo.module.v2x.scenario.scene.pushVR; + +import android.view.View; + +import androidx.annotation.Nullable; + +import com.mogo.module.common.entity.V2XMessageEntity; +import com.mogo.module.common.entity.V2XPushMessageEntity; +import com.mogo.module.v2x.V2XConst; +import com.mogo.module.v2x.V2XServiceManager; +import com.mogo.module.v2x.scenario.impl.AbsV2XScenario; +import com.mogo.service.windowview.IMogoTopViewStatusListener; +import com.mogo.utils.logger.Logger; +import com.mogo.utils.network.utils.GsonUtil; + +import static com.mogo.module.v2x.V2XConst.MODULE_NAME; + +/** + * author : donghongyu + * e-mail : 1358506549@qq.com + * date : 2020/5/15 5:37 PM + * desc : 推送VR场景控制 + * version: 1.0 + */ +public class V2XPushVREventScenario + extends AbsV2XScenario + implements IMogoTopViewStatusListener { + + private static V2XPushVREventScenario mV2XPushEventScenario; + + private V2XPushVREventScenario() { + } + + public static V2XPushVREventScenario getInstance() { + if (mV2XPushEventScenario == null) { + synchronized (V2XPushVREventScenario.class) { + if (mV2XPushEventScenario == null) { + mV2XPushEventScenario = new V2XPushVREventScenario(); + mV2XPushEventScenario.setV2XMarker(new V2XPushVREventMarker()); + } + } + } + return mV2XPushEventScenario; + } + + + @Override + public void init(@Nullable V2XMessageEntity v2XMessageEntity) { + Logger.w(MODULE_NAME, "处理推送VR场景:" + GsonUtil.jsonFromObject(v2XMessageEntity)); + + if (!isSameScenario(v2XMessageEntity) + && V2XServiceManager.getMoGoStatusManager().isMainPageLaunched()) { + setV2XMessageEntity(v2XMessageEntity); + show(); + } else { + setV2XMessageEntity(v2XMessageEntity); + Logger.w(V2XConst.MODULE_NAME, "要处理的场景已经存在,丢弃这次初始化"); + } + } + + @Override + public void show() { + if (getV2XMessageEntity() != null && getV2XMessageEntity().getContent() != null) { + speakTTSVoice(getV2XMessageEntity().getContent().getTts(), null); + drawPOI(); + showWindow(); + } + } + + @Override + public void showWindow() { + if (getV2XWindow() != null) { + //TODO 这里调用 showLeftNoticeByType 进行展示左下角的弹窗 + } + } + + @Override + public void closeWindow() { + V2XServiceManager.getMoGoV2XStatusManager().setPushWindowShow(TAG, false); + if (getV2XWindow() != null) { + getV2XWindow().close(); + } + } + + @Override + public void showButton() { + if (getV2XButton() != null) { + getV2XButton().show(); + } + } + + @Override + public void closeButton() { + if (getV2XButton() != null) { + getV2XButton().close(); + } + } + + @Override + public void drawPOI() { + if (getV2XMarker() != null) { + getV2XMarker().drawPOI(getV2XMessageEntity().getContent()); + V2XServiceManager.getMoGoV2XStatusManager().setPushPOIShow(TAG, true); + } + } + + @Override + public void clearPOI() { + if (getV2XMarker() != null) { + getV2XMarker().clearPOI(); + } + V2XServiceManager.getMoGoV2XStatusManager().setPushPOIShow(TAG, false); + } + + //////////////////////////////////////////////////////////////////////////////////////////////////// + @Override + public void onViewAdded(View view) { + Logger.d(MODULE_NAME, "展示 Window 动画结束"); + } + + @Override + public void onViewRemoved(View view) { + Logger.d(MODULE_NAME, "关闭 Window 动画结束"); + } + + @Override + public void beforeViewAddAnim(View view) { + Logger.d(MODULE_NAME, "展示 Window 开始"); + } + + @Override + public void beforeViewRemoveAnim(View view) { + Logger.d(MODULE_NAME, "关闭 Window 开始"); + V2XServiceManager.getMoGoV2XStatusManager().setPushWindowShow(TAG, false); + // 重置场景提示的消息 + setV2XMessageEntity(null); + clearPOI(); + } + //////////////////////////////////////////////////////////////////////////////////////////////////// + +} diff --git a/modules/mogo-module-v2x/src/main/java/com/mogo/module/v2x/scenario/scene/test/V2XTestConsoleWindow.java b/modules/mogo-module-v2x/src/main/java/com/mogo/module/v2x/scenario/scene/test/V2XTestConsoleWindow.java index 3c886f4d0a..f9b6b10033 100644 --- a/modules/mogo-module-v2x/src/main/java/com/mogo/module/v2x/scenario/scene/test/V2XTestConsoleWindow.java +++ b/modules/mogo-module-v2x/src/main/java/com/mogo/module/v2x/scenario/scene/test/V2XTestConsoleWindow.java @@ -206,6 +206,16 @@ public class V2XTestConsoleWindow extends ConstraintLayout { LocalBroadcastManager.getInstance(getContext()).sendBroadcast(intent); }); + + btnTriggerCongestedRouteRecommendation.setOnClickListener(v -> { + V2XMessageEntity v2XMessageEntity = + TestOnLineCarUtils.getV2XScenarioPushVR(); + + Intent intent = new Intent(V2XConst.BROADCAST_SCENE_HANDLER_ACTION); + intent.putExtra(V2XConst.BROADCAST_SCENE_EXTRA_KEY, v2XMessageEntity); + LocalBroadcastManager.getInstance(getContext()).sendBroadcast(intent); + }); + } } diff --git a/modules/mogo-module-v2x/src/main/java/com/mogo/module/v2x/utils/TestOnLineCarUtils.java b/modules/mogo-module-v2x/src/main/java/com/mogo/module/v2x/utils/TestOnLineCarUtils.java index 350b76c6d6..d1dbaf1236 100644 --- a/modules/mogo-module-v2x/src/main/java/com/mogo/module/v2x/utils/TestOnLineCarUtils.java +++ b/modules/mogo-module-v2x/src/main/java/com/mogo/module/v2x/utils/TestOnLineCarUtils.java @@ -357,4 +357,37 @@ public class TestOnLineCarUtils { } return null; } + + /** + * 模拟H5推送场景---推送VR场景信息 + */ + public static V2XMessageEntity getV2XScenarioPushVR() { + try { + InputStream inputStream = V2XUtils.getApp() + .getResources() + .openRawResource(R.raw.scenario_push_vr_event_data_yongdu); + ByteArrayOutputStream baos = new ByteArrayOutputStream(); + int len = -1; + byte[] buffer = new byte[1024]; + while ((len = inputStream.read(buffer)) != -1) { + baos.write(buffer, 0, len); + } + inputStream.close(); + + // 加载数据源 + V2XPushMessageEntity v2xRoadEventEntity = GsonUtil.objectFromJson(baos.toString(), V2XPushMessageEntity.class); + + V2XMessageEntity v2xMessageEntity = new V2XMessageEntity<>(); + // 控制类型 + v2xMessageEntity.setType(V2XMessageEntity.V2XTypeEnum.ALERT_PUSH_VR_SHOW); + // 设置数据 + v2xMessageEntity.setContent(v2xRoadEventEntity); + // 控制展示状态 + v2xMessageEntity.setShowState(true); + return v2xMessageEntity; + } catch (Exception e) { + e.printStackTrace(); + } + return null; + } } From 67451ae827ce6526c0557134fda73a89d38d9a6c Mon Sep 17 00:00:00 2001 From: wangcongtao Date: Wed, 28 Oct 2020 16:20:41 +0800 Subject: [PATCH 8/9] =?UTF-8?q?=E6=9C=BA=E5=99=A8=E8=A7=86=E8=A7=89?= =?UTF-8?q?=E5=9C=B0=E5=9B=BE=E7=BB=98=E5=88=B6=E7=82=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../module/common/machinevision/IMachineVisionInterface.aidl | 1 - .../java/com/mogo/module/service/marker/MapMarkerView.java | 3 +++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/modules/mogo-module-common/src/main/aidl/com/mogo/module/common/machinevision/IMachineVisionInterface.aidl b/modules/mogo-module-common/src/main/aidl/com/mogo/module/common/machinevision/IMachineVisionInterface.aidl index 3c929e50fa..c456abaca1 100644 --- a/modules/mogo-module-common/src/main/aidl/com/mogo/module/common/machinevision/IMachineVisionInterface.aidl +++ b/modules/mogo-module-common/src/main/aidl/com/mogo/module/common/machinevision/IMachineVisionInterface.aidl @@ -1,7 +1,6 @@ // IMachineVisionInterface.aidl package com.mogo.module.common.machinevision; import com.mogo.module.common.entity.MogoSnapshotSetData; -import com.mogo.service.adas.entity.ADASRecognizedListResult; // Declare any non-default types here with import statements diff --git a/modules/mogo-module-service/src/main/java/com/mogo/module/service/marker/MapMarkerView.java b/modules/mogo-module-service/src/main/java/com/mogo/module/service/marker/MapMarkerView.java index 23bd427c71..0912f537d6 100644 --- a/modules/mogo-module-service/src/main/java/com/mogo/module/service/marker/MapMarkerView.java +++ b/modules/mogo-module-service/src/main/java/com/mogo/module/service/marker/MapMarkerView.java @@ -7,6 +7,7 @@ import android.view.LayoutInflater; import androidx.annotation.Nullable; import com.mogo.map.marker.MogoMarkerOptions; +import com.mogo.module.common.MogoApisHandler; import com.mogo.module.common.entity.MarkerExploreWay; import com.mogo.module.common.entity.MarkerPoiTypeEnum; import com.mogo.module.common.entity.MarkerShowEntity; @@ -50,6 +51,8 @@ public class MapMarkerView extends MapMarkerBaseView { public void updateView( MarkerShowEntity markerShowEntity ) { try { Object bindObj = markerShowEntity.getBindObj(); + if ( MogoApisHandler.getInstance().getApis().getMapFrameControllerApi().isVrMode() ) { + } switch ( markerShowEntity.getMarkerType() ) { case ServiceConst.CARD_TYPE_ROAD_CONDITION: case ServiceConst.CARD_TYPE_NOVELTY: From 934797c54f340d98021fe610e742c700f3f93214 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=91=A3=E5=AE=8F=E5=AE=87?= Date: Wed, 28 Oct 2020 16:27:22 +0800 Subject: [PATCH 9/9] =?UTF-8?q?=E5=85=B3=E6=8E=89=E4=BA=86=E4=BA=8B?= =?UTF-8?q?=E4=BB=B6=E6=97=A5=E5=BF=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../mogo/module/v2x/alarm/V2XAlarmServer.java | 26 +++++++++---------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/modules/mogo-module-v2x/src/main/java/com/mogo/module/v2x/alarm/V2XAlarmServer.java b/modules/mogo-module-v2x/src/main/java/com/mogo/module/v2x/alarm/V2XAlarmServer.java index 466c32f04e..3bb5e80153 100644 --- a/modules/mogo-module-v2x/src/main/java/com/mogo/module/v2x/alarm/V2XAlarmServer.java +++ b/modules/mogo-module-v2x/src/main/java/com/mogo/module/v2x/alarm/V2XAlarmServer.java @@ -124,23 +124,23 @@ public class V2XAlarmServer { } return null; } else { - Logger.w(MODULE_NAME, "V2X预警--事件与车头角度夹角过大:" + - "\n角度:" + eventAngle + " 度" + - "\n事件详情:" + v2XRoadEventEntity.getNoveltyInfo().getInfoId() - ); +// Logger.w(MODULE_NAME, "V2X预警--事件与车头角度夹角过大:" + +// "\n角度:" + eventAngle + " 度" + +// "\n事件详情:" + v2XRoadEventEntity.getNoveltyInfo().getInfoId() +// ); } } else { - Logger.w(MODULE_NAME, "V2X预警--车辆距离事件距离大于500米了:" + - "\n距离:" + v2XRoadEventEntity.getDistance() + "米" + - "\n事件详情:" + v2XRoadEventEntity.getNoveltyInfo().getInfoId() - ); +// Logger.w(MODULE_NAME, "V2X预警--车辆距离事件距离大于500米了:" + +// "\n距离:" + v2XRoadEventEntity.getDistance() + "米" + +// "\n事件详情:" + v2XRoadEventEntity.getNoveltyInfo().getInfoId() +// ); } } else { - Logger.w(MODULE_NAME, - "V2X预警--车头方向与事件方向角度不一致:" + - "\n车头方向: " + currentLocation.getBearing() + - "\n事件方向:" + v2XRoadEventEntity.getLocation().getAngle() - ); +// Logger.w(MODULE_NAME, +// "V2X预警--车头方向与事件方向角度不一致:" + +// "\n车头方向: " + currentLocation.getBearing() + +// "\n事件方向:" + v2XRoadEventEntity.getLocation().getAngle() +// ); } } }