Public Member Functions | Static Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes | List of all members
rtabmap::DBDriver Class Referenceabstract

#include <DBDriver.h>

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

Public Member Functions

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, bool saveWmState) 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, bool withLandmarks=false) const
 
void getAllNodeIds (std::set< int > &ids, bool ignoreChildren=false, bool ignoreBadSignatures=false, bool ignoreIntermediateNodes=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, std::vector< StereoCameraModel > &stereoModels) 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 getLastMapId (int &mapId) const
 
void getLastNodeId (int &id) const
 
void getLastNodeIds (std::set< int > &ids) const
 
int getLastNodesSize () const
 
ParametersMap getLastParameters () const
 
void getLastWordId (int &id) const
 
long getLinksMemoryUsed () const
 
unsigned 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, EnvSensors &sensors) const
 
long getNodesMemoryUsed () const
 
void getNodesObservingLandmark (int landmarkId, std::map< int, Link > &nodes) const
 
std::map< std::string, floatgetStatistics (int nodeId, double &stamp, std::vector< int > *wmState=0) const
 
long getStatisticsMemoryUsed () const
 
const std::stringgetTargetVersion () const
 
int getTotalDictionarySize () const
 
int getTotalNodesSize () const
 
const std::stringgetUrl () const
 
long getUserDataMemoryUsed () const
 
void getWeight (int signatureId, int &weight) const
 
long getWordsMemoryUsed () const
 
bool isConnected () const
 
virtual bool isInMemory () 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::multimap< int, Link > &links, Link::Type type=Link::kUndef) const
 
void loadNodeData (Signature *signature, bool images=true, bool scan=true, bool userData=true, bool occupancyGrid=true) 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< RTABMAP_PCL_INDEX > > > *polygons=0, std::vector< std::vector< Eigen::Vector2f > > *texCoords=0, cv::Mat *textures=0) const
 
std::map< int, TransformloadOptimizedPoses (Transform *lastlocalizationPose=0) const
 
cv::Mat loadPreviewImage () const
 
SignatureloadSignature (int id, bool *loadedFromTrash=0)
 
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)
 
virtual void parseParameters (const ParametersMap &parameters)
 
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< RTABMAP_PCL_INDEX > > > &polygons=std::vector< std::vector< std::vector< RTABMAP_PCL_INDEX > > >(), 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 updateCalibration (int nodeId, const std::vector< CameraModel > &models, const std::vector< StereoCameraModel > &stereoModels)
 
void updateDepthImage (int nodeId, const cv::Mat &image)
 
void updateLaserScan (int nodeId, const LaserScan &scan)
 
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 ()
 

Static Public Member Functions

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 (const Handle &H)
 
static int Detach (Handle H)
 
static int Join (const Handle &H)
 
static int Join (Handle H)
 
static int Kill (const Handle &H)
 
static int Kill (Handle H)
 

Protected Member Functions

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

Private Member Functions

virtual void mainLoop ()
 
void saveOrUpdate (const std::vector< Signature * > &signatures)
 
void saveOrUpdate (const std::vector< VisualWord * > &words) const
 

Private Attributes

USemaphore _addSem
 
UMutex _dbSafeAccessMutex
 
double _emptyTrashesTime
 
std::string _targetVersion
 
bool _timestampUpdate
 
UMutex _transactionMutex
 
UMutex _trashesMutex
 
std::map< int, Signature * > _trashSignatures
 
std::map< int, VisualWord * > _trashVisualWords
 
std::string _url
 

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 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 62 of file DBDriver.h.

Constructor & Destructor Documentation

◆ ~DBDriver()

rtabmap::DBDriver::~DBDriver ( )
virtual

Definition at line 53 of file DBDriver.cpp.

◆ DBDriver()

rtabmap::DBDriver::DBDriver ( const ParametersMap parameters = ParametersMap())
protected

Definition at line 46 of file DBDriver.cpp.

Member Function Documentation

◆ addInfoAfterRun()

void rtabmap::DBDriver::addInfoAfterRun ( int  stMemSize,
int  lastSignAdded,
int  processMemUsed,
int  databaseMemUsed,
int  dictionarySize,
const ParametersMap parameters 
) const

Definition at line 1119 of file DBDriver.cpp.

◆ addLink()

void rtabmap::DBDriver::addLink ( const Link link)

Definition at line 467 of file DBDriver.cpp.

◆ addLinkQuery()

virtual void rtabmap::DBDriver::addLinkQuery ( const Link link) const
protectedpure virtual

Implemented in rtabmap::DBDriverSqlite3.

◆ addStatistics()

void rtabmap::DBDriver::addStatistics ( const Statistics statistics,
bool  saveWmState 
) const

Definition at line 1169 of file DBDriver.cpp.

◆ addStatisticsQuery()

virtual void rtabmap::DBDriver::addStatisticsQuery ( const Statistics statistics,
bool  saveWmState 
) const
protectedpure virtual

Implemented in rtabmap::DBDriverSqlite3.

◆ asyncSave() [1/2]

void rtabmap::DBDriver::asyncSave ( Signature s)

Definition at line 382 of file DBDriver.cpp.

◆ asyncSave() [2/2]

void rtabmap::DBDriver::asyncSave ( VisualWord vw)

Definition at line 395 of file DBDriver.cpp.

◆ beginTransaction()

void rtabmap::DBDriver::beginTransaction ( ) const

Definition at line 290 of file DBDriver.cpp.

◆ closeConnection()

void rtabmap::DBDriver::closeConnection ( bool  save = true,
const std::string outputUrl = "" 
)

Definition at line 64 of file DBDriver.cpp.

◆ commit()

void rtabmap::DBDriver::commit ( ) const

Definition at line 297 of file DBDriver.cpp.

◆ connectDatabaseQuery()

virtual bool rtabmap::DBDriver::connectDatabaseQuery ( const std::string url,
bool  overwritten = false 
)
protectedpure virtual

Implemented in rtabmap::DBDriverSqlite3.

◆ create()

DBDriver * rtabmap::DBDriver::create ( const ParametersMap parameters = ParametersMap())
static

Definition at line 41 of file DBDriver.cpp.

◆ disconnectDatabaseQuery()

virtual void rtabmap::DBDriver::disconnectDatabaseQuery ( bool  save = true,
const std::string outputUrl = "" 
)
protectedpure virtual

Implemented in rtabmap::DBDriverSqlite3.

◆ emptyTrashes()

void rtabmap::DBDriver::emptyTrashes ( bool  async = false)

Definition at line 311 of file DBDriver.cpp.

◆ executeNoResult()

void rtabmap::DBDriver::executeNoResult ( const std::string sql) const

Definition at line 304 of file DBDriver.cpp.

◆ executeNoResultQuery()

virtual void rtabmap::DBDriver::executeNoResultQuery ( const std::string sql) const
protectedpure virtual

Implemented in rtabmap::DBDriverSqlite3.

◆ generateGraph()

void rtabmap::DBDriver::generateGraph ( const std::string fileName,
const std::set< int > &  ids = std::set<int>(),
const std::map< int, Signature * > &  otherSignatures = std::map<intSignature *>() 
)

Definition at line 1250 of file DBDriver.cpp.

◆ getAllLabels()

void rtabmap::DBDriver::getAllLabels ( std::map< int, std::string > &  labels) const

Definition at line 1100 of file DBDriver.cpp.

◆ getAllLabelsQuery()

virtual void rtabmap::DBDriver::getAllLabelsQuery ( std::map< int, std::string > &  labels) const
protectedpure virtual

Implemented in rtabmap::DBDriverSqlite3.

◆ getAllLinks()

void rtabmap::DBDriver::getAllLinks ( std::multimap< int, Link > &  links,
bool  ignoreNullLinks = true,
bool  withLandmarks = false 
) const

Definition at line 925 of file DBDriver.cpp.

◆ getAllLinksQuery()

virtual void rtabmap::DBDriver::getAllLinksQuery ( std::multimap< int, Link > &  links,
bool  ignoreNullLinks,
bool  withLandmarks 
) const
protectedpure virtual

Implemented in rtabmap::DBDriverSqlite3.

◆ getAllNodeIds()

void rtabmap::DBDriver::getAllNodeIds ( std::set< int > &  ids,
bool  ignoreChildren = false,
bool  ignoreBadSignatures = false,
bool  ignoreIntermediateNodes = false 
) const

Definition at line 886 of file DBDriver.cpp.

◆ getAllNodeIdsQuery()

virtual void rtabmap::DBDriver::getAllNodeIdsQuery ( std::set< int > &  ids,
bool  ignoreChildren,
bool  ignoreBadSignatures,
bool  ignoreIntermediateNodes 
) const
protectedpure virtual

Implemented in rtabmap::DBDriverSqlite3.

◆ getAllStatistics()

std::map< int, std::pair< std::map< std::string, float >, double > > rtabmap::DBDriver::getAllStatistics ( ) const

Definition at line 257 of file DBDriver.cpp.

◆ getAllStatisticsQuery()

virtual std::map<int, std::pair<std::map<std::string, float>, double> > rtabmap::DBDriver::getAllStatisticsQuery ( ) const
protectedpure virtual

Implemented in rtabmap::DBDriverSqlite3.

◆ getAllStatisticsWmStates()

std::map< int, std::vector< int > > rtabmap::DBDriver::getAllStatisticsWmStates ( ) const

Definition at line 266 of file DBDriver.cpp.

◆ getAllStatisticsWmStatesQuery()

virtual std::map<int, std::vector<int> > rtabmap::DBDriver::getAllStatisticsWmStatesQuery ( ) const
protectedpure virtual

Implemented in rtabmap::DBDriverSqlite3.

◆ getCalibration()

bool rtabmap::DBDriver::getCalibration ( int  signatureId,
std::vector< CameraModel > &  models,
std::vector< StereoCameraModel > &  stereoModels 
) const

Definition at line 736 of file DBDriver.cpp.

◆ getCalibrationQuery()

virtual bool rtabmap::DBDriver::getCalibrationQuery ( int  signatureId,
std::vector< CameraModel > &  models,
std::vector< StereoCameraModel > &  stereoModels 
) const
protectedpure virtual

Implemented in rtabmap::DBDriverSqlite3.

◆ getCalibrationsMemoryUsed()

long rtabmap::DBDriver::getCalibrationsMemoryUsed ( ) const

Definition at line 151 of file DBDriver.cpp.

◆ getCalibrationsMemoryUsedQuery()

virtual long rtabmap::DBDriver::getCalibrationsMemoryUsedQuery ( ) const
protectedpure virtual

Implemented in rtabmap::DBDriverSqlite3.

◆ getDatabaseVersion()

std::string rtabmap::DBDriver::getDatabaseVersion ( ) const

Definition at line 275 of file DBDriver.cpp.

◆ getDatabaseVersionQuery()

virtual bool rtabmap::DBDriver::getDatabaseVersionQuery ( std::string version) const
protectedpure virtual

Implemented in rtabmap::DBDriverSqlite3.

◆ getDepthImagesMemoryUsed()

long rtabmap::DBDriver::getDepthImagesMemoryUsed ( ) const

Definition at line 143 of file DBDriver.cpp.

◆ getDepthImagesMemoryUsedQuery()

virtual long rtabmap::DBDriver::getDepthImagesMemoryUsedQuery ( ) const
protectedpure virtual

Implemented in rtabmap::DBDriverSqlite3.

◆ getEmptyTrashesTime()

double rtabmap::DBDriver::getEmptyTrashesTime ( ) const
inline

Definition at line 81 of file DBDriver.h.

◆ getFeaturesMemoryUsed()

long rtabmap::DBDriver::getFeaturesMemoryUsed ( ) const

Definition at line 191 of file DBDriver.cpp.

◆ getFeaturesMemoryUsedQuery()

virtual long rtabmap::DBDriver::getFeaturesMemoryUsedQuery ( ) const
protectedpure virtual

Implemented in rtabmap::DBDriverSqlite3.

◆ getGridsMemoryUsed()

long rtabmap::DBDriver::getGridsMemoryUsed ( ) const

Definition at line 159 of file DBDriver.cpp.

◆ getGridsMemoryUsedQuery()

virtual long rtabmap::DBDriver::getGridsMemoryUsedQuery ( ) const
protectedpure virtual

Implemented in rtabmap::DBDriverSqlite3.

◆ getImagesMemoryUsed()

long rtabmap::DBDriver::getImagesMemoryUsed ( ) const

Definition at line 135 of file DBDriver.cpp.

◆ getImagesMemoryUsedQuery()

virtual long rtabmap::DBDriver::getImagesMemoryUsedQuery ( ) const
protectedpure virtual

Implemented in rtabmap::DBDriverSqlite3.

◆ getInvertedIndexNi()

void rtabmap::DBDriver::getInvertedIndexNi ( int  signatureId,
int ni 
) const

Definition at line 1018 of file DBDriver.cpp.

◆ getInvertedIndexNiQuery()

virtual void rtabmap::DBDriver::getInvertedIndexNiQuery ( int  signatureId,
int ni 
) const
protectedpure virtual

Implemented in rtabmap::DBDriverSqlite3.

◆ getLaserScanInfo()

bool rtabmap::DBDriver::getLaserScanInfo ( int  signatureId,
LaserScan info 
) const

Definition at line 762 of file DBDriver.cpp.

◆ getLaserScanInfoQuery()

virtual bool rtabmap::DBDriver::getLaserScanInfoQuery ( int  signatureId,
LaserScan info 
) const
protectedpure virtual

Implemented in rtabmap::DBDriverSqlite3.

◆ getLaserScansMemoryUsed()

long rtabmap::DBDriver::getLaserScansMemoryUsed ( ) const

Definition at line 167 of file DBDriver.cpp.

◆ getLaserScansMemoryUsedQuery()

virtual long rtabmap::DBDriver::getLaserScansMemoryUsedQuery ( ) const
protectedpure virtual

Implemented in rtabmap::DBDriverSqlite3.

◆ getLastDictionarySize()

int rtabmap::DBDriver::getLastDictionarySize ( ) const

Definition at line 215 of file DBDriver.cpp.

◆ getLastDictionarySizeQuery()

virtual int rtabmap::DBDriver::getLastDictionarySizeQuery ( ) const
protectedpure virtual

Implemented in rtabmap::DBDriverSqlite3.

◆ getLastIdQuery()

virtual void rtabmap::DBDriver::getLastIdQuery ( const std::string tableName,
int id,
const std::string fieldName = "id" 
) const
protectedpure virtual

Implemented in rtabmap::DBDriverSqlite3.

◆ getLastMapId()

void rtabmap::DBDriver::getLastMapId ( int mapId) const

Definition at line 988 of file DBDriver.cpp.

◆ getLastNodeId()

void rtabmap::DBDriver::getLastNodeId ( int id) const

Definition at line 964 of file DBDriver.cpp.

◆ getLastNodeIds()

void rtabmap::DBDriver::getLastNodeIds ( std::set< int > &  ids) const

Definition at line 879 of file DBDriver.cpp.

◆ getLastNodeIdsQuery()

virtual void rtabmap::DBDriver::getLastNodeIdsQuery ( std::set< int > &  ids) const
protectedpure virtual

Implemented in rtabmap::DBDriverSqlite3.

◆ getLastNodesSize()

int rtabmap::DBDriver::getLastNodesSize ( ) const

Definition at line 207 of file DBDriver.cpp.

◆ getLastNodesSizeQuery()

virtual int rtabmap::DBDriver::getLastNodesSizeQuery ( ) const
protectedpure virtual

Implemented in rtabmap::DBDriverSqlite3.

◆ getLastParameters()

ParametersMap rtabmap::DBDriver::getLastParameters ( ) const

Definition at line 239 of file DBDriver.cpp.

◆ getLastParametersQuery()

virtual ParametersMap rtabmap::DBDriver::getLastParametersQuery ( ) const
protectedpure virtual

Implemented in rtabmap::DBDriverSqlite3.

◆ getLastWordId()

void rtabmap::DBDriver::getLastWordId ( int id) const

Definition at line 1003 of file DBDriver.cpp.

◆ getLinksMemoryUsed()

long rtabmap::DBDriver::getLinksMemoryUsed ( ) const

Definition at line 127 of file DBDriver.cpp.

◆ getLinksMemoryUsedQuery()

virtual long rtabmap::DBDriver::getLinksMemoryUsedQuery ( ) const
protectedpure virtual

Implemented in rtabmap::DBDriverSqlite3.

◆ getMemoryUsed()

unsigned long rtabmap::DBDriver::getMemoryUsed ( ) const

Definition at line 110 of file DBDriver.cpp.

◆ getMemoryUsedQuery()

virtual unsigned long rtabmap::DBDriver::getMemoryUsedQuery ( ) const
protectedpure virtual

Implemented in rtabmap::DBDriverSqlite3.

◆ getNodeData()

void rtabmap::DBDriver::getNodeData ( int  signatureId,
SensorData data,
bool  images = true,
bool  scan = true,
bool  userData = true,
bool  occupancyGrid = true 
) const

Definition at line 685 of file DBDriver.cpp.

◆ getNodeIdByLabel()

void rtabmap::DBDriver::getNodeIdByLabel ( const std::string label,
int id 
) const

Definition at line 1065 of file DBDriver.cpp.

◆ getNodeIdByLabelQuery()

virtual void rtabmap::DBDriver::getNodeIdByLabelQuery ( const std::string label,
int id 
) const
protectedpure virtual

Implemented in rtabmap::DBDriverSqlite3.

◆ getNodeInfo()

bool rtabmap::DBDriver::getNodeInfo ( int  signatureId,
Transform pose,
int mapId,
int weight,
std::string label,
double &  stamp,
Transform groundTruthPose,
std::vector< float > &  velocity,
GPS gps,
EnvSensors sensors 
) const

Definition at line 786 of file DBDriver.cpp.

◆ getNodeInfoQuery()

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

Implemented in rtabmap::DBDriverSqlite3.

◆ getNodesMemoryUsed()

long rtabmap::DBDriver::getNodesMemoryUsed ( ) const

Definition at line 119 of file DBDriver.cpp.

◆ getNodesMemoryUsedQuery()

virtual long rtabmap::DBDriver::getNodesMemoryUsedQuery ( ) const
protectedpure virtual

Implemented in rtabmap::DBDriverSqlite3.

◆ getNodesObservingLandmark()

void rtabmap::DBDriver::getNodesObservingLandmark ( int  landmarkId,
std::map< int, Link > &  nodes 
) const

Definition at line 1038 of file DBDriver.cpp.

◆ getNodesObservingLandmarkQuery()

virtual void rtabmap::DBDriver::getNodesObservingLandmarkQuery ( int  landmarkId,
std::map< int, Link > &  nodes 
) const
protectedpure virtual

Implemented in rtabmap::DBDriverSqlite3.

◆ getStatistics()

std::map< std::string, float > rtabmap::DBDriver::getStatistics ( int  nodeId,
double &  stamp,
std::vector< int > *  wmState = 0 
) const

Definition at line 248 of file DBDriver.cpp.

◆ getStatisticsMemoryUsed()

long rtabmap::DBDriver::getStatisticsMemoryUsed ( ) const

Definition at line 199 of file DBDriver.cpp.

◆ getStatisticsMemoryUsedQuery()

virtual long rtabmap::DBDriver::getStatisticsMemoryUsedQuery ( ) const
protectedpure virtual

Implemented in rtabmap::DBDriverSqlite3.

◆ getStatisticsQuery()

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

Implemented in rtabmap::DBDriverSqlite3.

◆ getTargetVersion()

const std::string& rtabmap::DBDriver::getTargetVersion ( ) const
inline

Definition at line 73 of file DBDriver.h.

◆ getTotalDictionarySize()

int rtabmap::DBDriver::getTotalDictionarySize ( ) const

Definition at line 231 of file DBDriver.cpp.

◆ getTotalDictionarySizeQuery()

virtual int rtabmap::DBDriver::getTotalDictionarySizeQuery ( ) const
protectedpure virtual

Implemented in rtabmap::DBDriverSqlite3.

◆ getTotalNodesSize()

int rtabmap::DBDriver::getTotalNodesSize ( ) const

Definition at line 223 of file DBDriver.cpp.

◆ getTotalNodesSizeQuery()

virtual int rtabmap::DBDriver::getTotalNodesSizeQuery ( ) const
protectedpure virtual

Implemented in rtabmap::DBDriverSqlite3.

◆ getUrl()

const std::string& rtabmap::DBDriver::getUrl ( ) const
inline

Definition at line 72 of file DBDriver.h.

◆ getUserDataMemoryUsed()

long rtabmap::DBDriver::getUserDataMemoryUsed ( ) const

Definition at line 175 of file DBDriver.cpp.

◆ getUserDataMemoryUsedQuery()

virtual long rtabmap::DBDriver::getUserDataMemoryUsedQuery ( ) const
protectedpure virtual

Implemented in rtabmap::DBDriverSqlite3.

◆ getWeight()

void rtabmap::DBDriver::getWeight ( int  signatureId,
int weight 
) const

Definition at line 859 of file DBDriver.cpp.

◆ getWeightQuery()

virtual void rtabmap::DBDriver::getWeightQuery ( int  signatureId,
int weight 
) const
protectedpure virtual

Implemented in rtabmap::DBDriverSqlite3.

◆ getWordsMemoryUsed()

long rtabmap::DBDriver::getWordsMemoryUsed ( ) const

Definition at line 183 of file DBDriver.cpp.

◆ getWordsMemoryUsedQuery()

virtual long rtabmap::DBDriver::getWordsMemoryUsedQuery ( ) const
protectedpure virtual

Implemented in rtabmap::DBDriverSqlite3.

◆ isConnected()

bool rtabmap::DBDriver::isConnected ( ) const

Definition at line 100 of file DBDriver.cpp.

◆ isConnectedQuery()

virtual bool rtabmap::DBDriver::isConnectedQuery ( ) const
protectedpure virtual

Implemented in rtabmap::DBDriverSqlite3.

◆ isInMemory()

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

Reimplemented in rtabmap::DBDriverSqlite3.

Definition at line 71 of file DBDriver.h.

◆ load()

void rtabmap::DBDriver::load ( VWDictionary dictionary,
bool  lastStateOnly = true 
) const

Definition at line 533 of file DBDriver.cpp.

◆ load2DMap()

cv::Mat rtabmap::DBDriver::load2DMap ( float xMin,
float yMin,
float cellSize 
) const

Definition at line 1212 of file DBDriver.cpp.

◆ load2DMapQuery()

virtual cv::Mat rtabmap::DBDriver::load2DMapQuery ( float xMin,
float yMin,
float cellSize 
) const
protectedpure virtual

Implemented in rtabmap::DBDriverSqlite3.

◆ loadLastNodes()

void rtabmap::DBDriver::loadLastNodes ( std::list< Signature * > &  signatures) const

Definition at line 540 of file DBDriver.cpp.

◆ loadLastNodesQuery()

virtual void rtabmap::DBDriver::loadLastNodesQuery ( std::list< Signature * > &  signatures) const
protectedpure virtual

Implemented in rtabmap::DBDriverSqlite3.

◆ loadLinks()

void rtabmap::DBDriver::loadLinks ( int  signatureId,
std::multimap< int, Link > &  links,
Link::Type  type = Link::kUndef 
) const

Definition at line 825 of file DBDriver.cpp.

◆ loadLinksQuery()

virtual void rtabmap::DBDriver::loadLinksQuery ( int  signatureId,
std::multimap< int, Link > &  links,
Link::Type  type = Link::kUndef 
) const
protectedpure virtual

Implemented in rtabmap::DBDriverSqlite3.

◆ loadNodeData() [1/2]

void rtabmap::DBDriver::loadNodeData ( Signature signature,
bool  images = true,
bool  scan = true,
bool  userData = true,
bool  occupancyGrid = true 
) const

Definition at line 658 of file DBDriver.cpp.

◆ loadNodeData() [2/2]

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

Definition at line 665 of file DBDriver.cpp.

◆ loadNodeDataQuery()

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

Implemented in rtabmap::DBDriverSqlite3.

◆ loadOptimizedMesh()

cv::Mat rtabmap::DBDriver::loadOptimizedMesh ( std::vector< std::vector< std::vector< RTABMAP_PCL_INDEX > > > *  polygons = 0,
std::vector< std::vector< Eigen::Vector2f > > *  texCoords = 0,
cv::Mat textures = 0 
) const

Definition at line 1235 of file DBDriver.cpp.

◆ loadOptimizedMeshQuery()

virtual cv::Mat rtabmap::DBDriver::loadOptimizedMeshQuery ( std::vector< std::vector< std::vector< RTABMAP_PCL_INDEX > > > *  polygons,
std::vector< std::vector< Eigen::Vector2f > > *  texCoords,
cv::Mat textures 
) const
protectedpure virtual

Implemented in rtabmap::DBDriverSqlite3.

◆ loadOptimizedPoses()

std::map< int, Transform > rtabmap::DBDriver::loadOptimizedPoses ( Transform lastlocalizationPose = 0) const

Definition at line 1197 of file DBDriver.cpp.

◆ loadOptimizedPosesQuery()

virtual std::map<int, Transform> rtabmap::DBDriver::loadOptimizedPosesQuery ( Transform lastlocalizationPose = 0) const
protectedpure virtual

Implemented in rtabmap::DBDriverSqlite3.

◆ loadPreviewImage()

cv::Mat rtabmap::DBDriver::loadPreviewImage ( ) const

Definition at line 1183 of file DBDriver.cpp.

◆ loadPreviewImageQuery()

virtual cv::Mat rtabmap::DBDriver::loadPreviewImageQuery ( ) const
protectedpure virtual

Implemented in rtabmap::DBDriverSqlite3.

◆ loadQuery()

virtual void rtabmap::DBDriver::loadQuery ( VWDictionary dictionary,
bool  lastStateOnly = true 
) const
protectedpure virtual

Implemented in rtabmap::DBDriverSqlite3.

◆ loadSignature()

Signature * rtabmap::DBDriver::loadSignature ( int  id,
bool *  loadedFromTrash = 0 
)

Definition at line 547 of file DBDriver.cpp.

◆ loadSignatures()

void rtabmap::DBDriver::loadSignatures ( const std::list< int > &  ids,
std::list< Signature * > &  signatures,
std::set< int > *  loadedFromTrash = 0 
)

Definition at line 564 of file DBDriver.cpp.

◆ loadSignaturesQuery()

virtual void rtabmap::DBDriver::loadSignaturesQuery ( const std::list< int > &  ids,
std::list< Signature * > &  signatures 
) const
protectedpure virtual

Implemented in rtabmap::DBDriverSqlite3.

◆ loadWords()

void rtabmap::DBDriver::loadWords ( const std::set< int > &  wordIds,
std::list< VisualWord * > &  vws 
)

Definition at line 616 of file DBDriver.cpp.

◆ loadWordsQuery()

virtual void rtabmap::DBDriver::loadWordsQuery ( const std::set< int > &  wordIds,
std::list< VisualWord * > &  vws 
) const
protectedpure virtual

Implemented in rtabmap::DBDriverSqlite3.

◆ mainLoop()

void rtabmap::DBDriver::mainLoop ( )
privatevirtual

Pure virtual method mainLoop(). The inner loop of the thread. This method is called repetitively until the thread is killed. Note that if kill() is called in mainLoopBegin(), mainLoop() is not called, terminating immediately the thread.

See also
mainLoop()
kill()

Implements UThread.

Definition at line 284 of file DBDriver.cpp.

◆ openConnection()

bool rtabmap::DBDriver::openConnection ( const std::string url,
bool  overwritten = false 
)

Definition at line 86 of file DBDriver.cpp.

◆ parseParameters()

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

Reimplemented in rtabmap::DBDriverSqlite3.

Definition at line 59 of file DBDriver.cpp.

◆ removeLink()

void rtabmap::DBDriver::removeLink ( int  from,
int  to 
)

Definition at line 473 of file DBDriver.cpp.

◆ save2DMap()

void rtabmap::DBDriver::save2DMap ( const cv::Mat map,
float  xMin,
float  yMin,
float  cellSize 
) const

Definition at line 1205 of file DBDriver.cpp.

◆ save2DMapQuery()

virtual void rtabmap::DBDriver::save2DMapQuery ( const cv::Mat map,
float  xMin,
float  yMin,
float  cellSize 
) const
protectedpure virtual

Implemented in rtabmap::DBDriverSqlite3.

◆ saveOptimizedMesh()

void rtabmap::DBDriver::saveOptimizedMesh ( const cv::Mat cloud,
const std::vector< std::vector< std::vector< RTABMAP_PCL_INDEX > > > &  polygons = std::vector<std::vector<std::vector<RTABMAP_PCL_INDEX> > >(),
const std::vector< std::vector< Eigen::Vector2f > > &  texCoords = std::vector<std::vector<Eigen::Vector2f> >(),
const cv::Mat textures = cv::Mat() 
) const

Definition at line 1220 of file DBDriver.cpp.

◆ saveOptimizedMeshQuery()

virtual void rtabmap::DBDriver::saveOptimizedMeshQuery ( const cv::Mat cloud,
const std::vector< std::vector< std::vector< RTABMAP_PCL_INDEX > > > &  polygons,
const std::vector< std::vector< Eigen::Vector2f > > &  texCoords,
const cv::Mat textures 
) const
protectedpure virtual

Implemented in rtabmap::DBDriverSqlite3.

◆ saveOptimizedPoses()

void rtabmap::DBDriver::saveOptimizedPoses ( const std::map< int, Transform > &  optimizedPoses,
const Transform lastlocalizationPose 
) const

Definition at line 1191 of file DBDriver.cpp.

◆ saveOptimizedPosesQuery()

virtual void rtabmap::DBDriver::saveOptimizedPosesQuery ( const std::map< int, Transform > &  optimizedPoses,
const Transform lastlocalizationPose 
) const
protectedpure virtual

Implemented in rtabmap::DBDriverSqlite3.

◆ saveOrUpdate() [1/2]

void rtabmap::DBDriver::saveOrUpdate ( const std::vector< Signature * > &  signatures)
private

Definition at line 407 of file DBDriver.cpp.

◆ saveOrUpdate() [2/2]

void rtabmap::DBDriver::saveOrUpdate ( const std::vector< VisualWord * > &  words) const
private

Definition at line 437 of file DBDriver.cpp.

◆ savePreviewImage()

void rtabmap::DBDriver::savePreviewImage ( const cv::Mat image) const

Definition at line 1176 of file DBDriver.cpp.

◆ savePreviewImageQuery()

virtual void rtabmap::DBDriver::savePreviewImageQuery ( const cv::Mat image) const
protectedpure virtual

Implemented in rtabmap::DBDriverSqlite3.

◆ saveQuery() [1/2]

virtual void rtabmap::DBDriver::saveQuery ( const std::list< Signature * > &  signatures)
protectedpure virtual

Implemented in rtabmap::DBDriverSqlite3.

◆ saveQuery() [2/2]

virtual void rtabmap::DBDriver::saveQuery ( const std::list< VisualWord * > &  words) const
protectedpure virtual

Implemented in rtabmap::DBDriverSqlite3.

◆ setTimestampUpdateEnabled()

void rtabmap::DBDriver::setTimestampUpdateEnabled ( bool  enabled)
inline

Definition at line 82 of file DBDriver.h.

◆ updateCalibration()

void rtabmap::DBDriver::updateCalibration ( int  nodeId,
const std::vector< CameraModel > &  models,
const std::vector< StereoCameraModel > &  stereoModels 
)

Definition at line 505 of file DBDriver.cpp.

◆ updateCalibrationQuery()

virtual void rtabmap::DBDriver::updateCalibrationQuery ( int  nodeId,
const std::vector< CameraModel > &  models,
const std::vector< StereoCameraModel > &  stereoModels 
) const
protectedpure virtual

Implemented in rtabmap::DBDriverSqlite3.

◆ updateDepthImage()

void rtabmap::DBDriver::updateDepthImage ( int  nodeId,
const cv::Mat image 
)

Definition at line 515 of file DBDriver.cpp.

◆ updateDepthImageQuery()

virtual void rtabmap::DBDriver::updateDepthImageQuery ( int  nodeId,
const cv::Mat image 
) const
protectedpure virtual

Implemented in rtabmap::DBDriverSqlite3.

◆ updateLaserScan()

void rtabmap::DBDriver::updateLaserScan ( int  nodeId,
const LaserScan scan 
)

Definition at line 524 of file DBDriver.cpp.

◆ updateLaserScanQuery()

virtual void rtabmap::DBDriver::updateLaserScanQuery ( int  nodeId,
const LaserScan scan 
) const
protectedpure virtual

Implemented in rtabmap::DBDriverSqlite3.

◆ updateLink()

void rtabmap::DBDriver::updateLink ( const Link link)

Definition at line 477 of file DBDriver.cpp.

◆ updateLinkQuery()

virtual void rtabmap::DBDriver::updateLinkQuery ( const Link link) const
protectedpure virtual

Implemented in rtabmap::DBDriverSqlite3.

◆ updateOccupancyGrid()

void rtabmap::DBDriver::updateOccupancyGrid ( int  nodeId,
const cv::Mat ground,
const cv::Mat obstacles,
const cv::Mat empty,
float  cellSize,
const cv::Point3f &  viewpoint 
)

Definition at line 483 of file DBDriver.cpp.

◆ updateOccupancyGridQuery()

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

Implemented in rtabmap::DBDriverSqlite3.

◆ updateQuery() [1/2]

virtual void rtabmap::DBDriver::updateQuery ( const std::list< Signature * > &  signatures,
bool  updateTimestamp 
) const
protectedpure virtual

Implemented in rtabmap::DBDriverSqlite3.

◆ updateQuery() [2/2]

virtual void rtabmap::DBDriver::updateQuery ( const std::list< VisualWord * > &  words,
bool  updateTimestamp 
) const
protectedpure virtual

Implemented in rtabmap::DBDriverSqlite3.

Member Data Documentation

◆ _addSem

USemaphore rtabmap::DBDriver::_addSem
private

Definition at line 310 of file DBDriver.h.

◆ _dbSafeAccessMutex

UMutex rtabmap::DBDriver::_dbSafeAccessMutex
private

Definition at line 309 of file DBDriver.h.

◆ _emptyTrashesTime

double rtabmap::DBDriver::_emptyTrashesTime
private

Definition at line 311 of file DBDriver.h.

◆ _targetVersion

std::string rtabmap::DBDriver::_targetVersion
private

Definition at line 313 of file DBDriver.h.

◆ _timestampUpdate

bool rtabmap::DBDriver::_timestampUpdate
private

Definition at line 314 of file DBDriver.h.

◆ _transactionMutex

UMutex rtabmap::DBDriver::_transactionMutex
private

Definition at line 305 of file DBDriver.h.

◆ _trashesMutex

UMutex rtabmap::DBDriver::_trashesMutex
private

Definition at line 308 of file DBDriver.h.

◆ _trashSignatures

std::map<int, Signature *> rtabmap::DBDriver::_trashSignatures
private

Definition at line 306 of file DBDriver.h.

◆ _trashVisualWords

std::map<int, VisualWord *> rtabmap::DBDriver::_trashVisualWords
private

Definition at line 307 of file DBDriver.h.

◆ _url

std::string rtabmap::DBDriver::_url
private

Definition at line 312 of file DBDriver.h.


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


rtabmap
Author(s): Mathieu Labbe
autogenerated on Thu Jul 25 2024 02:50:27