mirror of
https://github.com/introlab/rtabmap.git
synced 2026-09-03 10:00:23 +08:00
Fixed compilation warnings
This commit is contained in:
@@ -205,7 +205,14 @@ Transform OdometryMono::computeTransform(SensorData & data, const Transform & gu
|
||||
{
|
||||
cv::Mat newFrame;
|
||||
cv::cvtColor(data.imageRaw(), newFrame, cv::COLOR_BGR2GRAY);
|
||||
data.setImageRaw(newFrame);
|
||||
if(data.stereoCameraModel().isValidForProjection())
|
||||
{
|
||||
data.setStereoImage(newFrame, data.rightRaw(), data.stereoCameraModel());
|
||||
}
|
||||
else
|
||||
{
|
||||
data.setRGBDImage(newFrame, data.depthRaw(), data.cameraModels());
|
||||
}
|
||||
}
|
||||
|
||||
if(!localMap_.empty())
|
||||
|
||||
Reference in New Issue
Block a user