add green new_added_pts

This commit is contained in:
hofee 2024-10-01 14:06:41 +08:00
parent 3c86c1e241
commit 37830ee869
3 changed files with 16 additions and 6 deletions

View File

@ -80,7 +80,7 @@
<div class="layout-logo"> <div class="layout-logo">
<img :src="logo" alt="Logo" style="width: 60px; margin-right: 20px;" />{{ project_name }}</div> <img :src="logo" alt="Logo" style="width: 60px; margin-right: 20px;" />{{ project_name }}</div>
</Menu> </Menu>
<Menu mode="horizontal" active-name="3" @on-select="handleSubMenuSelect" class="sub_menu"> <Menu mode="horizontal" active-name="1" @on-select="handleSubMenuSelect" class="sub_menu">
<div class="layout-assistant"> <div class="layout-assistant">
<Menu-item name="1"> <Menu-item name="1">
<Icon type="md-pie" size="16" />{{ sub_navi_name[0] }} <Icon type="md-pie" size="16" />{{ sub_navi_name[0] }}

View File

@ -106,8 +106,9 @@ export default {
"frame_id":0, "frame_id":0,
"coverage_rate": 0, "coverage_rate": 0,
"delta_CR": 0, "delta_CR": 0,
"combined_points": [], "combined_point_cloud": [],
"new_points": [], "new_point_cloud": [],
"new_added_pts": [],
}, },
@ -125,6 +126,7 @@ export default {
this.curr_frame_info["delta_CR"] = val[0]["data"]["delta_CR"]; this.curr_frame_info["delta_CR"] = val[0]["data"]["delta_CR"];
this.curr_frame_info["combined_point_cloud"] = val[0]["data"]["combined_point_cloud"]; this.curr_frame_info["combined_point_cloud"] = val[0]["data"]["combined_point_cloud"];
this.curr_frame_info["new_point_cloud"] = val[0]["data"]["new_point_cloud"]; this.curr_frame_info["new_point_cloud"] = val[0]["data"]["new_point_cloud"];
this.curr_frame_info["new_added_pts"] = val[0]["data"]["new_added_pts"];
this.updatePointCloud(); this.updatePointCloud();
this.view_cam_pose_list = []; this.view_cam_pose_list = [];
for (let i = 0; i < val.length; i++) { for (let i = 0; i < val.length; i++) {
@ -143,6 +145,7 @@ export default {
this.curr_frame_info["delta_CR"] = this.seqFrameData[val]["data"]["delta_CR"]; this.curr_frame_info["delta_CR"] = this.seqFrameData[val]["data"]["delta_CR"];
this.curr_frame_info["combined_point_cloud"] = this.seqFrameData[val]["data"]["combined_point_cloud"]; this.curr_frame_info["combined_point_cloud"] = this.seqFrameData[val]["data"]["combined_point_cloud"];
this.curr_frame_info["new_point_cloud"] = this.seqFrameData[val]["data"]["new_point_cloud"]; this.curr_frame_info["new_point_cloud"] = this.seqFrameData[val]["data"]["new_point_cloud"];
this.curr_frame_info["new_added_pts"] = this.seqFrameData[val]["data"]["new_added_pts"];
this.updatePointCloud(); this.updatePointCloud();
} }
}, },
@ -187,10 +190,11 @@ export default {
} }
this.combinedPointCloudMesh = this.createPointCloud(this.curr_frame_info["combined_point_cloud"], 0x0000ff); this.combinedPointCloudMesh = this.createPointCloud(this.curr_frame_info["combined_point_cloud"], 0x0000ff);
this.newPointCloudMesh = this.createPointCloud(this.curr_frame_info["new_point_cloud"], 0xff0000); this.newPointCloudMesh = this.createPointCloud(this.curr_frame_info["new_point_cloud"], 0xff0000);
this.newAddedPtsMesh = this.createPointCloud(this.curr_frame_info["new_added_pts"], 0x00ff00);
this.pts_scene.add(this.combinedPointCloudMesh); this.pts_scene.add(this.combinedPointCloudMesh);
this.pts_scene.add(this.newPointCloudMesh); this.pts_scene.add(this.newPointCloudMesh);
this.pts_scene.add(this.newAddedPtsMesh);
}, },

View File

@ -64,6 +64,7 @@ export default {
combined_point_cloud: [], combined_point_cloud: [],
new_point_cloud: [], new_point_cloud: [],
new_added_pts: [],
best_seq: null, best_seq: null,
hasImg: false, hasImg: false,
@ -73,8 +74,9 @@ export default {
"frame_id":0, "frame_id":0,
"coverage_rate": 0, "coverage_rate": 0,
"delta_CR": 0, "delta_CR": 0,
"combined_points": [], "combined_point_cloud": [],
"new_points": [], "new_point_cloud": [],
"new_added_pts": [],
}, },
@ -91,6 +93,7 @@ export default {
this.curr_frame_info["delta_CR"] = val[0]["data"]["delta_CR"]; this.curr_frame_info["delta_CR"] = val[0]["data"]["delta_CR"];
this.curr_frame_info["combined_point_cloud"] = val[0]["data"]["combined_point_cloud"]; this.curr_frame_info["combined_point_cloud"] = val[0]["data"]["combined_point_cloud"];
this.curr_frame_info["new_point_cloud"] = val[0]["data"]["new_point_cloud"]; this.curr_frame_info["new_point_cloud"] = val[0]["data"]["new_point_cloud"];
this.curr_frame_info["new_added_pts"] = val[0]["data"]["new_added_pts"];
this.updatePointCloud(); this.updatePointCloud();
this.view_cam_pose_list = []; this.view_cam_pose_list = [];
for (let i = 0; i < val.length; i++) { for (let i = 0; i < val.length; i++) {
@ -107,6 +110,7 @@ export default {
this.curr_frame_info["coverage_rate"] = this.seqFrameData[val]["data"]["coverage_rate"]; this.curr_frame_info["coverage_rate"] = this.seqFrameData[val]["data"]["coverage_rate"];
this.curr_frame_info["delta_CR"] = this.seqFrameData[val]["data"]["delta_CR"]; this.curr_frame_info["delta_CR"] = this.seqFrameData[val]["data"]["delta_CR"];
this.curr_frame_info["combined_point_cloud"] = this.seqFrameData[val]["data"]["combined_point_cloud"]; this.curr_frame_info["combined_point_cloud"] = this.seqFrameData[val]["data"]["combined_point_cloud"];
this.curr_frame_info["new_added_pts"] = this.seqFrameData[val]["data"]["new_added_pts"];
this.curr_frame_info["new_point_cloud"] = this.seqFrameData[val]["data"]["new_point_cloud"]; this.curr_frame_info["new_point_cloud"] = this.seqFrameData[val]["data"]["new_point_cloud"];
this.updatePointCloud(); this.updatePointCloud();
} }
@ -152,9 +156,11 @@ export default {
} }
this.combinedPointCloudMesh = this.createPointCloud(this.curr_frame_info["combined_point_cloud"], 0x0000ff); this.combinedPointCloudMesh = this.createPointCloud(this.curr_frame_info["combined_point_cloud"], 0x0000ff);
this.newPointCloudMesh = this.createPointCloud(this.curr_frame_info["new_point_cloud"], 0xff0000); this.newPointCloudMesh = this.createPointCloud(this.curr_frame_info["new_point_cloud"], 0xff0000);
this.newAddedPtsMesh = this.createPointCloud(this.curr_frame_info["new_added_pts"], 0x00ff00);
this.pts_scene.add(this.combinedPointCloudMesh); this.pts_scene.add(this.combinedPointCloudMesh);
this.pts_scene.add(this.newPointCloudMesh); this.pts_scene.add(this.newPointCloudMesh);
this.pts_scene.add(this.newAddedPtsMesh);
}, },