Database update (version 0.8.5): added Node.stamp and Node.label fields

Added labeling mechanism of nodes (by default the first node of a map is tagged "map#")
This commit is contained in:
Mathieu Labbe
2015-02-27 15:24:15 -05:00
parent 1d39db2bcc
commit 721de2e76b
21 changed files with 411 additions and 44 deletions

View File

@@ -39,6 +39,7 @@ namespace rtabmap
Signature::Signature() :
_id(0), // invalid id
_mapId(-1),
_stamp(0.0),
_weight(-1),
_saved(false),
_modified(true),
@@ -54,6 +55,9 @@ Signature::Signature() :
Signature::Signature(
int id,
int mapId,
int weight,
double stamp,
const std::string & label,
const std::multimap<int, cv::KeyPoint> & words,
const std::multimap<int, pcl::PointXYZ> & words3, // in base_link frame (localTransform applied)
const Transform & pose,
@@ -67,7 +71,9 @@ Signature::Signature(
const Transform & localTransform) :
_id(id),
_mapId(mapId),
_weight(0),
_stamp(stamp),
_weight(weight),
_label(label),
_saved(false),
_modified(true),
_linksModified(true),
@@ -258,7 +264,8 @@ SensorData Signature::toSensorData()
_pose,
rotVariance,
transVariance,
_id);
_id,
_stamp);
}
void Signature::uncompressData()