mirror of
https://github.com/introlab/rtabmap.git
synced 2026-09-02 09:30:25 +08:00
fixed fatal error (fx not defined) on stereo camera calibration
This commit is contained in:
@@ -424,13 +424,17 @@ SensorData CameraStereoDC1394::captureImage()
|
|||||||
// Rectification
|
// Rectification
|
||||||
left = stereoModel_.left().rectifyImage(left);
|
left = stereoModel_.left().rectifyImage(left);
|
||||||
right = stereoModel_.right().rectifyImage(right);
|
right = stereoModel_.right().rectifyImage(right);
|
||||||
StereoCameraModel model(
|
StereoCameraModel model;
|
||||||
stereoModel_.left().fx(), //fx
|
if(stereoModel_.isValid())
|
||||||
stereoModel_.left().fy(), //fy
|
{
|
||||||
stereoModel_.left().cx(), //cx
|
model = StereoCameraModel(
|
||||||
stereoModel_.left().cy(), //cy
|
stereoModel_.left().fx(), //fx
|
||||||
stereoModel_.baseline(),
|
stereoModel_.left().fy(), //fy
|
||||||
this->getLocalTransform());
|
stereoModel_.left().cx(), //cx
|
||||||
|
stereoModel_.left().cy(), //cy
|
||||||
|
stereoModel_.baseline(),
|
||||||
|
this->getLocalTransform());
|
||||||
|
}
|
||||||
data = SensorData(left, right, model, this->getNextSeqID(), UTimer::now());
|
data = SensorData(left, right, model, this->getNextSeqID(), UTimer::now());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user