![]() |
SLProject 4.0.000
|
#include <WAISlam.h>
Classes | |
struct | Params |
Public Member Functions | |
WAISlam (const cv::Mat &intrinsic, const cv::Mat &distortion, WAIOrbVocabulary *voc, KPextractor *iniExtractor, KPextractor *relocExtractor, KPextractor *extractor, std::unique_ptr< WAIMap > globalMap, WAISlam::Params params) | |
virtual | ~WAISlam () |
virtual void | reset () |
void | changeIntrinsic (cv::Mat intrinsic, cv::Mat distortion) |
void | createFrame (WAIFrame &frame, cv::Mat &imageGray) |
virtual void | updatePose (WAIFrame &frame) |
virtual bool | update (cv::Mat &imageGray) |
virtual void | updatePoseKFIntegration (WAIFrame &frame) |
virtual void | resume () |
virtual bool | isTracking () |
virtual bool | hasStateIdle () |
virtual void | requestStateIdle () |
virtual bool | retainImage () |
void | transformCoords (cv::Mat transform) |
std::vector< WAIMapPoint * > | getMatchedMapPoints (WAIFrame *frame) |
int | getMatchedCorrespondances (WAIFrame *frame, std::pair< std::vector< cv::Point2f >, std::vector< cv::Point3f > > &matching) |
virtual bool | isInitialized () |
virtual WAIMap * | getMap () |
virtual WAIFrame | getLastFrame () |
virtual WAIFrame * | getLastFramePtr () |
virtual std::vector< WAIMapPoint * > | getLocalMapPoints () |
virtual int | getNumKeyFrames () |
virtual std::vector< WAIMapPoint * > | getMapPoints () |
virtual std::vector< WAIKeyFrame * > | getKeyFrames () |
virtual std::string | getPrintableState () |
virtual int | getKeyPointCount () |
virtual int | getKeyFrameCount () |
virtual int | getMapPointCount () |
virtual cv::Mat | getPose () |
virtual void | setCamExrinsicGuess (cv::Mat extrinsicGuess) |
virtual void | setMap (std::unique_ptr< WAIMap > globalMap) |
virtual WAITrackingState | getTrackingState () |
virtual void | drawInfo (cv::Mat &imageBGR, float scale, bool showInitLine, bool showKeyPoints, bool showKeyPointsMatched) |
KPextractor * | getKPextractor () |
int | getMapPointMatchesCount () const |
std::string | getLoopCloseStatus () |
int | getLoopCloseCount () |
int | getKeyFramesInLoopCloseQueueCount () |
Protected Member Functions | |
void | updateState (WAITrackingState state) |
bool | finishRequested () |
void | requestFinish () |
bool | isStop () |
bool | isFinished () |
void | flushQueue () |
int | getNextFrame (WAIFrame &frame) |
![]() | |
virtual | ~WAISlamTools () |
WAISlamTools () | |
Static Protected Member Functions | |
static void | updatePoseThread (WAISlam *ptr) |
![]() | |
static void | countReprojectionOutliers (WAIFrame &frame, unsigned int &m, unsigned int &n, unsigned int &outliers) |
Additional Inherited Members | |
![]() | |
static void | drawKeyPointInfo (WAIFrame &frame, cv::Mat &image, float scale) |
static void | drawKeyPointMatches (WAIFrame &frame, cv::Mat &image, float scale) |
static void | drawInitInfo (WAIInitializerData &iniData, WAIFrame &frame, cv::Mat &imageBGR, float scale) |
static bool | initialize (WAIInitializerData &iniData, WAIFrame &frame, WAIOrbVocabulary *voc, LocalMap &localMap, int mapPointsNeeded=100) |
static bool | genInitialMap (WAIMap *globalMap, LocalMapping *localMapper, LoopClosing *loopCloser, LocalMap &localMap) |
static bool | oldInitialize (WAIFrame &frame, WAIInitializerData &iniData, WAIMap *map, LocalMap &localMap, LocalMapping *localMapper, LoopClosing *loopCloser, WAIOrbVocabulary *voc, int mapPointsNeeded=100) |
static int | findFrameFixedMapMatches (WAIFrame &frame, WAIMap *waiMap, std::vector< cv::Point2f > &points2d, std::vector< cv::Point3f > &points3d) |
static bool | relocalization (WAIFrame ¤tFrame, WAIMap *waiMap, LocalMap &localMap, float minCommonWordFactor, int &inliers, bool minAccScoreFilter=false) |
static bool | relocalizationGPS (WAIFrame ¤tFrame, WAIMap *waiMap, LocalMap &localMap, cv::Mat locENU, cv::Mat dirENU, float minCommonWordFactor, int &inliers, bool minAccScoreFilter) |
static bool | tracking (WAIMap *map, LocalMap &localMap, WAIFrame &frame, WAIFrame &lastFrame, int lastRelocFrameId, cv::Mat &velocity, int &inliers) |
static bool | strictTracking (WAIMap *map, LocalMap &localMap, WAIFrame &frame, WAIFrame &lastFrame, int lastRelocFrameId, int &inliers) |
static bool | trackLocalMap (LocalMap &localMap, WAIFrame &frame, int lastRelocFrameId, int &inliers) |
static void | mapping (WAIMap *map, LocalMap &localMap, LocalMapping *localMapper, WAIFrame &frame, int inliers, const unsigned long lastRelocFrameId, unsigned long &lastKeyFrameFrameId) |
static void | strictMapping (WAIMap *map, LocalMap &localMap, LocalMapping *localMapper, WAIFrame &frame, int inliers, const unsigned long lastRelocFrameId, unsigned long &lastKeyFrameFrameId) |
static void | motionModel (WAIFrame &frame, WAIFrame &lastFrame, cv::Mat &velocity, cv::Mat &pose) |
static bool | trackReferenceKeyFrame (LocalMap &map, WAIFrame &lastFrame, WAIFrame &frame) |
static bool | strictTrackReferenceKeyFrame (LocalMap &map, WAIFrame &lastFrame, WAIFrame &frame) |
static bool | trackWithMotionModel (cv::Mat velocity, WAIFrame &previousFrame, WAIFrame &frame) |
static void | updateLocalMap (WAIFrame &frame, LocalMap &localMap) |
static int | trackLocalMapPoints (LocalMap &localMap, int lastRelocFrameId, WAIFrame &frame) |
static bool | needNewKeyFrame (WAIMap *globalMap, LocalMap &localMap, LocalMapping *localMapper, WAIFrame &frame, int nInliners, const unsigned long lastRelocFrameId, const unsigned long lastKeyFrameFrameId) |
static bool | strictNeedNewKeyFrame (WAIMap *map, LocalMap &localMap, LocalMapping *localMapper, WAIFrame &frame, int nInliers, const unsigned long lastRelocFrameId, const unsigned long lastKeyFrameFrameId) |
static void | createNewKeyFrame (LocalMapping *localMapper, LocalMap &localMap, WAIMap *globalMap, WAIFrame &frame, unsigned long &lastKeyFrameFrameId) |
static WAIFrame | createMarkerFrame (std::string markerFile, KPextractor *markerExtractor, const cv::Mat &markerCameraIntrinsic, WAIOrbVocabulary *voc) |
static bool | findMarkerHomography (WAIFrame &markerFrame, WAIKeyFrame *kfCand, cv::Mat &homography, int minMatches) |
static bool | doMarkerMapPreprocessing (std::string markerFile, cv::Mat &nodeTransform, float markerWidthInM, KPextractor *markerExtractor, WAIMap *map, const cv::Mat &markerCameraIntrinsic, WAIOrbVocabulary *voc) |
static bool | detectCycle (WAIKeyFrame *kf, std::set< WAIKeyFrame * > &visitedNode) |
static bool | checkKFConnectionsTree (WAIMap *map) |
WAISlam::WAISlam | ( | const cv::Mat & | intrinsic, |
const cv::Mat & | distortion, | ||
WAIOrbVocabulary * | voc, | ||
KPextractor * | iniExtractor, | ||
KPextractor * | relocExtractor, | ||
KPextractor * | extractor, | ||
std::unique_ptr< WAIMap > | globalMap, | ||
WAISlam::Params | params | ||
) |
|
virtual |
void WAISlam::changeIntrinsic | ( | cv::Mat | intrinsic, |
cv::Mat | distortion | ||
) |
void WAISlam::createFrame | ( | WAIFrame & | frame, |
cv::Mat & | imageGray | ||
) |
|
virtual |
|
protected |
|
protected |
|
inlinevirtual |
|
inlinevirtual |
int WAISlam::getKeyFramesInLoopCloseQueueCount | ( | ) |
|
inlinevirtual |
|
inline |
|
virtual |
|
virtual |
|
inlinevirtual |
int WAISlam::getLoopCloseCount | ( | ) |
std::string WAISlam::getLoopCloseStatus | ( | ) |
|
inlinevirtual |
|
inlinevirtual |
int WAISlam::getMapPointMatchesCount | ( | ) | const |
|
inlinevirtual |
int WAISlam::getMatchedCorrespondances | ( | WAIFrame * | frame, |
std::pair< std::vector< cv::Point2f >, std::vector< cv::Point3f > > & | matching | ||
) |
std::vector< WAIMapPoint * > WAISlam::getMatchedMapPoints | ( | WAIFrame * | frame | ) |
|
protected |
|
inlinevirtual |
|
virtual |
|
inlinevirtual |
|
inlinevirtual |
|
virtual |
|
protected |
|
inlinevirtual |
|
protected |
|
virtual |
|
protected |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
void WAISlam::transformCoords | ( | cv::Mat | transform | ) |
|
virtual |
|
virtual |
|
virtual |
|
staticprotected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |