0.16.2: Added wm_state field to database's Statistics table. New parameter "Rtabmap/SaveWMState" (default false). DbViewer: added option in GraphView to show only poses of the root id that were in WM at that time

This commit is contained in:
matlabbe
2018-02-21 18:19:20 -05:00
parent 93e1d732c9
commit 297cf3f51e
16 changed files with 208 additions and 159 deletions
+2 -2
View File
@@ -245,11 +245,11 @@ ParametersMap DBDriver::getLastParameters() const
return parameters;
}
std::map<std::string, float> DBDriver::getStatistics(int nodeId, double & stamp) const
std::map<std::string, float> DBDriver::getStatistics(int nodeId, double & stamp, std::vector<int> * wmState) const
{
std::map<std::string, float> statistics;
_dbSafeAccessMutex.lock();
statistics = getStatisticsQuery(nodeId, stamp);
statistics = getStatisticsQuery(nodeId, stamp, wmState);
_dbSafeAccessMutex.unlock();
return statistics;
}