mirror of
https://github.com/introlab/rtabmap.git
synced 2026-10-05 09:37:46 +08:00
Added BA integration test
This commit is contained in:
@@ -2494,10 +2494,16 @@ std::map<int, Transform> Memory::loadOptimizedPoses(Transform * lastlocalization
|
||||
|
||||
void Memory::save2DMap(const cv::Mat & map, float xMin, float yMin, float cellSize) const
|
||||
{
|
||||
if(_dbDriver)
|
||||
if(_dbDriver && !this->isReadOnly())
|
||||
{
|
||||
_dbDriver->save2DMap(map, xMin, yMin, cellSize);
|
||||
}
|
||||
else
|
||||
{
|
||||
UERROR("Attempting to write back 2D map but the database "
|
||||
"is opened in read-only mode (%s=true), skipping.",
|
||||
Parameters::kMemLocalizationReadOnly().c_str());
|
||||
}
|
||||
}
|
||||
|
||||
cv::Mat Memory::load2DMap(float & xMin, float & yMin, float & cellSize) const
|
||||
|
||||
Reference in New Issue
Block a user