mirror of
https://github.com/introlab/rtabmap.git
synced 2026-09-02 17:40:23 +08:00
Fixed F2F-Optical flow not creating keyframes bug
This commit is contained in:
@@ -240,7 +240,7 @@ Transform OdometryF2F::computeTransform(
|
||||
{
|
||||
UDEBUG("Update key frame");
|
||||
int features = newFrame.getWordsDescriptors().rows;
|
||||
if(!refFrame_.sensorData().isValid())
|
||||
if(!refFrame_.sensorData().isValid() || (features==0 && registrationPipeline_->isImageRequired()))
|
||||
{
|
||||
newFrame = Signature(data);
|
||||
// this will generate features only for the first frame or if optical flow was used (no 3d words)
|
||||
|
||||
Reference in New Issue
Block a user