mirror of
https://github.com/introlab/rtabmap_ros.git
synced 2026-10-07 02:07:45 +08:00
DbViewer: added frame selection when exporting poses. DBDriver: added getLaserScanInfo().
This commit is contained in:
@@ -632,6 +632,30 @@ bool DBDriver::getCalibration(
|
||||
return found;
|
||||
}
|
||||
|
||||
bool DBDriver::getLaserScanInfo(
|
||||
int signatureId,
|
||||
LaserScanInfo & info) const
|
||||
{
|
||||
UDEBUG("");
|
||||
bool found = false;
|
||||
// look in the trash
|
||||
_trashesMutex.lock();
|
||||
if(uContains(_trashSignatures, signatureId))
|
||||
{
|
||||
info = _trashSignatures.at(signatureId)->sensorData().laserScanInfo();
|
||||
found = true;
|
||||
}
|
||||
_trashesMutex.unlock();
|
||||
|
||||
if(!found)
|
||||
{
|
||||
_dbSafeAccessMutex.lock();
|
||||
found = this->getLaserScanInfoQuery(signatureId, info);
|
||||
_dbSafeAccessMutex.unlock();
|
||||
}
|
||||
return found;
|
||||
}
|
||||
|
||||
bool DBDriver::getNodeInfo(
|
||||
int signatureId,
|
||||
Transform & pose,
|
||||
|
||||
Reference in New Issue
Block a user