mirror of
https://github.com/introlab/rtabmap.git
synced 2026-10-06 18:17:47 +08:00
Adding support for compressed input data and right color image. (#1463)
This commit is contained in:
@@ -337,6 +337,15 @@ Transform Odometry::process(SensorData & data, const Transform & guessIn, Odomet
|
||||
}
|
||||
}
|
||||
|
||||
if((data.imageRaw().empty() && !data.imageCompressed().empty()) ||
|
||||
(data.depthOrRightRaw().empty() && !data.depthOrRightCompressed().empty()) ||
|
||||
(data.laserScanRaw().empty() && !data.laserScanCompressed().empty()))
|
||||
{
|
||||
UDEBUG("Received compressed data, uncompressing...");
|
||||
data.uncompressData();
|
||||
UDEBUG("Received compressed data, uncompressing...done!");
|
||||
}
|
||||
|
||||
if(!data.imageRaw().empty())
|
||||
{
|
||||
UDEBUG("Processing image data %dx%d: rgbd models=%ld, stereo models=%ld",
|
||||
|
||||
Reference in New Issue
Block a user