tested and fixed setFirstFrame() function
This commit is contained in:
@@ -96,7 +96,6 @@ startFrameProcessingCommon()
|
|||||||
{
|
{
|
||||||
resetAll();
|
resetAll();
|
||||||
stage_ = FIRST_FRAME;
|
stage_ = FIRST_FRAME;
|
||||||
set_start_ = false;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if(stage_ == PAUSED)
|
if(stage_ == PAUSED)
|
||||||
@@ -145,6 +144,7 @@ resetCommon()
|
|||||||
map_.reset();
|
map_.reset();
|
||||||
stage_ = PAUSED;
|
stage_ = PAUSED;
|
||||||
set_reset_ = false;
|
set_reset_ = false;
|
||||||
|
set_start_ = false;
|
||||||
tracking_quality_ = BAD;
|
tracking_quality_ = BAD;
|
||||||
depth_filter_->reset();
|
depth_filter_->reset();
|
||||||
num_obs_last_ = 0;
|
num_obs_last_ = 0;
|
||||||
|
|||||||
@@ -79,6 +79,7 @@ setFirstFrame(const FramePtr& first_frame)
|
|||||||
{
|
{
|
||||||
resetAll();
|
resetAll();
|
||||||
last_frame_ = first_frame;
|
last_frame_ = first_frame;
|
||||||
|
last_frame_->setKeyframe();
|
||||||
map_.addKeyframe(last_frame_);
|
map_.addKeyframe(last_frame_);
|
||||||
stage_ = DEFAULT_FRAME;
|
stage_ = DEFAULT_FRAME;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user