diff options
author | Miller | 2017-07-04 23:34:11 -0500 |
---|---|---|
committer | Miller | 2017-07-04 23:34:11 -0500 |
commit | 4ad4e12cb2df5ac031eaf759517179a8e0cd87af (patch) | |
tree | 8708f575c27c60fc8fe346dc903f1fbf97382ccc /src/state.cpp | |
parent | c4356f7eb431649505cf2bf10b2198af76f90eae (diff) | |
download | refslam-4ad4e12cb2df5ac031eaf759517179a8e0cd87af.zip refslam-4ad4e12cb2df5ac031eaf759517179a8e0cd87af.tar.gz |
set ransac thresh and covbias
Diffstat (limited to 'src/state.cpp')
-rw-r--r-- | src/state.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/state.cpp b/src/state.cpp index cbf0e15..8b1ff3f 100644 --- a/src/state.cpp +++ b/src/state.cpp @@ -21,7 +21,7 @@ State::State ( ) { body = new Body; P = Matrix<double,Dynamic,Dynamic>::Zero(STATESIZE,STATESIZE); - P.block<3,3>(6,6) = COVBIAS*Matrix3d::Identity(); + P.block<3,3>(6,6) = covbias*Matrix3d::Identity(); return ; } /* ----- end of method State::State ----- */ @@ -988,7 +988,7 @@ State::ransacUpdate ( vector<measurement_t> &z, const Quaterniond &q ) } if (!found) { Feature *ft = featureById(i->id); - if (ft->isInlier(*i, Pxx(), Pxy(i->id), Pyy(i->id), body->ned(), q, RANSAC_HI_THRESHOLD)) { + if (ft->isInlier(*i, Pxx(), Pxy(i->id), Pyy(i->id), body->ned(), q, ransac_hi_threshold)) { hi_inliers.push_back(*i); } else { removeFeature(i->id, true); |