mirror of
https://github.com/introlab/rtabmap.git
synced 2026-09-02 01:20:25 +08:00
Generating Graph in the c++ example
Added png of the generated graph in doc git-svn-id: http://rtabmap.googlecode.com/svn/trunk/rtabmap@707 f169173b-cf89-36c8-b27e-44dbe73f0c83
This commit is contained in:
@@ -151,9 +151,6 @@ void Rtabmap::setupLogFiles(bool overwrite)
|
||||
_foutFloat = fopen((_wDir+LOG_F).c_str(), attributes.c_str());
|
||||
_foutInt = fopen((_wDir+LOG_I).c_str(), attributes.c_str());
|
||||
#endif
|
||||
|
||||
printf("addLogFHeader=%d\n", addLogFHeader?1:0);
|
||||
|
||||
// add header (column identification)
|
||||
if(addLogFHeader && _foutFloat)
|
||||
{
|
||||
@@ -597,6 +594,14 @@ void Rtabmap::mainLoop()
|
||||
}
|
||||
}
|
||||
|
||||
void Rtabmap::generateGraph(const std::string & path) const
|
||||
{
|
||||
if(!this->isRunning() && _memory)
|
||||
{
|
||||
_memory->generateGraph(path);
|
||||
}
|
||||
}
|
||||
|
||||
void Rtabmap::resetMemory(bool dbOverwritten)
|
||||
{
|
||||
if(_memory)
|
||||
|
||||
Reference in New Issue
Block a user