core: added rtabmap::deleteLocation(id)

git-svn-id: http://rtabmap.googlecode.com/svn/trunk/rtabmap@920 f169173b-cf89-36c8-b27e-44dbe73f0c83
This commit is contained in:
matlabbe
2013-08-20 20:37:24 +00:00
parent 21bd27586f
commit 97c70d394e
4 changed files with 32 additions and 11 deletions
+8 -2
View File
@@ -1209,13 +1209,20 @@ void Rtabmap::setWorkingDirectory(std::string path)
void Rtabmap::deleteLastLocation()
{
if(_memory)
{
_memory->deleteLastLocation();
}
}
void Rtabmap::deleteLocation(int locationId)
{
if(_memory)
{
_memory->deleteLocation(locationId);
}
}
void Rtabmap::rejectLastLoopClosure()
{
UDEBUG("_lcHypothesisId=%d", _lcHypothesisId);
@@ -1236,7 +1243,6 @@ void Rtabmap::rejectLastLoopClosure()
void Rtabmap::process(const cv::Mat & image, int id, std::multimap<int, cv::KeyPoint> * words)
{
this->process(Image(image, id), words);
}