Version 0.8.8: added "user_data" field in database. Added WifiMapping example. Fixed FATAL error when initializing rtabmap with no database.

This commit is contained in:
Mathieu Labbe
2015-03-25 13:31:12 -04:00
parent 2be511813e
commit 186dc60a49
32 changed files with 1064 additions and 141 deletions
+4 -2
View File
@@ -1037,7 +1037,8 @@ void DatabaseViewer::view3DMap()
Transform odomPose;
std::string label;
double stamp;
if(memory_->getNodeInfo(iter->first, odomPose, mapId, weight, label, stamp, true))
std::vector<unsigned char> userData;
if(memory_->getNodeInfo(iter->first, odomPose, mapId, weight, label, stamp, userData, true))
{
color = (Qt::GlobalColor)(mapId % 12 + 7 );
}
@@ -1391,7 +1392,8 @@ void DatabaseViewer::update(int value,
int w;
std::string l;
double s;
memory_->getNodeInfo(id, odomPose, mapId, w, l, s, true);
std::vector<unsigned char> d;
memory_->getNodeInfo(id, odomPose, mapId, w, l, s, d, true);
weight->setNum(data.getWeight());
label->setText(data.getLabel().c_str());