mirror of
https://github.com/introlab/rtabmap.git
synced 2026-09-02 01:20:25 +08:00
DbViewer: added mapId
git-svn-id: http://rtabmap.googlecode.com/svn/trunk/rtabmap@1561 f169173b-cf89-36c8-b27e-44dbe73f0c83
This commit is contained in:
@@ -2364,6 +2364,22 @@ bool Memory::rehearsalMerge(int oldId, int newId)
|
||||
return false;
|
||||
}
|
||||
|
||||
int Memory::getMapId(int signatureId) const
|
||||
{
|
||||
int mapId = 0;
|
||||
const Signature * s = this->getSignature(signatureId);
|
||||
if(s)
|
||||
{
|
||||
mapId = s->mapId();
|
||||
}
|
||||
else if(_dbDriver)
|
||||
{
|
||||
Transform pose;
|
||||
_dbDriver->getPose(signatureId, pose, mapId);
|
||||
}
|
||||
return mapId;
|
||||
}
|
||||
|
||||
std::vector<unsigned char> Memory::getImage(int signatureId) const
|
||||
{
|
||||
std::vector<unsigned char> image;
|
||||
|
||||
Reference in New Issue
Block a user