数据方面的笔记.txt 9.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147
  1.  datasets
  2. bounding_box_max和bounding_box_min对应的是cloud.js里的tightBoundingBox
  3. bundle_id?3
  4. color?"pink"
  5. gridmap_filename?"map.2cm.png" http://indoor.popsmart.cn:8084/sxswsw/data/2017-11-11_06.36.39/map.2cm.png
  6. gridmap_orientation?0
  7. gridmap_origin?[-19.984063, -15.131225]
  8. gridmap_res?0.02
  9. gridmap_size?[1334, 1703]
  10. has_depth_images?是否有深度图
  11. has_images?是否有全景图
  12. id?43
  13. location?[120.58636147069285, 29.991338912466446, 0.2674398422241211]
  14. name:点云数据目录
  15. orientation?-1.5064133791782077
  16. point_cloud_type:数据类型,这里是点云———"POTREE"
  17. security: 功能权限,如:{group_read: 0, group_write: 1, can_write: false}
  18. site_model_entity_id?12
  19. title?"1111-19"
  20. type:"NAVVIS"
  21. visible?如:false
  22. **********************************************************************************************************************************************************************************************
  23. camera_heads
  24. alpha_masks:null|["M1/alphamask-100-808x616-0.png", "M1/alphamask-100-808x616-1.png", "M1/alphamask-100-808x616-2.png",…]|["M2-rev0/cam0.png", "M2-rev0/cam1.png", "M2-rev0/cam2.png", "M2-rev0/cam3.png", "M2-rev0/cam4.png",…]
  25. blending:null|"+"
  26. depth_fn_format?
  27. depth_resolutions?0
  28. fn_format:?cube图, "$ID-pano-tex-$TILE.jpg"|"$ID-ladybug-$INDEX.jpg"|"$ID-ladybug-$INDEX-tex.jpg"|"$ID-cam$INDEX.jpg"|"cam/tiles/r$RES/$ID100/$ID-cam$CAM-tex-r$RES-$TILE.jpg"
  29. id: 1|2|3
  30. identifier: "pano-rev0"|"m1-rev0-preview"|"m1-rev0"
  31. meshes: ["pano/tiles/pano-00.obj", "pano/tiles/pano-01.obj", "pano/tiles/pano-02.obj",…]|["M1/ladybug0.obj", "M1/ladybug1.obj", "M1/ladybug2.obj", "M1/ladybug3.obj", "M1/ladybug4.obj",…]|["M1/ladybug0.obj", "M1/ladybug1.obj", "M1/ladybug2.obj", "M1/ladybug3.obj", "M1/ladybug4.obj",…]
  32. name: "Panorama"|"Ladybug 3 Preview"|"Ladybug 3"
  33. resolutions: 1
  34. tiles: 32|0|0|16
  35. **********************************************************************************************************************************************************************************************
  36. site_model
  37. area: 9749.732002969164
  38. attributes: {}
  39. center: [120.58631611971951, 29.991368179921004, 0]
  40. children: 格式和当前数据格式一致
  41. geometry_hash: 1891071345
  42. id: 1
  43. name: "三味书屋"
  44. polygon: {type: "Polygon",…}
  45. type: "BUILDING"
  46. volume: null
  47. z_max: null
  48. z_min: null
  49. **********************************************************************************************************************************************************************************************
  50. tiled_maps (应该是地图数据)
  51. bundle_id: 3
  52. file_name: "$DEPTH/$X/$Y.png"
  53. file_path: "data/bundle_e67bb877-9674-4549-b6c6-5edf049a8ef5/building_1/map_tiles/2"
  54. floor_id: 2
  55. id: 5
  56. location: [120.58621281403158, 29.991430706723694, 0.22243994499999997]
  57. map_size_m: 61.44
  58. max_depth: 3
  59. orientation: 朝向,应该是quaternation [0.6497313898579827, 0, 0, 0.7601638777482221]
  60. quadtree: "fccf7fffcff3bf7f"
  61. tile_size_px: 256
  62. type: "TILED_PYRAMID"
  63. **********************************************************************************************************************************************************************************************
  64. 1463(初始点id)
  65. camera_head_id: 12
  66. dataset_floor_location: [-0.8071792828, -7.8391666032, 0]
  67. dataset_id: 61 //数据id,比如:分块了。自增1
  68. dataset_location: [-0.9235293705548061, -7.901821757534243, 1.7464048584209941]
  69. dataset_orientation: [-0.13446655377624134, 0.010837326206415367, -0.005118374440006826, 0.9908456491502733]
  70. file_id: "00013" //应该是拍摄的时候,可以分多段拍摄,每一段都是从00000开始递增
  71. file_path: "data/2017-11-11_06.42.12"
  72. floor_location: [120.58627072961269, 29.991507924850293, 0.30361461639404297]
  73. hidden: false
  74. id: 1463
  75. location: [120.58627208336249, 29.99150810503829, 2.050019474815037]
  76. orientation: 朝向,应该是quaternation [-0.9992717488441094, 0.006889078915013335, 0.009807445534648216, 0.03622604707280119]
  77. site_model_entity_id: 14
  78. **********************************************************************************************************************************************************************************************
  79. within
  80. 貌似移动距离比较远的时候需要用到这个数据
  81. **********************************************************************************************************************************************************************************************
  82. 要下载的数据:
  83. camera_heads.json里:
  84. 1. meshes,如:http://indoor.popsmart.cn:8084/sxswsw/camera_head/pano/tiles/pano-01.obj
  85. 目前还缺少,补充
  86. 2. alpha_masks,http://indoor.popsmart.cn:8084/sxswsw/camera_head/+alpha_masks
  87. 3. 发送请求filter,返回一组数据。通过id,能找到所有的信息。比如:file_path,然后从camera_heads的固定规则里找到图片
  88. 4. "identifier": "pano-multires-rev0"———————————————————— fn_format对应的图片:32张,resolutions有个算法:getHighestRes,ID,INDEX等方面的算法:getImageFilename,file_id
  89. "fn_format": "pano/tiles/r$RES/$ID100/$ID-pano-tex-r$RES-$TILE.jpg",
  90. "depth_fn_format": "pano_depth/tiles/r$RES/$ID100/$ID-pano-depth-r$RES-$TILE.png",
  91. **********************************************************************************************************************************************************************************************
  92. 左侧栏的兴趣点对应:poi_types
  93. **********************************************************************************************************************************************************************************************
  94. 调试
  95. core.map.tile_url
  96. onLoadComplete 加载完全景图
  97. 是否有点云:t.config.showPointCloud
  98. t.prototype.mapToRepositoryEntities
  99. e.promiseFinally = function(t, e) {
  100. return t.then((function(t) {
  101. return e(),
  102. t
  103. }
  104. )).catch((function(t) {
  105. return e(),
  106. Promise.reject(t)
  107. }
  108. ))
  109. }
  110. **********************************************************************************************************************************************************************************************
  111. 两个后端请求
  112. http://indoor.popsmart.cn:8084/sxswsw/api/site_model/within?location=120.58627789013173&location=29.99158123449871&location=1.149475336074829&type=FLOOR
  113. http://indoor.popsmart.cn:8084/sxswsw/api/images/filter?hidden=false&lat=29.991621550412095&lon=120.58615962007934&radius=20&site_model_entity=2&site_model_entity=
  114. **********************************************************************************************************************************************************************************************
  115. 换文件名称
  116. 0.000f190386b228875e25.js —————————— 0.js
  117. 1.c1853290f670423b7527.js —————————— 1.js
  118. 2.2ce6b49b8b065f35ecd0.js —————————— 2.js
  119. 3.eaed849cc22768e36240.js —————————— 3.js
  120. 14.4331acc2c778ecc64c4a.js —————————— 14.js
  121. 15.911fc079db6705d168db.js —————————— 15.js
  122. 17.82bbf60e16d46d39aea0.js —————————— 17.js
  123. 18.74aff998a9a0809c55ec.js —————————— 18.js
  124. 19.77825ef0e44aed4d6923.js —————————— 19.js
  125. 20.6b25999da18928efa560.js —————————— 20.js
  126. 21.6e35bf5486d7bec96c04.js —————————— 21.js
  127. 22.5e732276a454498ed917.js —————————— 22.js
  128. 23.8641b8fc3d6165bb187f.js —————————— 23.js
  129. 24.4b5f0f3ea342b634f9c3.js —————————— 24.js
  130. 25.1f3d6c9616e13f12f5f2.js —————————— 25.js
  131. NotoSansCJKsc-Regular.3d696b37feacacc5ade6.js —————————— 5.js
  132. fonts.5129d374a8ae9f620fd1.js —————————— 8.js
  133. main.async.937f8f38454add70d57b.js —————————— 10.js
  134. vendors~main.async.cbcba49054e73e98695c.js —————————— 12.js
  135. PointCloud.6891a103d9b18f6f5ac7.worker.js —————————— PointCloud.worker.js
  136. 9f295a8711d42490962d5d7eb42bfee1.pen-nib-solid.cur ———————————————————— pen-nib-solid.cur
  137. 3cc6dd6b814d62e7270783a55e55773d.pen-nib-solid.png ———————————————————— pen-nib-solid.png
  138. a4a8aed5ebf7004a129844882204bbb4.rotate-cursor.png ———————————————————— rotate-cursor.png
  139. 681aa02995db01b49b6b5e6e83b85cce.rotate-cursor.cur ———————————————————— rotate-cursor.cur