Camera test view: show intensity/rgb/normals if input scans have them

This commit is contained in:
matlabbe
2021-01-25 17:16:46 -05:00
parent 7e298e1999
commit 6b119c1f90
2 changed files with 28 additions and 2 deletions

View File

@@ -3262,6 +3262,7 @@ LaserScan loadScan(const std::string & path)
if(cloud->fields[i].name.compare("z") == 0)
{
zOffset = cloud->fields[i].offset;
break;
}
}
if(zOffset>=0)
@@ -3283,7 +3284,6 @@ LaserScan loadScan(const std::string & path)
}
}
}
return laserScanFromPointCloud(*cloud, true, is2D);
}
return LaserScan();