Public Member Functions | Private Member Functions | Private Attributes
rtabmap::DBDriverSqlite3 Class Reference

#include <DBDriverSqlite3.h>

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

List of all members.

Public Member Functions

 DBDriverSqlite3 (const ParametersMap &parameters=ParametersMap())
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 ()

Private Member Functions

virtual bool connectDatabaseQuery (const std::string &url, bool overwirtten=false)
virtual void disconnectDatabaseQuery ()
virtual void executeNoResultQuery (const std::string &sql) const
virtual void getAllLabelsQuery (std::map< int, std::string > &labels) const
virtual void getAllNodeIdsQuery (std::set< int > &ids, bool ignoreChildren) const
virtual void getInvertedIndexNiQuery (int signatureId, int &ni) const
virtual void getLastIdQuery (const std::string &tableName, int &id) const
virtual long getMemoryUsedQuery () const
virtual void getNodeDataQuery (int signatureId, cv::Mat &imageCompressed, cv::Mat &depthCompressed, cv::Mat &laserScanCompressed, float &fx, float &fy, float &cx, float &cy, Transform &localTransform, int &laserScanMaxPts) const
virtual void getNodeDataQuery (int signatureId, cv::Mat &imageCompressed) 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, std::vector< unsigned char > &userData) const
bool getVersion (std::string &) const
virtual void getWeightQuery (int signatureId, int &weight) const
virtual bool isConnectedQuery () 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
void loadLinksQuery (std::list< Signature * > &signatures) const
virtual void loadNodeDataQuery (std::list< Signature * > &signatures, bool loadMetricData) const
int loadOrSaveDb (sqlite3 *pInMemory, const std::string &fileName, int isSave) const
virtual void loadQuery (VWDictionary *dictionary) 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
std::string queryStepDepth () const
std::string queryStepImage () const
std::string queryStepKeypoint () const
std::string queryStepLink () const
std::string queryStepNode () const
std::string queryStepWordsChanged () const
virtual void saveQuery (const std::list< Signature * > &signatures) const
virtual void saveQuery (const std::list< VisualWord * > &words) const
void stepDepth (sqlite3_stmt *ppStmt, int id, const cv::Mat &depthBytes, const cv::Mat &depth2dBytes, float fx, float fy, float cx, float cy, const Transform &localTransform, int depth2dMaxPts) 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 pcl::PointXYZ &pt) const
void stepLink (sqlite3_stmt *ppStmt, int fromId, int toId, Link::Type type, float rotVariance, float transVariance, const Transform &transform) const
void stepNode (sqlite3_stmt *ppStmt, const Signature *s) const
void stepWordsChanged (sqlite3_stmt *ppStmt, int signatureId, int oldWordId, int newWordId) const
virtual void updateQuery (const std::list< Signature * > &signatures, bool updateTimestamp) const
virtual void updateQuery (const std::list< VisualWord * > &words, bool updateTimestamp) const

Private Attributes

unsigned int _cacheSize
bool _dbInMemory
int _journalMode
sqlite3_ppDb
int _synchronous
int _tempStore
std::string _version

Detailed Description

Definition at line 39 of file DBDriverSqlite3.h.


Constructor & Destructor Documentation

Definition at line 41 of file DBDriverSqlite3.cpp.

Definition at line 55 of file DBDriverSqlite3.cpp.


Member Function Documentation

bool rtabmap::DBDriverSqlite3::connectDatabaseQuery ( const std::string &  url,
bool  overwirtten = false 
) [private, virtual]

Implements rtabmap::DBDriver.

Definition at line 310 of file DBDriverSqlite3.cpp.

Implements rtabmap::DBDriver.

Definition at line 383 of file DBDriverSqlite3.cpp.

void rtabmap::DBDriverSqlite3::executeNoResultQuery ( const std::string &  sql) const [private, virtual]

Implements rtabmap::DBDriver.

Definition at line 423 of file DBDriverSqlite3.cpp.

void rtabmap::DBDriverSqlite3::getAllLabelsQuery ( std::map< int, std::string > &  labels) const [private, virtual]

Implements rtabmap::DBDriver.

Definition at line 1039 of file DBDriverSqlite3.cpp.

void rtabmap::DBDriverSqlite3::getAllNodeIdsQuery ( std::set< int > &  ids,
bool  ignoreChildren 
) const [private, virtual]

Implements rtabmap::DBDriver.

Definition at line 880 of file DBDriverSqlite3.cpp.

void rtabmap::DBDriverSqlite3::getInvertedIndexNiQuery ( int  signatureId,
int &  ni 
) const [private, virtual]

Implements rtabmap::DBDriver.

Definition at line 964 of file DBDriverSqlite3.cpp.

void rtabmap::DBDriverSqlite3::getLastIdQuery ( const std::string &  tableName,
int &  id 
) const [private, virtual]

Implements rtabmap::DBDriver.

Definition at line 925 of file DBDriverSqlite3.cpp.

long rtabmap::DBDriverSqlite3::getMemoryUsedQuery ( ) const [private, virtual]

Implements rtabmap::DBDriver.

Definition at line 436 of file DBDriverSqlite3.cpp.

void rtabmap::DBDriverSqlite3::getNodeDataQuery ( int  signatureId,
cv::Mat &  imageCompressed,
cv::Mat &  depthCompressed,
cv::Mat &  laserScanCompressed,
float &  fx,
float &  fy,
float &  cx,
float &  cy,
Transform localTransform,
int &  laserScanMaxPts 
) const [private, virtual]

Implements rtabmap::DBDriver.

Definition at line 597 of file DBDriverSqlite3.cpp.

void rtabmap::DBDriverSqlite3::getNodeDataQuery ( int  signatureId,
cv::Mat &  imageCompressed 
) const [private, virtual]

Implements rtabmap::DBDriver.

Definition at line 735 of file DBDriverSqlite3.cpp.

void rtabmap::DBDriverSqlite3::getNodeIdByLabelQuery ( const std::string &  label,
int &  id 
) const [private, virtual]

Implements rtabmap::DBDriver.

Definition at line 1009 of file DBDriverSqlite3.cpp.

bool rtabmap::DBDriverSqlite3::getNodeInfoQuery ( int  signatureId,
Transform pose,
int &  mapId,
int &  weight,
std::string &  label,
double &  stamp,
std::vector< unsigned char > &  userData 
) const [private, virtual]

Implements rtabmap::DBDriver.

Definition at line 786 of file DBDriverSqlite3.cpp.

bool rtabmap::DBDriverSqlite3::getVersion ( std::string &  version) const [private]

Definition at line 271 of file DBDriverSqlite3.cpp.

void rtabmap::DBDriverSqlite3::getWeightQuery ( int  signatureId,
int &  weight 
) const [private, virtual]

Implements rtabmap::DBDriver.

Definition at line 1079 of file DBDriverSqlite3.cpp.

bool rtabmap::DBDriverSqlite3::isConnectedQuery ( ) const [private, virtual]

Implements rtabmap::DBDriver.

Definition at line 417 of file DBDriverSqlite3.cpp.

void rtabmap::DBDriverSqlite3::loadLastNodesQuery ( std::list< Signature * > &  signatures) const [private, virtual]

Implements rtabmap::DBDriver.

Definition at line 1324 of file DBDriverSqlite3.cpp.

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

Implements rtabmap::DBDriver.

Definition at line 1542 of file DBDriverSqlite3.cpp.

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

Definition at line 1651 of file DBDriverSqlite3.cpp.

void rtabmap::DBDriverSqlite3::loadNodeDataQuery ( std::list< Signature * > &  signatures,
bool  loadMetricData 
) const [private, virtual]

Implements rtabmap::DBDriver.

Definition at line 448 of file DBDriverSqlite3.cpp.

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

Definition at line 224 of file DBDriverSqlite3.cpp.

void rtabmap::DBDriverSqlite3::loadQuery ( VWDictionary dictionary) const [private, virtual]

Implements rtabmap::DBDriver.

Definition at line 1365 of file DBDriverSqlite3.cpp.

void rtabmap::DBDriverSqlite3::loadSignaturesQuery ( const std::list< int > &  ids,
std::list< Signature * > &  signatures 
) const [private, virtual]

Implements rtabmap::DBDriver.

Definition at line 1114 of file DBDriverSqlite3.cpp.

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

Implements rtabmap::DBDriver.

Definition at line 1449 of file DBDriverSqlite3.cpp.

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

Reimplemented from rtabmap::DBDriver.

Definition at line 60 of file DBDriverSqlite3.cpp.

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

Definition at line 2255 of file DBDriverSqlite3.cpp.

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

Definition at line 2217 of file DBDriverSqlite3.cpp.

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

Definition at line 2442 of file DBDriverSqlite3.cpp.

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

Definition at line 2347 of file DBDriverSqlite3.cpp.

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

Definition at line 2147 of file DBDriverSqlite3.cpp.

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

Definition at line 2416 of file DBDriverSqlite3.cpp.

void rtabmap::DBDriverSqlite3::saveQuery ( const std::list< Signature * > &  signatures) const [private, virtual]

Implements rtabmap::DBDriver.

Definition at line 1975 of file DBDriverSqlite3.cpp.

void rtabmap::DBDriverSqlite3::saveQuery ( const std::list< VisualWord * > &  words) const [private, virtual]

Implements rtabmap::DBDriver.

Definition at line 2090 of file DBDriverSqlite3.cpp.

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

Definition at line 86 of file DBDriverSqlite3.cpp.

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

Definition at line 187 of file DBDriverSqlite3.cpp.

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

Definition at line 97 of file DBDriverSqlite3.cpp.

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

Definition at line 131 of file DBDriverSqlite3.cpp.

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

Definition at line 159 of file DBDriverSqlite3.cpp.

void rtabmap::DBDriverSqlite3::stepDepth ( sqlite3_stmt ppStmt,
int  id,
const cv::Mat &  depthBytes,
const cv::Mat &  depth2dBytes,
float  fx,
float  fy,
float  cx,
float  cy,
const Transform localTransform,
int  depth2dMaxPts 
) const [private]

Definition at line 2270 of file DBDriverSqlite3.cpp.

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

Definition at line 2221 of file DBDriverSqlite3.cpp.

void rtabmap::DBDriverSqlite3::stepKeypoint ( sqlite3_stmt ppStmt,
int  signatureId,
int  wordId,
const cv::KeyPoint &  kp,
const pcl::PointXYZ &  pt 
) const [private]

Definition at line 2446 of file DBDriverSqlite3.cpp.

void rtabmap::DBDriverSqlite3::stepLink ( sqlite3_stmt ppStmt,
int  fromId,
int  toId,
Link::Type  type,
float  rotVariance,
float  transVariance,
const Transform transform 
) const [private]

Definition at line 2362 of file DBDriverSqlite3.cpp.

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

Definition at line 2159 of file DBDriverSqlite3.cpp.

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

Definition at line 2420 of file DBDriverSqlite3.cpp.

void rtabmap::DBDriverSqlite3::updateQuery ( const std::list< Signature * > &  signatures,
bool  updateTimestamp 
) const [private, virtual]

Implements rtabmap::DBDriver.

Definition at line 1767 of file DBDriverSqlite3.cpp.

void rtabmap::DBDriverSqlite3::updateQuery ( const std::list< VisualWord * > &  words,
bool  updateTimestamp 
) const [private, virtual]

Implements rtabmap::DBDriver.

Definition at line 1935 of file DBDriverSqlite3.cpp.


Member Data Documentation

unsigned int rtabmap::DBDriverSqlite3::_cacheSize [private]

Definition at line 129 of file DBDriverSqlite3.h.

Definition at line 128 of file DBDriverSqlite3.h.

Definition at line 130 of file DBDriverSqlite3.h.

Definition at line 126 of file DBDriverSqlite3.h.

Definition at line 131 of file DBDriverSqlite3.h.

Definition at line 132 of file DBDriverSqlite3.h.

std::string rtabmap::DBDriverSqlite3::_version [private]

Definition at line 127 of file DBDriverSqlite3.h.


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


rtabmap
Author(s): Mathieu Labbe
autogenerated on Fri Aug 28 2015 12:51:44