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:
matlabbe
2013-01-10 21:55:57 +00:00
parent d8b3408c2f
commit ec4c0522e7
4 changed files with 13 additions and 3 deletions

View File

@@ -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)