Public Member Functions | Protected Member Functions | Protected Attributes | Private Member Functions | Private Attributes | List of all members
rtabmap::DBDriverSqlite3 Class Reference

#include <DBDriverSqlite3.h>

Inheritance diagram for rtabmap::DBDriverSqlite3:
Inheritance graph
[legend]

Public Member Functions

 DBDriverSqlite3 (const ParametersMap &parameters=ParametersMap())
 
virtual bool isInMemory () const
 
virtual void parseParameters (const ParametersMap &parameters)
 
void setCacheSize (unsigned int cacheSize)
 
void setDbInMemory (bool dbInMemory)
 
void setJournalMode (int journalMode)
 
void setSynchronous (int synchronous)
 
void setTempStore (int tempStore)
 
virtual ~DBDriverSqlite3 ()
 
- Public Member Functions inherited from rtabmap::DBDriver
void addInfoAfterRun (int stMemSize, int lastSignAdded, int processMemUsed, int databaseMemUsed, int dictionarySize, const ParametersMap &parameters) const
 
void addLink (const Link &link)
 
void addStatistics (const Statistics &statistics) const
 
void asyncSave (Signature *s)
 
void asyncSave (VisualWord *vw)
 
void beginTransaction () const
 
void closeConnection (bool save=true, const std::string &outputUrl="")
 
void commit () const
 
void emptyTrashes (bool async=false)
 
void executeNoResult (const std::string &sql) const
 
void generateGraph (const std::string &fileName, const std::set< int > &ids=std::set< int >(), const std::map< int, Signature * > &otherSignatures=std::map< int, Signature * >())
 
void getAllLabels (std::map< int, std::string > &labels) const
 
void getAllLinks (std::multimap< int, Link > &links, bool ignoreNullLinks=true) const
 
void getAllNodeIds (std::set< int > &ids, bool ignoreChildren=false, bool ignoreBadSignatures=false) const
 
std::map< int, std::pair< std::map< std::string, float >, double > > getAllStatistics () const
 
std::map< int, std::vector< int > > getAllStatisticsWmStates () const
 
bool getCalibration (int signatureId, std::vector< CameraModel > &models, StereoCameraModel &stereoModel) const
 
long getCalibrationsMemoryUsed () const
 
std::string getDatabaseVersion () const
 
long getDepthImagesMemoryUsed () const
 
double getEmptyTrashesTime () const
 
long getFeaturesMemoryUsed () const
 
long getGridsMemoryUsed () const
 
long getImagesMemoryUsed () const
 
void getInvertedIndexNi (int signatureId, int &ni) const
 
bool getLaserScanInfo (int signatureId, LaserScan &info) const
 
long getLaserScansMemoryUsed () const
 
int getLastDictionarySize () const
 
void getLastNodeId (int &id) const
 
int getLastNodesSize () const
 
ParametersMap getLastParameters () const
 
void getLastWordId (int &id) const
 
long getLinksMemoryUsed () const
 
long getMemoryUsed () const
 
void getNodeData (int signatureId, SensorData &data, bool images=true, bool scan=true, bool userData=true, bool occupancyGrid=true) const
 
void getNodeIdByLabel (const std::string &label, int &id) const
 
bool getNodeInfo (int signatureId, Transform &pose, int &mapId, int &weight, std::string &label, double &stamp, Transform &groundTruthPose, std::vector< float > &velocity, GPS &gps) const
 
long getNodesMemoryUsed () const
 
std::map< std::string, float > getStatistics (int nodeId, double &stamp, std::vector< int > *wmState=0) const
 
long getStatisticsMemoryUsed () const
 
int getTotalDictionarySize () const
 
int getTotalNodesSize () const
 
const std::string & getUrl () const
 
long getUserDataMemoryUsed () const
 
void getWeight (int signatureId, int &weight) const
 
long getWordsMemoryUsed () const
 
bool isConnected () const
 
void load (VWDictionary *dictionary, bool lastStateOnly=true) const
 
cv::Mat load2DMap (float &xMin, float &yMin, float &cellSize) const
 
void loadLastNodes (std::list< Signature * > &signatures) const
 
void loadLinks (int signatureId, std::map< int, Link > &links, Link::Type type=Link::kUndef) const
 
void loadNodeData (std::list< Signature * > &signatures, bool images=true, bool scan=true, bool userData=true, bool occupancyGrid=true) const
 
cv::Mat loadOptimizedMesh (std::vector< std::vector< std::vector< unsigned int > > > *polygons=0, std::vector< std::vector< Eigen::Vector2f > > *texCoords=0, cv::Mat *textures=0) const
 
std::map< int, TransformloadOptimizedPoses (Transform *lastlocalizationPose) const
 
cv::Mat loadPreviewImage () const
 
void loadSignatures (const std::list< int > &ids, std::list< Signature * > &signatures, std::set< int > *loadedFromTrash=0)
 
void loadWords (const std::set< int > &wordIds, std::list< VisualWord * > &vws)
 
bool openConnection (const std::string &url, bool overwritten=false)
 
void removeLink (int from, int to)
 
void save2DMap (const cv::Mat &map, float xMin, float yMin, float cellSize) const
 
void saveOptimizedMesh (const cv::Mat &cloud, const std::vector< std::vector< std::vector< unsigned int > > > &polygons=std::vector< std::vector< std::vector< unsigned int > > >(), const std::vector< std::vector< Eigen::Vector2f > > &texCoords=std::vector< std::vector< Eigen::Vector2f > >(), const cv::Mat &textures=cv::Mat()) const
 
void saveOptimizedPoses (const std::map< int, Transform > &optimizedPoses, const Transform &lastlocalizationPose) const
 
void savePreviewImage (const cv::Mat &image) const
 
void setTimestampUpdateEnabled (bool enabled)
 
void updateDepthImage (int nodeId, const cv::Mat &image)
 
void updateLink (const Link &link)
 
void updateOccupancyGrid (int nodeId, const cv::Mat &ground, const cv::Mat &obstacles, const cv::Mat &empty, float cellSize, const cv::Point3f &viewpoint)
 
virtual ~DBDriver ()
 
- Public Member Functions inherited from UThread
Handle getThreadHandle () const
 
unsigned long getThreadId () const
 
bool isCreating () const
 
bool isIdle () const
 
bool isKilled () const
 
bool isRunning () const
 
void join (bool killFirst=false)
 
void kill ()
 
void setAffinity (int cpu=0)
 
void setPriority (Priority priority)
 
void start ()
 
 UThread (Priority priority=kPNormal)
 
virtual ~UThread ()
 
- Public Member Functions inherited from UThreadC< void >
int Create (Handle *const &H=0, const bool &CreateDetached=false, const unsigned int &StackSize=0, const bool &CancelEnable=false, const bool &CancelAsync=false) const
 
int Create (Handle *const &H=0, const bool &CreateDetached=false, const unsigned int &StackSize=0, const bool &CancelEnable=false, const bool &CancelAsync=false) const
 
int Create (unsigned long &ThreadId, Handle *const &H=0, const bool &CreateDetached=false, const unsigned int &StackSize=0, const bool &CancelEnable=false, const bool &CancelAsync=false) const
 
int Create (unsigned long &ThreadId, Handle *const &H=0, const bool &CreateDetached=false, const unsigned int &StackSize=0, const bool &CancelEnable=false, const bool &CancelAsync=false) const
 
virtual ~UThreadC ()
 
virtual ~UThreadC ()
 

Protected Member Functions

virtual void addLinkQuery (const Link &link) const
 
virtual void addStatisticsQuery (const Statistics &statistics) const
 
virtual bool connectDatabaseQuery (const std::string &url, bool overwritten=false)
 
virtual void disconnectDatabaseQuery (bool save=true, const std::string &outputUrl="")
 
virtual void executeNoResultQuery (const std::string &sql) const
 
virtual void getAllLabelsQuery (std::map< int, std::string > &labels) const
 
virtual void getAllLinksQuery (std::multimap< int, Link > &links, bool ignoreNullLinks) const
 
virtual void getAllNodeIdsQuery (std::set< int > &ids, bool ignoreChildren, bool ignoreBadSignatures) const
 
virtual std::map< int, std::pair< std::map< std::string, float >, double > > getAllStatisticsQuery () const
 
virtual std::map< int, std::vector< int > > getAllStatisticsWmStatesQuery () const
 
virtual bool getCalibrationQuery (int signatureId, std::vector< CameraModel > &models, StereoCameraModel &stereoModel) const
 
virtual long getCalibrationsMemoryUsedQuery () const
 
virtual bool getDatabaseVersionQuery (std::string &version) const
 
virtual long getDepthImagesMemoryUsedQuery () const
 
virtual long getFeaturesMemoryUsedQuery () const
 
virtual long getGridsMemoryUsedQuery () const
 
virtual long getImagesMemoryUsedQuery () const
 
virtual void getInvertedIndexNiQuery (int signatureId, int &ni) const
 
virtual bool getLaserScanInfoQuery (int signatureId, LaserScan &info) const
 
virtual long getLaserScansMemoryUsedQuery () const
 
virtual int getLastDictionarySizeQuery () const
 
virtual void getLastIdQuery (const std::string &tableName, int &id) const
 
virtual int getLastNodesSizeQuery () const
 
virtual ParametersMap getLastParametersQuery () const
 
virtual long getLinksMemoryUsedQuery () const
 
virtual long getMemoryUsedQuery () const
 
virtual void getNodeIdByLabelQuery (const std::string &label, int &id) const
 
virtual bool getNodeInfoQuery (int signatureId, Transform &pose, int &mapId, int &weight, std::string &label, double &stamp, Transform &groundTruthPose, std::vector< float > &velocity, GPS &gps) const
 
virtual long getNodesMemoryUsedQuery () const
 
virtual long getStatisticsMemoryUsedQuery () const
 
virtual std::map< std::string, float > getStatisticsQuery (int nodeId, double &stamp, std::vector< int > *wmState) const
 
virtual int getTotalDictionarySizeQuery () const
 
virtual int getTotalNodesSizeQuery () const
 
virtual long getUserDataMemoryUsedQuery () const
 
virtual void getWeightQuery (int signatureId, int &weight) const
 
virtual long getWordsMemoryUsedQuery () const
 
virtual bool isConnectedQuery () const
 
virtual cv::Mat load2DMapQuery (float &xMin, float &yMin, float &cellSize) const
 
virtual void loadLastNodesQuery (std::list< Signature * > &signatures) const
 
virtual void loadLinksQuery (int signatureId, std::map< int, Link > &links, Link::Type type=Link::kUndef) const
 
virtual void loadNodeDataQuery (std::list< Signature * > &signatures, bool images=true, bool scan=true, bool userData=true, bool occupancyGrid=true) const
 
virtual cv::Mat loadOptimizedMeshQuery (std::vector< std::vector< std::vector< unsigned int > > > *polygons, std::vector< std::vector< Eigen::Vector2f > > *texCoords, cv::Mat *textures) const
 
virtual std::map< int, TransformloadOptimizedPosesQuery (Transform *lastlocalizationPose) const
 
virtual cv::Mat loadPreviewImageQuery () const
 
virtual void loadQuery (VWDictionary *dictionary, bool lastStateOnly=true) const
 
virtual void loadSignaturesQuery (const std::list< int > &ids, std::list< Signature * > &signatures) const
 
virtual void loadWordsQuery (const std::set< int > &wordIds, std::list< VisualWord * > &vws) const
 
virtual void save2DMapQuery (const cv::Mat &map, float xMin, float yMin, float cellSize) const
 
virtual void saveOptimizedMeshQuery (const cv::Mat &cloud, const std::vector< std::vector< std::vector< unsigned int > > > &polygons, const std::vector< std::vector< Eigen::Vector2f > > &texCoords, const cv::Mat &textures) const
 
virtual void saveOptimizedPosesQuery (const std::map< int, Transform > &optimizedPoses, const Transform &lastlocalizationPose) const
 
virtual void savePreviewImageQuery (const cv::Mat &image) const
 
virtual void saveQuery (const std::list< Signature * > &signatures)
 
virtual void saveQuery (const std::list< VisualWord * > &words) const
 
virtual void updateDepthImageQuery (int nodeId, const cv::Mat &image) const
 
virtual void updateLinkQuery (const Link &link) const
 
virtual void updateOccupancyGridQuery (int nodeId, const cv::Mat &ground, const cv::Mat &obstacles, const cv::Mat &empty, float cellSize, const cv::Point3f &viewpoint) const
 
virtual void updateQuery (const std::list< Signature * > &signatures, bool updateTimestamp) const
 
virtual void updateQuery (const std::list< VisualWord * > &words, bool updateTimestamp) const
 
- Protected Member Functions inherited from rtabmap::DBDriver
 DBDriver (const ParametersMap &parameters=ParametersMap())
 
- Protected Member Functions inherited from UThreadC< void >
 UThreadC ()
 
 UThreadC ()
 

Protected Attributes

sqlite3_ppDb
 
std::string _version
 

Private Member Functions

void loadLinksQuery (std::list< Signature * > &signatures) const
 
int loadOrSaveDb (sqlite3 *pInMemory, const std::string &fileName, int isSave) const
 
std::string queryStepDepth () const
 
std::string queryStepDepthUpdate () const
 
std::string queryStepImage () const
 
std::string queryStepKeypoint () const
 
std::string queryStepLink () const
 
std::string queryStepLinkUpdate () const
 
std::string queryStepNode () const
 
std::string queryStepOccupancyGridUpdate () const
 
std::string queryStepSensorData () const
 
std::string queryStepWordsChanged () const
 
void stepDepth (sqlite3_stmt *ppStmt, const SensorData &sensorData) const
 
void stepDepthUpdate (sqlite3_stmt *ppStmt, int nodeId, const cv::Mat &imageCompressed) const
 
void stepImage (sqlite3_stmt *ppStmt, int id, const cv::Mat &imageBytes) const
 
void stepKeypoint (sqlite3_stmt *ppStmt, int signatureId, int wordId, const cv::KeyPoint &kp, const cv::Point3f &pt, const cv::Mat &descriptor) const
 
void stepLink (sqlite3_stmt *ppStmt, const Link &link) const
 
void stepNode (sqlite3_stmt *ppStmt, const Signature *s) const
 
void stepOccupancyGridUpdate (sqlite3_stmt *ppStmt, int nodeId, const cv::Mat &ground, const cv::Mat &obstacles, const cv::Mat &empty, float cellSize, const cv::Point3f &viewpoint) const
 
void stepSensorData (sqlite3_stmt *ppStmt, const SensorData &sensorData) const
 
void stepWordsChanged (sqlite3_stmt *ppStmt, int signatureId, int oldWordId, int newWordId) const
 

Private Attributes

unsigned int _cacheSize
 
bool _dbInMemory
 
int _journalMode
 
long _memoryUsedEstimate
 
int _synchronous
 
int _tempStore
 

Additional Inherited Members

- Public Types inherited from UThread
enum  Priority {
  kPLow, kPBelowNormal, kPNormal, kPAboveNormal,
  kPRealTime
}
 
- Public Types inherited from UThreadC< void >
typedef THREAD_HANDLE Handle
 
typedef THREAD_HANDLE Handle
 
typedef void(* Handler) ()
 
typedef void(* Handler) ()
 
- Static Public Member Functions inherited from rtabmap::DBDriver
static DBDrivercreate (const ParametersMap &parameters=ParametersMap())
 
- Static Public Member Functions inherited from UThread
static unsigned long currentThreadId ()
 
- Static Public Member Functions inherited from UThreadC< void >
static int Create (const Handler &Function, Handle *const &H=0, const bool &CreateDetached=false, const unsigned int &StackSize=0, const bool &CancelEnable=false, const bool &CancelAsync=false)
 
static int Create (const Handler &Function, Handle *const &H=0, const bool &CreateDetached=false, const unsigned int &StackSize=0, const bool &CancelEnable=false, const bool &CancelAsync=false)
 
static int Detach (Handle H)
 
static int Detach (const Handle &H)
 
static int Join (const Handle &H)
 
static int Join (Handle H)
 
static int Kill (Handle H)
 
static int Kill (const Handle &H)
 
- Static Protected Member Functions inherited from UThreadC< void >
static void Exit ()
 
static void Exit ()
 
static Handle Self ()
 
static int Self ()
 
static void TestCancel ()
 
static void TestCancel ()
 

Detailed Description

Definition at line 40 of file DBDriverSqlite3.h.

Constructor & Destructor Documentation

rtabmap::DBDriverSqlite3::DBDriverSqlite3 ( const ParametersMap parameters = ParametersMap())

Definition at line 43 of file DBDriverSqlite3.cpp.

rtabmap::DBDriverSqlite3::~DBDriverSqlite3 ( )
virtual

Definition at line 58 of file DBDriverSqlite3.cpp.

Member Function Documentation

void rtabmap::DBDriverSqlite3::addLinkQuery ( const Link link) const
protectedvirtual

Implements rtabmap::DBDriver.

Definition at line 3976 of file DBDriverSqlite3.cpp.

void rtabmap::DBDriverSqlite3::addStatisticsQuery ( const Statistics statistics) const
protectedvirtual

Implements rtabmap::DBDriver.

Definition at line 4101 of file DBDriverSqlite3.cpp.

bool rtabmap::DBDriverSqlite3::connectDatabaseQuery ( const std::string &  url,
bool  overwritten = false 
)
protectedvirtual

Implements rtabmap::DBDriver.

Definition at line 313 of file DBDriverSqlite3.cpp.

void rtabmap::DBDriverSqlite3::disconnectDatabaseQuery ( bool  save = true,
const std::string &  outputUrl = "" 
)
protectedvirtual

Implements rtabmap::DBDriver.

Definition at line 411 of file DBDriverSqlite3.cpp.

void rtabmap::DBDriverSqlite3::executeNoResultQuery ( const std::string &  sql) const
protectedvirtual

Implements rtabmap::DBDriver.

Definition at line 476 of file DBDriverSqlite3.cpp.

void rtabmap::DBDriverSqlite3::getAllLabelsQuery ( std::map< int, std::string > &  labels) const
protectedvirtual

Implements rtabmap::DBDriver.

Definition at line 2465 of file DBDriverSqlite3.cpp.

void rtabmap::DBDriverSqlite3::getAllLinksQuery ( std::multimap< int, Link > &  links,
bool  ignoreNullLinks 
) const
protectedvirtual

Implements rtabmap::DBDriver.

Definition at line 2215 of file DBDriverSqlite3.cpp.

void rtabmap::DBDriverSqlite3::getAllNodeIdsQuery ( std::set< int > &  ids,
bool  ignoreChildren,
bool  ignoreBadSignatures 
) const
protectedvirtual

Implements rtabmap::DBDriver.

Definition at line 2165 of file DBDriverSqlite3.cpp.

std::map< int, std::pair< std::map< std::string, float >, double > > rtabmap::DBDriverSqlite3::getAllStatisticsQuery ( ) const
protectedvirtual

Implements rtabmap::DBDriver.

Definition at line 1143 of file DBDriverSqlite3.cpp.

std::map< int, std::vector< int > > rtabmap::DBDriverSqlite3::getAllStatisticsWmStatesQuery ( ) const
protectedvirtual

Implements rtabmap::DBDriver.

Definition at line 1200 of file DBDriverSqlite3.cpp.

bool rtabmap::DBDriverSqlite3::getCalibrationQuery ( int  signatureId,
std::vector< CameraModel > &  models,
StereoCameraModel stereoModel 
) const
protectedvirtual

Implements rtabmap::DBDriver.

Definition at line 1746 of file DBDriverSqlite3.cpp.

long rtabmap::DBDriverSqlite3::getCalibrationsMemoryUsedQuery ( ) const
protectedvirtual

Implements rtabmap::DBDriver.

Definition at line 653 of file DBDriverSqlite3.cpp.

bool rtabmap::DBDriverSqlite3::getDatabaseVersionQuery ( std::string &  version) const
protectedvirtual

Implements rtabmap::DBDriver.

Definition at line 275 of file DBDriverSqlite3.cpp.

long rtabmap::DBDriverSqlite3::getDepthImagesMemoryUsedQuery ( ) const
protectedvirtual

Implements rtabmap::DBDriver.

Definition at line 621 of file DBDriverSqlite3.cpp.

long rtabmap::DBDriverSqlite3::getFeaturesMemoryUsedQuery ( ) const
protectedvirtual

Implements rtabmap::DBDriver.

Definition at line 828 of file DBDriverSqlite3.cpp.

long rtabmap::DBDriverSqlite3::getGridsMemoryUsedQuery ( ) const
protectedvirtual

Implements rtabmap::DBDriver.

Definition at line 690 of file DBDriverSqlite3.cpp.

long rtabmap::DBDriverSqlite3::getImagesMemoryUsedQuery ( ) const
protectedvirtual

Implements rtabmap::DBDriver.

Definition at line 589 of file DBDriverSqlite3.cpp.

void rtabmap::DBDriverSqlite3::getInvertedIndexNiQuery ( int  signatureId,
int &  ni 
) const
protectedvirtual

Implements rtabmap::DBDriver.

Definition at line 2386 of file DBDriverSqlite3.cpp.

bool rtabmap::DBDriverSqlite3::getLaserScanInfoQuery ( int  signatureId,
LaserScan info 
) const
protectedvirtual

Implements rtabmap::DBDriver.

Definition at line 1945 of file DBDriverSqlite3.cpp.

long rtabmap::DBDriverSqlite3::getLaserScansMemoryUsedQuery ( ) const
protectedvirtual

Implements rtabmap::DBDriver.

Definition at line 723 of file DBDriverSqlite3.cpp.

int rtabmap::DBDriverSqlite3::getLastDictionarySizeQuery ( ) const
protectedvirtual

Implements rtabmap::DBDriver.

Definition at line 940 of file DBDriverSqlite3.cpp.

void rtabmap::DBDriverSqlite3::getLastIdQuery ( const std::string &  tableName,
int &  id 
) const
protectedvirtual

Implements rtabmap::DBDriver.

Definition at line 2347 of file DBDriverSqlite3.cpp.

int rtabmap::DBDriverSqlite3::getLastNodesSizeQuery ( ) const
protectedvirtual

Implements rtabmap::DBDriver.

Definition at line 908 of file DBDriverSqlite3.cpp.

ParametersMap rtabmap::DBDriverSqlite3::getLastParametersQuery ( ) const
protectedvirtual

Implements rtabmap::DBDriver.

Definition at line 1021 of file DBDriverSqlite3.cpp.

long rtabmap::DBDriverSqlite3::getLinksMemoryUsedQuery ( ) const
protectedvirtual

Implements rtabmap::DBDriver.

Definition at line 545 of file DBDriverSqlite3.cpp.

long rtabmap::DBDriverSqlite3::getMemoryUsedQuery ( ) const
protectedvirtual

Implements rtabmap::DBDriver.

Definition at line 489 of file DBDriverSqlite3.cpp.

void rtabmap::DBDriverSqlite3::getNodeIdByLabelQuery ( const std::string &  label,
int &  id 
) const
protectedvirtual

Implements rtabmap::DBDriver.

Definition at line 2435 of file DBDriverSqlite3.cpp.

bool rtabmap::DBDriverSqlite3::getNodeInfoQuery ( int  signatureId,
Transform pose,
int &  mapId,
int &  weight,
std::string &  label,
double &  stamp,
Transform groundTruthPose,
std::vector< float > &  velocity,
GPS gps 
) const
protectedvirtual

Implements rtabmap::DBDriver.

Definition at line 2027 of file DBDriverSqlite3.cpp.

long rtabmap::DBDriverSqlite3::getNodesMemoryUsedQuery ( ) const
protectedvirtual

Implements rtabmap::DBDriver.

Definition at line 501 of file DBDriverSqlite3.cpp.

long rtabmap::DBDriverSqlite3::getStatisticsMemoryUsedQuery ( ) const
protectedvirtual

Implements rtabmap::DBDriver.

Definition at line 872 of file DBDriverSqlite3.cpp.

std::map< std::string, float > rtabmap::DBDriverSqlite3::getStatisticsQuery ( int  nodeId,
double &  stamp,
std::vector< int > *  wmState 
) const
protectedvirtual

Implements rtabmap::DBDriver.

Definition at line 1067 of file DBDriverSqlite3.cpp.

int rtabmap::DBDriverSqlite3::getTotalDictionarySizeQuery ( ) const
protectedvirtual

Implements rtabmap::DBDriver.

Definition at line 996 of file DBDriverSqlite3.cpp.

int rtabmap::DBDriverSqlite3::getTotalNodesSizeQuery ( ) const
protectedvirtual

Implements rtabmap::DBDriver.

Definition at line 972 of file DBDriverSqlite3.cpp.

long rtabmap::DBDriverSqlite3::getUserDataMemoryUsedQuery ( ) const
protectedvirtual

Implements rtabmap::DBDriver.

Definition at line 768 of file DBDriverSqlite3.cpp.

void rtabmap::DBDriverSqlite3::getWeightQuery ( int  signatureId,
int &  weight 
) const
protectedvirtual

Implements rtabmap::DBDriver.

Definition at line 2505 of file DBDriverSqlite3.cpp.

long rtabmap::DBDriverSqlite3::getWordsMemoryUsedQuery ( ) const
protectedvirtual

Implements rtabmap::DBDriver.

Definition at line 804 of file DBDriverSqlite3.cpp.

bool rtabmap::DBDriverSqlite3::isConnectedQuery ( ) const
protectedvirtual

Implements rtabmap::DBDriver.

Definition at line 470 of file DBDriverSqlite3.cpp.

virtual bool rtabmap::DBDriverSqlite3::isInMemory ( ) const
inlinevirtual

Reimplemented from rtabmap::DBDriver.

Definition at line 46 of file DBDriverSqlite3.h.

cv::Mat rtabmap::DBDriverSqlite3::load2DMapQuery ( float &  xMin,
float &  yMin,
float &  cellSize 
) const
protectedvirtual

Implements rtabmap::DBDriver.

Definition at line 4491 of file DBDriverSqlite3.cpp.

void rtabmap::DBDriverSqlite3::loadLastNodesQuery ( std::list< Signature * > &  signatures) const
protectedvirtual

Implements rtabmap::DBDriver.

Definition at line 3030 of file DBDriverSqlite3.cpp.

void rtabmap::DBDriverSqlite3::loadLinksQuery ( int  signatureId,
std::map< int, Link > &  links,
Link::Type  type = Link::kUndef 
) const
protectedvirtual

Implements rtabmap::DBDriver.

Definition at line 3262 of file DBDriverSqlite3.cpp.

void rtabmap::DBDriverSqlite3::loadLinksQuery ( std::list< Signature * > &  signatures) const
private

Definition at line 3414 of file DBDriverSqlite3.cpp.

void rtabmap::DBDriverSqlite3::loadNodeDataQuery ( std::list< Signature * > &  signatures,
bool  images = true,
bool  scan = true,
bool  userData = true,
bool  occupancyGrid = true 
) const
protectedvirtual

Implements rtabmap::DBDriver.

Definition at line 1250 of file DBDriverSqlite3.cpp.

cv::Mat rtabmap::DBDriverSqlite3::loadOptimizedMeshQuery ( std::vector< std::vector< std::vector< unsigned int > > > *  polygons,
std::vector< std::vector< Eigen::Vector2f > > *  texCoords,
cv::Mat *  textures 
) const
protectedvirtual

Implements rtabmap::DBDriver.

Definition at line 4745 of file DBDriverSqlite3.cpp.

std::map< int, Transform > rtabmap::DBDriverSqlite3::loadOptimizedPosesQuery ( Transform lastlocalizationPose) const
protectedvirtual

Implements rtabmap::DBDriver.

Definition at line 4356 of file DBDriverSqlite3.cpp.

int rtabmap::DBDriverSqlite3::loadOrSaveDb ( sqlite3 pInMemory,
const std::string &  fileName,
int  isSave 
) const
private

Definition at line 228 of file DBDriverSqlite3.cpp.

cv::Mat rtabmap::DBDriverSqlite3::loadPreviewImageQuery ( ) const
protectedvirtual

Implements rtabmap::DBDriver.

Definition at line 4232 of file DBDriverSqlite3.cpp.

void rtabmap::DBDriverSqlite3::loadQuery ( VWDictionary dictionary,
bool  lastStateOnly = true 
) const
protectedvirtual

Implements rtabmap::DBDriver.

Definition at line 3081 of file DBDriverSqlite3.cpp.

void rtabmap::DBDriverSqlite3::loadSignaturesQuery ( const std::list< int > &  ids,
std::list< Signature * > &  signatures 
) const
protectedvirtual

Implements rtabmap::DBDriver.

Definition at line 2540 of file DBDriverSqlite3.cpp.

void rtabmap::DBDriverSqlite3::loadWordsQuery ( const std::set< int > &  wordIds,
std::list< VisualWord * > &  vws 
) const
protectedvirtual

Implements rtabmap::DBDriver.

Definition at line 3169 of file DBDriverSqlite3.cpp.

void rtabmap::DBDriverSqlite3::parseParameters ( const ParametersMap parameters)
virtual

Reimplemented from rtabmap::DBDriver.

Definition at line 63 of file DBDriverSqlite3.cpp.

std::string rtabmap::DBDriverSqlite3::queryStepDepth ( ) const
private

Definition at line 5054 of file DBDriverSqlite3.cpp.

std::string rtabmap::DBDriverSqlite3::queryStepDepthUpdate ( ) const
private

Definition at line 5164 of file DBDriverSqlite3.cpp.

std::string rtabmap::DBDriverSqlite3::queryStepImage ( ) const
private

Definition at line 5014 of file DBDriverSqlite3.cpp.

std::string rtabmap::DBDriverSqlite3::queryStepKeypoint ( ) const
private

Definition at line 5635 of file DBDriverSqlite3.cpp.

std::string rtabmap::DBDriverSqlite3::queryStepLink ( ) const
private

Definition at line 5508 of file DBDriverSqlite3.cpp.

std::string rtabmap::DBDriverSqlite3::queryStepLinkUpdate ( ) const
private

Definition at line 5485 of file DBDriverSqlite3.cpp.

std::string rtabmap::DBDriverSqlite3::queryStepNode ( ) const
private

Definition at line 4882 of file DBDriverSqlite3.cpp.

std::string rtabmap::DBDriverSqlite3::queryStepOccupancyGridUpdate ( ) const
private

Definition at line 5750 of file DBDriverSqlite3.cpp.

std::string rtabmap::DBDriverSqlite3::queryStepSensorData ( ) const
private

Definition at line 5217 of file DBDriverSqlite3.cpp.

std::string rtabmap::DBDriverSqlite3::queryStepWordsChanged ( ) const
private

Definition at line 5602 of file DBDriverSqlite3.cpp.

void rtabmap::DBDriverSqlite3::save2DMapQuery ( const cv::Mat &  map,
float  xMin,
float  yMin,
float  cellSize 
) const
protectedvirtual

Implements rtabmap::DBDriver.

Definition at line 4439 of file DBDriverSqlite3.cpp.

void rtabmap::DBDriverSqlite3::saveOptimizedMeshQuery ( const cv::Mat &  cloud,
const std::vector< std::vector< std::vector< unsigned int > > > &  polygons,
const std::vector< std::vector< Eigen::Vector2f > > &  texCoords,
const cv::Mat &  textures 
) const
protectedvirtual

Implements rtabmap::DBDriver.

Definition at line 4549 of file DBDriverSqlite3.cpp.

void rtabmap::DBDriverSqlite3::saveOptimizedPosesQuery ( const std::map< int, Transform > &  optimizedPoses,
const Transform lastlocalizationPose 
) const
protectedvirtual

Implements rtabmap::DBDriver.

Definition at line 4283 of file DBDriverSqlite3.cpp.

void rtabmap::DBDriverSqlite3::savePreviewImageQuery ( const cv::Mat &  image) const
protectedvirtual

Implements rtabmap::DBDriver.

Definition at line 4182 of file DBDriverSqlite3.cpp.

void rtabmap::DBDriverSqlite3::saveQuery ( const std::list< Signature * > &  signatures)
protectedvirtual

Implements rtabmap::DBDriver.

Definition at line 3759 of file DBDriverSqlite3.cpp.

void rtabmap::DBDriverSqlite3::saveQuery ( const std::list< VisualWord * > &  words) const
protectedvirtual

Implements rtabmap::DBDriver.

Definition at line 3918 of file DBDriverSqlite3.cpp.

void rtabmap::DBDriverSqlite3::setCacheSize ( unsigned int  cacheSize)

Definition at line 89 of file DBDriverSqlite3.cpp.

void rtabmap::DBDriverSqlite3::setDbInMemory ( bool  dbInMemory)

Definition at line 190 of file DBDriverSqlite3.cpp.

void rtabmap::DBDriverSqlite3::setJournalMode ( int  journalMode)

Definition at line 100 of file DBDriverSqlite3.cpp.

void rtabmap::DBDriverSqlite3::setSynchronous ( int  synchronous)

Definition at line 134 of file DBDriverSqlite3.cpp.

void rtabmap::DBDriverSqlite3::setTempStore ( int  tempStore)

Definition at line 162 of file DBDriverSqlite3.cpp.

void rtabmap::DBDriverSqlite3::stepDepth ( sqlite3_stmt ppStmt,
const SensorData sensorData 
) const
private

Definition at line 5070 of file DBDriverSqlite3.cpp.

void rtabmap::DBDriverSqlite3::stepDepthUpdate ( sqlite3_stmt ppStmt,
int  nodeId,
const cv::Mat &  imageCompressed 
) const
private

Definition at line 5175 of file DBDriverSqlite3.cpp.

void rtabmap::DBDriverSqlite3::stepImage ( sqlite3_stmt ppStmt,
int  id,
const cv::Mat &  imageBytes 
) const
private

Definition at line 5019 of file DBDriverSqlite3.cpp.

void rtabmap::DBDriverSqlite3::stepKeypoint ( sqlite3_stmt ppStmt,
int  signatureId,
int  wordId,
const cv::KeyPoint &  kp,
const cv::Point3f &  pt,
const cv::Mat &  descriptor 
) const
private

Definition at line 5651 of file DBDriverSqlite3.cpp.

void rtabmap::DBDriverSqlite3::stepLink ( sqlite3_stmt ppStmt,
const Link link 
) const
private

Definition at line 5532 of file DBDriverSqlite3.cpp.

void rtabmap::DBDriverSqlite3::stepNode ( sqlite3_stmt ppStmt,
const Signature s 
) const
private

Definition at line 4910 of file DBDriverSqlite3.cpp.

void rtabmap::DBDriverSqlite3::stepOccupancyGridUpdate ( sqlite3_stmt ppStmt,
int  nodeId,
const cv::Mat &  ground,
const cv::Mat &  obstacles,
const cv::Mat &  empty,
float  cellSize,
const cv::Point3f &  viewpoint 
) const
private

Definition at line 5759 of file DBDriverSqlite3.cpp.

void rtabmap::DBDriverSqlite3::stepSensorData ( sqlite3_stmt ppStmt,
const SensorData sensorData 
) const
private

Definition at line 5241 of file DBDriverSqlite3.cpp.

void rtabmap::DBDriverSqlite3::stepWordsChanged ( sqlite3_stmt ppStmt,
int  signatureId,
int  oldWordId,
int  newWordId 
) const
private

Definition at line 5613 of file DBDriverSqlite3.cpp.

void rtabmap::DBDriverSqlite3::updateDepthImageQuery ( int  nodeId,
const cv::Mat &  image 
) const
protectedvirtual

Implements rtabmap::DBDriver.

Definition at line 4070 of file DBDriverSqlite3.cpp.

void rtabmap::DBDriverSqlite3::updateLinkQuery ( const Link link) const
protectedvirtual

Implements rtabmap::DBDriver.

Definition at line 4004 of file DBDriverSqlite3.cpp.

void rtabmap::DBDriverSqlite3::updateOccupancyGridQuery ( int  nodeId,
const cv::Mat &  ground,
const cv::Mat &  obstacles,
const cv::Mat &  empty,
float  cellSize,
const cv::Point3f &  viewpoint 
) const
protectedvirtual

Implements rtabmap::DBDriver.

Definition at line 4031 of file DBDriverSqlite3.cpp.

void rtabmap::DBDriverSqlite3::updateQuery ( const std::list< Signature * > &  signatures,
bool  updateTimestamp 
) const
protectedvirtual

Implements rtabmap::DBDriver.

Definition at line 3576 of file DBDriverSqlite3.cpp.

void rtabmap::DBDriverSqlite3::updateQuery ( const std::list< VisualWord * > &  words,
bool  updateTimestamp 
) const
protectedvirtual

Implements rtabmap::DBDriver.

Definition at line 3719 of file DBDriverSqlite3.cpp.

Member Data Documentation

unsigned int rtabmap::DBDriverSqlite3::_cacheSize
private

Definition at line 187 of file DBDriverSqlite3.h.

bool rtabmap::DBDriverSqlite3::_dbInMemory
private

Definition at line 186 of file DBDriverSqlite3.h.

int rtabmap::DBDriverSqlite3::_journalMode
private

Definition at line 188 of file DBDriverSqlite3.h.

long rtabmap::DBDriverSqlite3::_memoryUsedEstimate
private

Definition at line 185 of file DBDriverSqlite3.h.

sqlite3* rtabmap::DBDriverSqlite3::_ppDb
protected

Definition at line 181 of file DBDriverSqlite3.h.

int rtabmap::DBDriverSqlite3::_synchronous
private

Definition at line 189 of file DBDriverSqlite3.h.

int rtabmap::DBDriverSqlite3::_tempStore
private

Definition at line 190 of file DBDriverSqlite3.h.

std::string rtabmap::DBDriverSqlite3::_version
protected

Definition at line 182 of file DBDriverSqlite3.h.


The documentation for this class was generated from the following files:


rtabmap
Author(s): Mathieu Labbe
autogenerated on Wed Jun 5 2019 22:43:43