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

Remove frame's time tolerance from all APIs

parent ff93551e
No related branches found
No related tags found
1 merge request!24After 2nd RAL submission
...@@ -134,7 +134,7 @@ int main(int argc, char** argv) ...@@ -134,7 +134,7 @@ int main(int argc, char** argv)
Matrix6d P = Matrix6d::Identity() * 0.000001; // 1mm Matrix6d P = Matrix6d::Identity() * 0.000001; // 1mm
// ====== KF1 ====== // ====== KF1 ======
FrameBasePtr kf1 = problem->setPrior(x, P, t, dt/2); FrameBasePtr kf1 = problem->setPrior(x, P, t);
// Process capture // Process capture
CaptureImagePtr capture_1 = make_shared<CaptureImage>(t, camera, images.at(0)); CaptureImagePtr capture_1 = make_shared<CaptureImage>(t, camera, images.at(0));
......
...@@ -142,7 +142,7 @@ TEST(ProcessorTrackerFeatureTrifocal, KeyFrameCallback) ...@@ -142,7 +142,7 @@ TEST(ProcessorTrackerFeatureTrifocal, KeyFrameCallback)
TimeStamp t(0.0); TimeStamp t(0.0);
VectorComposite x("PO", {Vector3d::Zero(), Quaterniond::Identity().coeffs()}); VectorComposite x("PO", {Vector3d::Zero(), Quaterniond::Identity().coeffs()});
VectorComposite s("PO", {1e-3*Vector3d::Ones(), 1e-3*Vector3d::Ones()}); VectorComposite s("PO", {1e-3*Vector3d::Ones(), 1e-3*Vector3d::Ones()});
auto KF1 = problem->setPriorFactor(x, s, t, dt/2); // KF1 auto KF1 = problem->setPriorFactor(x, s, t); // KF1
std::static_pointer_cast<ProcessorOdom3d>(proc_odo)->setOrigin(KF1); std::static_pointer_cast<ProcessorOdom3d>(proc_odo)->setOrigin(KF1);
MatrixXd P = (s.vector("PO").array() * s.vector("PO").array()).matrix().asDiagonal(); MatrixXd P = (s.vector("PO").array() * s.vector("PO").array()).matrix().asDiagonal();
......
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