Memory: fixed keypoints3d wrongly copied when not using odom features

This commit is contained in:
matlabbe
2020-09-08 21:24:47 -04:00
parent f93cdc31a6
commit cabf03af44
2 changed files with 1 additions and 1 deletions

View File

@@ -4480,7 +4480,7 @@ Signature * Memory::createSignature(const SensorData & inputData, const Transfor
keypoints3D[i] = data.keypoints3D()[keypoints[i].class_id];
}
}
else if(keypoints.size() == data.keypoints3D().size())
else if(useProvided3dPoints && keypoints.size() == data.keypoints3D().size())
{
UDEBUG("Using provided 3d points (%d)", (int)data.keypoints3D().size());
keypoints3D = data.keypoints3D();