mirror of
https://github.com/introlab/rtabmap.git
synced 2026-09-02 01:20:25 +08:00
fixed fatal error (fx==0) on kinect v2 calibration, added tx,ty,tz to camera local transform in Preferences
This commit is contained in:
@@ -1459,12 +1459,16 @@ SensorData CameraFreenect2::captureImage()
|
||||
}
|
||||
}
|
||||
|
||||
CameraModel model(
|
||||
fx, //fx
|
||||
fy, //fy
|
||||
cx, //cx
|
||||
cy, // cy
|
||||
this->getLocalTransform());
|
||||
CameraModel model;
|
||||
if(fx && fy)
|
||||
{
|
||||
model=CameraModel(
|
||||
fx, //fx
|
||||
fy, //fy
|
||||
cx, //cx
|
||||
cy, // cy
|
||||
this->getLocalTransform());
|
||||
}
|
||||
data = SensorData(rgb, depth, model, this->getNextSeqID(), stamp);
|
||||
|
||||
listener_->release(frames);
|
||||
|
||||
Reference in New Issue
Block a user