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.
242 lines
6.0 KiB
242 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.332024504368064,
|
|
transform_matrix: [
|
|
-0.996206176341736,
|
|
0.0870244517732304,
|
|
0,
|
|
0.0870244517732304,
|
|
0.996206176341736,
|
|
0,
|
|
0,
|
|
0,
|
|
1,
|
|
316.93153511,
|
|
-314.90895499,
|
|
0,
|
|
],
|
|
is_park: 0,
|
|
},
|
|
{
|
|
app_id: 0,
|
|
map_id: 193,
|
|
poi_id: 37,
|
|
floor_id: "F2",
|
|
scale: 9.610349185362722,
|
|
transform_matrix: [
|
|
-0.4870186634125172,
|
|
0.8733915629577172,
|
|
0,
|
|
0.8733915629577172,
|
|
0.4870186634125172,
|
|
0,
|
|
0,
|
|
0,
|
|
1,
|
|
-531.71365452,
|
|
-60.22897796,
|
|
0,
|
|
],
|
|
is_park: 0,
|
|
},
|
|
{
|
|
app_id: 0,
|
|
map_id: 193,
|
|
poi_id: 37,
|
|
floor_id: "F3",
|
|
scale: 9.73322202311144,
|
|
transform_matrix: [
|
|
0.9988787143231371,
|
|
0.047342521093011465,
|
|
0,
|
|
0.047342521093011465,
|
|
-0.9988787143231371,
|
|
0,
|
|
0,
|
|
0,
|
|
1,
|
|
-854.15627311,
|
|
1288.4941792,
|
|
0,
|
|
],
|
|
is_park: 0,
|
|
},
|
|
{
|
|
app_id: 0,
|
|
map_id: 193,
|
|
poi_id: 37,
|
|
floor_id: "F4",
|
|
scale: 9.756906931593887,
|
|
transform_matrix: [
|
|
0.31708034118154677,
|
|
0.948398680486788,
|
|
0,
|
|
0.948398680486788,
|
|
-0.31708034118154677,
|
|
0,
|
|
0,
|
|
0,
|
|
1,
|
|
-413.34140186,
|
|
-272.95163677,
|
|
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, // 终点最短触发距离
|
|
},
|
|
minTimeQueryServer: 1500,
|
|
};
|
|
|