You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
241 lines
6.0 KiB
241 lines
6.0 KiB
module.exports = {
|
|
// 有关接口
|
|
interface: {
|
|
// baseURL
|
|
baseURL: "https://dusee.baidu.com",
|
|
// 创建 session 的接口
|
|
sessionInterface: "/ar-vps-ui/createsession_poi_map",
|
|
// trackFrame 定位接口
|
|
trackFrameInterface: "/ar-vps-ui/trackframe",
|
|
// 导航结束 销毁 session
|
|
destroySessionInterface: "/ar-vps-ui/sessiondestory",
|
|
getMapPoiBaseUrl: "https://dusee.baidu.com",
|
|
getMapPoiInterface: "/vpastob/inner/get_map_poi",
|
|
// 定义定位超时时间
|
|
timeOut: 5 * 1000,
|
|
},
|
|
// 有关地图 --- 一层商场使用独立的视觉地图,用map_id和poi_id表示;
|
|
map: [
|
|
{
|
|
app_id: 0,
|
|
map_id: 193,
|
|
poi_id: 37,
|
|
floor_id: "F1",
|
|
scale: 7.429391176516255,
|
|
transform_matrix: [
|
|
-0.7978915327495361,
|
|
0.6028010392844637,
|
|
0,
|
|
0.6028010392844637,
|
|
0.7978915327495361,
|
|
0,
|
|
0,
|
|
0,
|
|
1,
|
|
1097.40405084,
|
|
1194.89408053,
|
|
0,
|
|
],
|
|
is_park: 0,
|
|
},
|
|
{
|
|
app_id: 0,
|
|
map_id: 193,
|
|
poi_id: 37,
|
|
floor_id: "F2",
|
|
scale: 9.501854601780638,
|
|
transform_matrix: [
|
|
0.4893872554973585,
|
|
0.8720665746136,
|
|
0,
|
|
0.8720665746136,
|
|
-0.4893872554973585,
|
|
0,
|
|
0,
|
|
0,
|
|
1,
|
|
114.65926562,
|
|
1370.53419416,
|
|
0,
|
|
],
|
|
is_park: 0,
|
|
},
|
|
{
|
|
app_id: 0,
|
|
map_id: 193,
|
|
poi_id: 37,
|
|
floor_id: "F3",
|
|
scale: 9.698837555834046,
|
|
transform_matrix: [
|
|
0.008235364381916726,
|
|
0.9999660890627279,
|
|
0,
|
|
0.9999660890627279,
|
|
-0.008235364381916726,
|
|
0,
|
|
0,
|
|
0,
|
|
1,
|
|
-741.12613319,
|
|
3286.64504679,
|
|
0,
|
|
],
|
|
is_park: 0,
|
|
},
|
|
{
|
|
app_id: 0,
|
|
map_id: 193,
|
|
poi_id: 37,
|
|
floor_id: "F4",
|
|
scale: 9.703032727395122,
|
|
transform_matrix: [
|
|
0.8210637728929214,
|
|
-0.5708364831804398,
|
|
0,
|
|
-0.5708364831804398,
|
|
-0.8210637728929214,
|
|
0,
|
|
0,
|
|
0,
|
|
1,
|
|
-667.3006959,
|
|
-206.2637871,
|
|
0,
|
|
],
|
|
is_park: 0,
|
|
},
|
|
{
|
|
app_id: 0,
|
|
map_id: 193,
|
|
poi_id: 37,
|
|
floor_id: "F5",
|
|
scale: 5.6,
|
|
transform_matrix: [1, 0, 0, 0, -1, 0, 0, 0, -1, 0, 0, 0],
|
|
is_park: 0,
|
|
},
|
|
],
|
|
// 有关渲染随屏箭头的配置
|
|
ArrowRenderMode: {
|
|
mode: 2, // 0:只显示贴地箭头 1:只显示3Dof箭头 2:显示贴地箭头和3Dof剪头
|
|
},
|
|
// todo 暂时未开发
|
|
ThreeDofArrowPosition: {
|
|
position: [0, -0.05, -0.25],
|
|
},
|
|
InputCoordinateMode: {
|
|
mode: 0, // 0:表示使用的是2D地图坐标 1:表示使用的是3DVPAS地图坐标
|
|
},
|
|
// 是否需要将translation结果写入到本地文件中
|
|
// 注意:只在Debug时候开启
|
|
WriteCameraPositionForDebug: {
|
|
mode: 0, // 0:关闭 1:开启
|
|
},
|
|
arrow: {
|
|
// 动画导航箭头
|
|
arrowURL:
|
|
"https://ar-fm.cdn.bcebos.com/home_3d_model/vpas_applet/ikea/gltf_20211111/qianjina/qianjina.gltf",
|
|
arrowPosition: [0, 0, 0],
|
|
arrowRotation: [0, Math.PI, Math.PI / 2],
|
|
arrowScale: [50, 50, 50],
|
|
arrowMoveSpeed: 8,
|
|
showDistance: 15,
|
|
},
|
|
onScreenArrow: {
|
|
// 随屏3Dof箭头
|
|
arrowURL:
|
|
"https://ar-fm.cdn.bcebos.com/home_3d_model/vpas_applet/ikea/gltf_20211111/qianjinb/qianjinb.gltf",
|
|
arrowPosition: [0, -0.05, -0.25],
|
|
arrowRotation: [Math.PI / 2, 0, 0],
|
|
arrowScale: [2.5, 2.5, 2.5],
|
|
},
|
|
turnLeft: {
|
|
// 左转
|
|
URL:
|
|
"https://ar-fm.cdn.bcebos.com/home_3d_model/vpas_applet/ikea/gltf_20211111/zuo/zuo.gltf",
|
|
scale: [100, 100, 100],
|
|
rotation: [-Math.PI / 2, 0, 0],
|
|
showDistance: 15,
|
|
angleThreshold: 30,
|
|
},
|
|
turnRight: {
|
|
// 右转
|
|
URL:
|
|
"https://ar-fm.cdn.bcebos.com/home_3d_model/vpas_applet/ikea/gltf_20211111/you/you.gltf",
|
|
scale: [100, 100, 100],
|
|
rotation: [-Math.PI / 2, 0, 0],
|
|
showDistance: 15,
|
|
angleThreshold: 30,
|
|
},
|
|
escalatorUp: {
|
|
// 上扶梯
|
|
URL:
|
|
"https://ar-fm.cdn.bcebos.com/home_3d_model/vpas_applet/ikea/gltf_20211111/shang/shang.gltf",
|
|
scale: [100, 100, 100],
|
|
rotation: [-Math.PI / 2, 0, 0],
|
|
showDistance: 15,
|
|
},
|
|
escalatorDown: {
|
|
// 下扶梯
|
|
URL:
|
|
"https://ar-fm.cdn.bcebos.com/home_3d_model/vpas_applet/ikea/gltf_20211111/xia/xia.gltf",
|
|
scale: [100, 100, 100],
|
|
rotation: [-Math.PI / 2, 0, 0],
|
|
showDistance: 15,
|
|
},
|
|
elevatorUp: {
|
|
// 上电梯
|
|
URL:
|
|
"https://ar-fm.cdn.bcebos.com/home_3d_model/vpas_applet/ikea/gltf_20211111/zhiti/zhiti.gltf",
|
|
scale: [100, 100, 100],
|
|
rotation: [-Math.PI / 2, 0, 0],
|
|
showDistance: 15,
|
|
},
|
|
elevatorDown: {
|
|
// 下电梯
|
|
URL:
|
|
"https://ar-fm.cdn.bcebos.com/home_3d_model/vpas_applet/ikea/gltf_20211111/zhiti/zhiti.gltf",
|
|
scale: [100, 100, 100],
|
|
rotation: [-Math.PI / 2, 0, 0],
|
|
showDistance: 15,
|
|
},
|
|
mallToPark: {
|
|
// 商场到车库入口
|
|
URL:
|
|
"https://ar-fm.cdn.bcebos.com/home_3d_model/vpas_applet/ikea/gltf_20211111/park/park.gltf",
|
|
scale: [100, 100, 100],
|
|
rotation: [-Math.PI / 2, 0, 0],
|
|
showDistance: 15,
|
|
},
|
|
parkToMall: {
|
|
// 车库到商场入口
|
|
URL:
|
|
"https://ar-fm.cdn.bcebos.com/home_3d_model/vpas_applet/ikea/gltf_20211111/park/park.gltf",
|
|
scale: [100, 100, 100],
|
|
rotation: [-Math.PI / 2, 0, 0],
|
|
showDistance: 15,
|
|
},
|
|
final: {
|
|
// 终点
|
|
URL:
|
|
"https://ar-fm.cdn.bcebos.com/home_3d_model/vpas_applet/ikea/gltf_20211111/zhongdian/zhongdian.gltf",
|
|
scale: [100, 100, 100],
|
|
rotation: [-Math.PI / 2, 0, 0],
|
|
showDistance: 15,
|
|
},
|
|
mapPoi: {
|
|
// 地图打点数据
|
|
showDistance: 40,
|
|
},
|
|
panel: {
|
|
panelColor: 0xf9dc4f,
|
|
textColor: 0xffffff,
|
|
opacity: 0.8, // 透明度设置,1.0为不透明,0.0为完全透明
|
|
},
|
|
interaction: {
|
|
minCoverPointDistance: 4, // 通过路径节点的最短距离阈值
|
|
},
|
|
minTriggerDistance: {
|
|
transfer: 5, // 电梯扶梯点最短触发距离
|
|
final: 5, // 终点最短触发距离
|
|
},
|
|
};
|
|
|