Skip to content
Snippets Groups Projects
Commit 2a4041e5 authored by Joan Solà Ortega's avatar Joan Solà Ortega
Browse files

rename emplaceKeyFrame -> emplaceFrame

parent a460b10a
No related branches found
No related tags found
No related merge requests found
...@@ -84,20 +84,19 @@ class FeatureImu_test : public testing::Test ...@@ -84,20 +84,19 @@ class FeatureImu_test : public testing::Test
//emplace Frame //emplace Frame
ts = problem->getTimeStamp(); ts = problem->getTimeStamp();
state_vec = problem->getState().vector(problem->getFrameStructure()); state_vec = problem->getState().vector(problem->getFrameStructure());
last_frame = problem->emplaceKeyFrame(ts, state_vec); last_frame = problem->emplaceFrame(ts, state_vec);
//emplace a feature //emplace a feature
delta_preint = processor_motion_ptr_->getMotion().delta_integr_; delta_preint = processor_motion_ptr_->getMotion().delta_integr_;
delta_preint_cov = processor_motion_ptr_->getMotion().delta_integr_cov_ + MatrixXd::Identity(9,9)*1e-08; delta_preint_cov = processor_motion_ptr_->getMotion().delta_integr_cov_ + MatrixXd::Identity(9,9)*1e-08;
VectorXd calib_preint = processor_motion_ptr_->getLast()->getCalibrationPreint(); VectorXd calib_preint = processor_motion_ptr_->getLast()->getCalibrationPreint();
dD_db_jacobians = processor_motion_ptr_->getMotion().jacobian_calib_; dD_db_jacobians = processor_motion_ptr_->getMotion().jacobian_calib_;
feat_imu = std::static_pointer_cast<FeatureImu>( feat_imu = FeatureBase::emplace<FeatureImu>(imu_ptr,
FeatureBase::emplace<FeatureImu>(imu_ptr, delta_preint,
delta_preint, delta_preint_cov,
delta_preint_cov, calib_preint,
calib_preint, dD_db_jacobians,
dD_db_jacobians, imu_ptr) ;
imu_ptr) );
} }
void TearDown() override void TearDown() override
......
...@@ -502,7 +502,7 @@ class Process_Factor_Imu : public testing::Test ...@@ -502,7 +502,7 @@ class Process_Factor_Imu : public testing::Test
virtual void buildProblem() virtual void buildProblem()
{ {
// ===================================== SET KF in Wolf tree // ===================================== SET KF in Wolf tree
FrameBasePtr KF = problem->emplaceKeyFrame(t, x1_exact); FrameBasePtr KF = problem->emplaceFrame(t, x1_exact);
// ===================================== Imu CALLBACK // ===================================== Imu CALLBACK
problem->keyFrameCallback(KF, nullptr, dt/2); problem->keyFrameCallback(KF, nullptr, dt/2);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment