mirror of
https://github.com/introlab/rtabmap.git
synced 2026-09-03 01:50:24 +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");
|
UDEBUG("Update key frame");
|
||||||
int features = newFrame.getWordsDescriptors().rows;
|
int features = newFrame.getWordsDescriptors().rows;
|
||||||
if(!refFrame_.sensorData().isValid())
|
if(!refFrame_.sensorData().isValid() || (features==0 && registrationPipeline_->isImageRequired()))
|
||||||
{
|
{
|
||||||
newFrame = Signature(data);
|
newFrame = Signature(data);
|
||||||
// this will generate features only for the first frame or if optical flow was used (no 3d words)
|
// 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