mirror of
https://github.com/introlab/rtabmap_ros.git
synced 2026-10-04 00:37:46 +08:00
Fixed MLS still done when not visible if checked before
This commit is contained in:
@@ -818,7 +818,7 @@ bool ExportCloudsDialog::getExportedClouds(
|
|||||||
}
|
}
|
||||||
|
|
||||||
std::map<int, Transform> viewPoints = poses;
|
std::map<int, Transform> viewPoints = poses;
|
||||||
if(_ui->groupBox_mls->isChecked())
|
if(_ui->groupBox_mls->isVisible() && _ui->groupBox_mls->isChecked())
|
||||||
{
|
{
|
||||||
_progressDialog->appendText(tr("Smoothing the surface using Moving Least Squares (MLS) algorithm... "
|
_progressDialog->appendText(tr("Smoothing the surface using Moving Least Squares (MLS) algorithm... "
|
||||||
"[search radius=%1m voxel=%2m]").arg(_ui->doubleSpinBox_mlsRadius->value()).arg(_ui->doubleSpinBox_voxelSize_assembled->value()));
|
"[search radius=%1m voxel=%2m]").arg(_ui->doubleSpinBox_mlsRadius->value()).arg(_ui->doubleSpinBox_voxelSize_assembled->value()));
|
||||||
@@ -850,7 +850,7 @@ bool ExportCloudsDialog::getExportedClouds(
|
|||||||
{
|
{
|
||||||
pcl::PointCloud<pcl::PointXYZRGBNormal>::Ptr cloudWithNormals = iter->second.first;
|
pcl::PointCloud<pcl::PointXYZRGBNormal>::Ptr cloudWithNormals = iter->second.first;
|
||||||
|
|
||||||
if(_ui->groupBox_mls->isChecked())
|
if(_ui->groupBox_mls->isVisible() && _ui->groupBox_mls->isChecked())
|
||||||
{
|
{
|
||||||
pcl::PointCloud<pcl::PointXYZRGB>::Ptr cloudWithoutNormals(new pcl::PointCloud<pcl::PointXYZRGB>);
|
pcl::PointCloud<pcl::PointXYZRGB>::Ptr cloudWithoutNormals(new pcl::PointCloud<pcl::PointXYZRGB>);
|
||||||
if(iter->second.first->isOrganized())
|
if(iter->second.first->isOrganized())
|
||||||
|
|||||||
Reference in New Issue
Block a user