mirror of
https://github.com/introlab/rtabmap.git
synced 2026-09-02 17:40:23 +08:00
GUI: fixed seg fault when showing scan with intensity and computed normals
This commit is contained in:
@@ -3405,7 +3405,7 @@ void MainWindow::createAndAddScanToMap(int nodeId, const Transform & pose, int m
|
|||||||
normals = util3d::computeNormals(cloudI, _preferencesDialog->getScanNormalKSearch(), _preferencesDialog->getScanNormalRadiusSearch(), scanViewpoint);
|
normals = util3d::computeNormals(cloudI, _preferencesDialog->getScanNormalKSearch(), _preferencesDialog->getScanNormalRadiusSearch(), scanViewpoint);
|
||||||
}
|
}
|
||||||
cloudIWithNormals.reset(new pcl::PointCloud<pcl::PointXYZINormal>);
|
cloudIWithNormals.reset(new pcl::PointCloud<pcl::PointXYZINormal>);
|
||||||
pcl::concatenateFields(*cloud, *normals, *cloudIWithNormals);
|
pcl::concatenateFields(*cloudI, *normals, *cloudIWithNormals);
|
||||||
cloudI.reset();
|
cloudI.reset();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user