mirror of
https://github.com/introlab/rtabmap.git
synced 2026-09-03 10:00:23 +08:00
CLAMS: added isFinite conditions in coneFit (before reproject) http://official-rtab-map-forum.67519.x6.nabble.com/Depth-calibration-fatal-error-td2682.html
This commit is contained in:
@@ -190,6 +190,11 @@ namespace clams
|
|||||||
pt_lr.x += radius;
|
pt_lr.x += radius;
|
||||||
pt_lr.y += radius;
|
pt_lr.y += radius;
|
||||||
|
|
||||||
|
if(!pcl::isFinite(pt_ul) || !pcl::isFinite(pt_lr))
|
||||||
|
{
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
ppt_ul = reproject(pt_ul);
|
ppt_ul = reproject(pt_ul);
|
||||||
ppt_lr = reproject(pt_lr);
|
ppt_lr = reproject(pt_lr);
|
||||||
if(ppt_ul.z_ == 0 || !(ppt_ul.u_ >= 0 && ppt_ul.v_ >= 0 && ppt_ul.u_ < imageSize.width && ppt_ul.v_ < imageSize.height))
|
if(ppt_ul.z_ == 0 || !(ppt_ul.u_ >= 0 && ppt_ul.v_ >= 0 && ppt_ul.u_ < imageSize.width && ppt_ul.v_ < imageSize.height))
|
||||||
|
|||||||
Reference in New Issue
Block a user