fixed scan-only nodes wrongly set as intermediate nodes by default

This commit is contained in:
matlabbe
2021-01-24 11:35:48 -05:00
parent 57326214f1
commit e99c658276

View File

@@ -4131,7 +4131,7 @@ Signature * Memory::createSignature(const SensorData & inputData, const Transfor
float t;
std::vector<cv::KeyPoint> keypoints;
cv::Mat descriptors;
bool isIntermediateNode = data.id() < 0 || (data.imageRaw().empty() && data.keypoints().empty());
bool isIntermediateNode = data.id() < 0 || (data.imageRaw().empty() && data.keypoints().empty() && data.laserScanRaw().empty());
int id = data.id();
if(_generateIds)
{