Added assert on PointCloud2 format (#560). rtabmap.launch: added gdb option for convenience.

This commit is contained in:
matlabbe
2021-03-27 21:51:06 -04:00
parent e7dd6cacbf
commit b9c7efdc8a
6 changed files with 14 additions and 5 deletions
+2
View File
@@ -2149,6 +2149,8 @@ bool convertScan3dMsg(
int maxPoints,
float maxRange)
{
UASSERT(scan3dMsg.data.size() == scan3dMsg.row_step*scan3dMsg.height);
bool hasNormals = false;
bool hasColors = false;
bool hasIntensity = false;