#include <MapMaker.h>
Classes | |
struct | Command |
Public Member Functions | |
void | AddKeyFrame (KeyFrame &k) |
bool | InitFromStereo (KeyFrame &kFirst, KeyFrame &kSecond, std::vector< std::pair< CVD::ImageRef, CVD::ImageRef > > &vMatches, SE3<> &se3CameraPos, SE3<> KFZeroDesiredCamFromWorld, SE3<> KFOneDesiredCamFromWorld) |
bool | InitFromStereo_OLD (KeyFrame &kFirst, KeyFrame &kSecond, std::vector< std::pair< CVD::ImageRef, CVD::ImageRef > > &vMatches, SE3<> &se3CameraPos) |
bool | IsDistanceToNearestKeyFrameExcessive (KeyFrame &kCurrent) |
MapMaker (Map &m, const ATANCamera &cam) | |
bool | NeedNewKeyFrame (KeyFrame &kCurrent) |
int | QueueSize () |
void | RequestReset () |
bool | ResetDone () |
void | SetMinTolerance (double min_tol) |
~MapMaker () | |
Public Attributes | |
double | currentScaleFactor |
double | initialScaleFactor |
double | lastMetricDist |
double | lastWiggleDist |
double | max_tol |
double | min_tol |
double | minKFDist |
double | minKFWiggleDist |
Protected Member Functions | |
void | AddKeyFrameFromTopOfQueue () |
bool | AddPointEpipolar (KeyFrame &kSrc, KeyFrame &kTarget, int nLevel, int nCandidate) |
void | AddSomeMapPoints (int nLevel) |
void | ApplyGlobalScaleToMap (double dScale) |
void | ApplyGlobalTransformationToMap (SE3<> se3NewFromOld) |
void | BundleAdjust (std::set< KeyFrame * >, std::set< KeyFrame * >, std::set< MapPoint * >, bool) |
void | BundleAdjustAll () |
void | BundleAdjustRecent () |
SE3 | CalcPlaneAligner () |
KeyFrame * | ClosestKeyFrame (KeyFrame &k) |
double | DistToNearestKeyFrame (KeyFrame &kCurrent) |
void | GUICommandHandler (std::string sCommand, std::string sParams) |
void | HandleBadPoints () |
double | KeyFrameLinearDist (KeyFrame &k1, KeyFrame &k2) |
std::vector< KeyFrame * > | NClosestKeyFrames (KeyFrame &k, unsigned int N) |
bool | ReFind_Common (KeyFrame &k, MapPoint &p) |
void | ReFindAll () |
void | ReFindFromFailureQueue () |
int | ReFindInSingleKeyFrame (KeyFrame &k) |
void | ReFindNewlyMade () |
void | RefreshSceneDepth (KeyFrame *pKF) |
Vector< 3 > | ReprojectPoint (SE3<> se3AfromB, const Vector< 2 > &v2A, const Vector< 2 > &v2B) |
void | Reset () |
virtual void | run () |
void | SubPixelRefineMatches (KeyFrame &k, int nLevel) |
void | ThinCandidates (KeyFrame &k, int nLevel) |
Static Protected Member Functions | |
static void | GUICommandCallBack (void *ptr, std::string sCommand, std::string sParams) |
Protected Attributes | |
bool | mbBundleAbortRequested |
bool | mbBundleConverged_Full |
bool | mbBundleConverged_Recent |
bool | mbBundleRunning |
bool | mbBundleRunningIsRecent |
bool | mbResetDone |
bool | mbResetRequested |
ATANCamera | mCamera |
double | mdWiggleScale |
double | mdWiggleScaleDepthNormalized |
GVars3::gvar3< double > | mgvdWiggleScale |
Map & | mMap |
std::queue< MapPoint * > | mqNewQueue |
std::vector< std::pair < KeyFrame *, MapPoint * > > | mvFailureQueue |
std::vector< KeyFrame * > | mvpKeyFrameQueue |
std::vector< Command > | mvQueuedCommands |
Definition at line 38 of file MapMaker.h.
MapMaker::MapMaker | ( | Map & | m, |
const ATANCamera & | cam | ||
) |
Definition at line 34 of file MapMaker.cc.
Definition at line 165 of file MapMaker.cc.
void MapMaker::AddKeyFrame | ( | KeyFrame & | k | ) |
Definition at line 502 of file MapMaker.cc.
void MapMaker::AddKeyFrameFromTopOfQueue | ( | ) | [protected] |
Definition at line 513 of file MapMaker.cc.
bool MapMaker::AddPointEpipolar | ( | KeyFrame & | kSrc, |
KeyFrame & | kTarget, | ||
int | nLevel, | ||
int | nCandidate | ||
) | [protected] |
Definition at line 546 of file MapMaker.cc.
void MapMaker::AddSomeMapPoints | ( | int | nLevel | ) | [protected] |
Definition at line 449 of file MapMaker.cc.
void MapMaker::ApplyGlobalScaleToMap | ( | double | dScale | ) | [protected] |
Definition at line 477 of file MapMaker.cc.
void MapMaker::ApplyGlobalTransformationToMap | ( | SE3<> | se3NewFromOld | ) | [protected] |
Definition at line 462 of file MapMaker.cc.
void MapMaker::BundleAdjust | ( | std::set< KeyFrame * > | , |
std::set< KeyFrame * > | , | ||
std::set< MapPoint * > | , | ||
bool | |||
) | [protected] |
Definition at line 842 of file MapMaker.cc.
void MapMaker::BundleAdjustAll | ( | ) | [protected] |
Definition at line 771 of file MapMaker.cc.
void MapMaker::BundleAdjustRecent | ( | ) | [protected] |
Definition at line 792 of file MapMaker.cc.
SE3 MapMaker::CalcPlaneAligner | ( | ) | [protected] |
Definition at line 1105 of file MapMaker.cc.
KeyFrame * MapMaker::ClosestKeyFrame | ( | KeyFrame & | k | ) | [protected] |
Definition at line 729 of file MapMaker.cc.
double MapMaker::DistToNearestKeyFrame | ( | KeyFrame & | kCurrent | ) | [protected] |
Definition at line 748 of file MapMaker.cc.
void MapMaker::GUICommandCallBack | ( | void * | ptr, |
std::string | sCommand, | ||
std::string | sParams | ||
) | [static, protected] |
Definition at line 1231 of file MapMaker.cc.
void MapMaker::GUICommandHandler | ( | std::string | sCommand, |
std::string | sParams | ||
) | [protected] |
Definition at line 1239 of file MapMaker.cc.
void MapMaker::HandleBadPoints | ( | ) | [protected] |
Definition at line 138 of file MapMaker.cc.
bool MapMaker::InitFromStereo | ( | KeyFrame & | kFirst, |
KeyFrame & | kSecond, | ||
std::vector< std::pair< CVD::ImageRef, CVD::ImageRef > > & | vMatches, | ||
SE3<> & | se3CameraPos, | ||
SE3<> | KFZeroDesiredCamFromWorld, | ||
SE3<> | KFOneDesiredCamFromWorld | ||
) |
Definition at line 199 of file MapMaker.cc.
bool MapMaker::InitFromStereo_OLD | ( | KeyFrame & | kFirst, |
KeyFrame & | kSecond, | ||
std::vector< std::pair< CVD::ImageRef, CVD::ImageRef > > & | vMatches, | ||
SE3<> & | se3CameraPos | ||
) |
bool MapMaker::IsDistanceToNearestKeyFrameExcessive | ( | KeyFrame & | kCurrent | ) |
Definition at line 1099 of file MapMaker.cc.
double MapMaker::KeyFrameLinearDist | ( | KeyFrame & | k1, |
KeyFrame & | k2 | ||
) | [protected] |
Definition at line 700 of file MapMaker.cc.
vector< KeyFrame * > MapMaker::NClosestKeyFrames | ( | KeyFrame & | k, |
unsigned int | N | ||
) | [protected] |
Definition at line 709 of file MapMaker.cc.
bool MapMaker::NeedNewKeyFrame | ( | KeyFrame & | kCurrent | ) |
Definition at line 755 of file MapMaker.cc.
int MapMaker::QueueSize | ( | ) | [inline] |
Definition at line 59 of file MapMaker.h.
bool MapMaker::ReFind_Common | ( | KeyFrame & | k, |
MapPoint & | p | ||
) | [protected] |
Definition at line 964 of file MapMaker.cc.
void MapMaker::ReFindAll | ( | ) | [protected] |
void MapMaker::ReFindFromFailureQueue | ( | ) | [protected] |
Definition at line 1084 of file MapMaker.cc.
int MapMaker::ReFindInSingleKeyFrame | ( | KeyFrame & | k | ) | [protected] |
Definition at line 1045 of file MapMaker.cc.
void MapMaker::ReFindNewlyMade | ( | ) | [protected] |
Definition at line 1062 of file MapMaker.cc.
void MapMaker::RefreshSceneDepth | ( | KeyFrame * | pKF | ) | [protected] |
Definition at line 1212 of file MapMaker.cc.
Vector< 3 > MapMaker::ReprojectPoint | ( | SE3<> | se3AfromB, |
const Vector< 2 > & | v2A, | ||
const Vector< 2 > & | v2B | ||
) | [protected] |
Definition at line 176 of file MapMaker.cc.
void MapMaker::RequestReset | ( | ) |
Definition at line 125 of file MapMaker.cc.
void MapMaker::Reset | ( | ) | [protected] |
Definition at line 44 of file MapMaker.cc.
bool MapMaker::ResetDone | ( | ) |
Definition at line 131 of file MapMaker.cc.
void MapMaker::run | ( | ) | [protected, virtual] |
Definition at line 64 of file MapMaker.cc.
void MapMaker::SetMinTolerance | ( | double | min_tol | ) | [inline] |
Definition at line 63 of file MapMaker.h.
void MapMaker::SubPixelRefineMatches | ( | KeyFrame & | k, |
int | nLevel | ||
) | [protected] |
void MapMaker::ThinCandidates | ( | KeyFrame & | k, |
int | nLevel | ||
) | [protected] |
Definition at line 411 of file MapMaker.cc.
double MapMaker::currentScaleFactor |
Definition at line 68 of file MapMaker.h.
double MapMaker::initialScaleFactor |
Definition at line 67 of file MapMaker.h.
double MapMaker::lastMetricDist |
Definition at line 71 of file MapMaker.h.
double MapMaker::lastWiggleDist |
Definition at line 72 of file MapMaker.h.
double MapMaker::max_tol |
Definition at line 76 of file MapMaker.h.
bool MapMaker::mbBundleAbortRequested [protected] |
Definition at line 144 of file MapMaker.h.
bool MapMaker::mbBundleConverged_Full [protected] |
Definition at line 138 of file MapMaker.h.
bool MapMaker::mbBundleConverged_Recent [protected] |
Definition at line 139 of file MapMaker.h.
bool MapMaker::mbBundleRunning [protected] |
Definition at line 145 of file MapMaker.h.
bool MapMaker::mbBundleRunningIsRecent [protected] |
Definition at line 146 of file MapMaker.h.
bool MapMaker::mbResetDone [protected] |
Definition at line 143 of file MapMaker.h.
bool MapMaker::mbResetRequested [protected] |
Definition at line 142 of file MapMaker.h.
ATANCamera MapMaker::mCamera [protected] |
Definition at line 81 of file MapMaker.h.
double MapMaker::mdWiggleScale [protected] |
Definition at line 132 of file MapMaker.h.
double MapMaker::mdWiggleScaleDepthNormalized [protected] |
Definition at line 135 of file MapMaker.h.
GVars3::gvar3<double> MapMaker::mgvdWiggleScale [protected] |
Definition at line 134 of file MapMaker.h.
double MapMaker::min_tol |
Definition at line 75 of file MapMaker.h.
double MapMaker::minKFDist |
Definition at line 70 of file MapMaker.h.
double MapMaker::minKFWiggleDist |
Definition at line 69 of file MapMaker.h.
Map& MapMaker::mMap [protected] |
Definition at line 80 of file MapMaker.h.
std::queue<MapPoint*> MapMaker::mqNewQueue [protected] |
Definition at line 130 of file MapMaker.h.
std::vector<std::pair<KeyFrame*, MapPoint*> > MapMaker::mvFailureQueue [protected] |
Definition at line 129 of file MapMaker.h.
std::vector<KeyFrame*> MapMaker::mvpKeyFrameQueue [protected] |
Definition at line 128 of file MapMaker.h.
std::vector<Command> MapMaker::mvQueuedCommands [protected] |
Definition at line 124 of file MapMaker.h.