Commit e5f9c274 authored by 吕 成东's avatar 吕 成东
Browse files

更改到联通服务上

parent c6b37475
......@@ -57,8 +57,8 @@ var cmapConfig = {
},
'51world': {
gis_sdk: '51world', // 引擎类型
// "url": "http://172.29.128.78:8890/service",
"url": "http://192.168.60.137:8890/service", // 本地测试使用
"url": "http://172.29.128.78:8890/service",
// "url": "http://192.168.60.137:8890/service", // 本地测试使用
"order": "6f56f313bbcf0891dcdd51f2d7f47197",
// "resolution": [1920, 1080], //[可选] 场景输出分辨率
"debugMode": "normal", //[可选] none:不打印日志, normal:普通日志
......
This diff is collapsed.
......@@ -289,7 +289,8 @@
style="width: 100vw; height: 100vh; overflow: hidden"
></div>
</body>
<script src="http://192.168.60.110:3000/gis_sdk/js/CMapLoader.map.js"></script>
<!-- <script src="http://192.168.60.110:3000/gis_sdk/js/CMapLoader.map.js"></script> -->
<script src="https://localhost:3000/gis_sdk/js/CMapLoader.map.js"></script>
<!-- <script src="http://localhost:3000/gis_sdk/js/CMapLoader.map.js"></script> -->
<script src="./SignalLines.js"></script>
<!-- <script src="./data.js"></script> -->
......@@ -329,7 +330,8 @@
initMap("51world");
async function initMap(gis_sdk) {
var url = "http://192.168.60.110:3000/hdmap-platform/gateway/cmap2";
// var url = "http://192.168.60.110:3000/hdmap-platform/gateway/cmap2";
var url = "https://localhost:3000/hdmap-platform/gateway/cmap2";
// var url = "http://localhost:3000/hdmap-platform/gateway/cmap2";
var secretKey = "10b79c61bf1b42e2";
......@@ -365,9 +367,9 @@
var options = {
// longitude: 117.346635,
// latitude: 38.99408,
longitude: 117.3470838,
latitude: 39.0009016,
height: 9.10081,
longitude:117.346852,
latitude:38.998567,
height: 39.30901,
};
map.setZoomAndCenter(options);
}
......@@ -825,7 +827,7 @@
async function addTrafficFlow() {
const json = {
id: "21e7a9e6d2884122804788dac1e002cc",
url: "ws://192.168.60.137:31000/ws/streamer/a9219e09346a44a28ee3d0aed79c27ea", // 全部车辆
url: "ws://172.29.128.78:31000/ws/streamer/a9219e09346a44a28ee3d0aed79c27ea", // 全部车辆
};
map.bindVehicle(json);
}
......@@ -834,7 +836,7 @@
async function addTrafficFlow6() {
const json = {
id: "21e7a9e6d2884122804788dac1e002cc",
url: "ws://192.168.60.137:31000/ws/streamer/e7c584dd5d294347bbc3ccec2f0aa8ea", // 6号车
url: "ws://172.29.128.78:31000/ws/streamer/e7c584dd5d294347bbc3ccec2f0aa8ea", // 6号车
};
map.bindVehicle(json);
}
......@@ -929,8 +931,8 @@
}
const json = {
id: "111", //ID
url: "ws://192.168.60.137:31000/ws/streamer/86bf3faefe5f423483e4cd4d9782b046", // 全路口
// url: 'ws://192.168.60.137:31000/ws/streamer/eccd0f8b060d4bb088a1b9af1ad4070f', // 6号路口
url: "ws://172.29.128.78:31000/ws/streamer/86bf3faefe5f423483e4cd4d9782b046", // 全路口
// url: 'ws://172.29.128.78:31000/ws/streamer/eccd0f8b060d4bb088a1b9af1ad4070f', // 6号路口
};
perceptualroad.bindObjects(json);
perceptual = true; //是否加载了感知物
......@@ -965,7 +967,7 @@
height: "10", //高度
opacity: "0.75", //透明度
dataUrl: "D://51world//rlt//hdmap1.4(GCJ02_Ortho)_v2.xodr", //文件地址
url: "ws://192.168.60.137:33021/AnalyzeResult", //ws地址
url: "ws://172.29.128.78:33021/AnalyzeResult", //ws地址
colorSymbols: [
{ minSpeed: 0, maxSpeed: 30, color: "#FF0000" },
{ minSpeed: 30, maxSpeed: 60, color: "#FFFF00" },
......@@ -1055,7 +1057,7 @@
// const url = "wss://itg-dev.cu-sc.com:13443/WSPLUS/socket?token=111&msgType=5&reType=51world"; //&intersectionCode=51-D-JD0003
const socket = new WebSocket(url);
socket.onopen = function (event) {
console.log("socket连接成功!");
console.log("交通事件——socket连接成功!");
};
const fun = async (json) => {
......@@ -1072,7 +1074,7 @@
}
// 测试某一个类型
if (false && type == "ROADWORK") {
if ( type == "ROADWORK") {
fly++;
if (fly == 3) {
const optionsTest1 = {
......@@ -1239,7 +1241,7 @@
camera.flyTo(options);
const json = {
id: "21002cc",
url: "ws://192.168.60.137:31000/ws/streamer/489d02b4-80de-42e6-b0fc-95c4bd006760",
url: "ws://172.29.128.78:31000/ws/streamer/489d02b4-80de-42e6-b0fc-95c4bd006760",
};
map.bindHistoryVehicle(json);
}
......@@ -1403,7 +1405,7 @@
document.getElementById("startV2XGan").onclick = startV2XGan;
function startV2XGan() {
const url =
"wss://itg-dev.cu-sc.com:13443/WSPLUS/socket?token=111&msgType=2&reType=51world&vehicleId=269";
"wss://itg-dev.cu-sc.com:13443/WSPLUS/socket?token=111&msgType=2&reType=51world&vehicleId=269";//&
startVehicleV2XGan(url);
}
......@@ -1427,21 +1429,25 @@
let mainCar = data_list[0];
let poleId = data_list[0].vinfo?.poleId || null;
// console.log(
// "v2xGanSocket.onmessage",
// "mainCar:",
// mainCar.vid,
// "poleId:",
// poleId
// );
data_list?.forEach((item)=>{
if(item.vid==271){
console.log('vid:271',"door:",item.vinfo.door,"light:",item.vinfo.light,"coord:",item.coord)
}
})
console.log(
"v2xGanSocket.onmessage",
"mainCar:",
mainCar.vid,
"poleId:",
poleId
);
// data_list?.forEach((item)=>{
// if(item.vinfo.light!=0){
// console.log(item.vid,"light:",item.vinfo.light,"coord:",item.coord)
// }
// // console.log('vid:271',"door:",item.vinfo.door,"light:",item.vinfo.light,"coord:",item.coord)
// // if(item.vid==271){
// // console.log('vid:271',"door:",item.vinfo.door,"light:",item.vinfo.light,"coord:",item.coord)
// // }
// })
console.log('')
// 如果id不在v2xArr中,则添加
const find = v2xArrGan.find((item) => item.vid === mainCar.vid);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment