40 infMatrix_(
cv::Mat::eye(6,6,CV_64FC1))
48 const cv::Mat & userData) :
56 if(userData.type() == CV_8UC1)
80 UASSERT(infMatrix.cols == 6 && infMatrix.rows == 6 && infMatrix.type() == CV_64FC1);
81 UASSERT_MSG(
uIsFinite(infMatrix.at<
double>(0,0)) && infMatrix.at<
double>(0,0)>0,
uFormat(
"Linear information should not be null! Value=%f (set to 1 if unknown).", infMatrix.at<
double>(0,0)).c_str());
82 UASSERT_MSG(
uIsFinite(infMatrix.at<
double>(1,1)) && infMatrix.at<
double>(1,1)>0,
uFormat(
"Linear information should not be null! Value=%f (set to 1 if unknown).", infMatrix.at<
double>(1,1)).c_str());
83 UASSERT_MSG(
uIsFinite(infMatrix.at<
double>(2,2)) && infMatrix.at<
double>(2,2)>0,
uFormat(
"Linear information should not be null! Value=%f (set to 1 if unknown).", infMatrix.at<
double>(2,2)).c_str());
84 UASSERT_MSG(
uIsFinite(infMatrix.at<
double>(3,3)) && infMatrix.at<
double>(3,3)>0,
uFormat(
"Angular information should not be null! Value=%f (set to 1 if unknown).", infMatrix.at<
double>(3,3)).c_str());
85 UASSERT_MSG(
uIsFinite(infMatrix.at<
double>(4,4)) && infMatrix.at<
double>(4,4)>0,
uFormat(
"Angular information should not be null! Value=%f (set to 1 if unknown).", infMatrix.at<
double>(4,4)).c_str());
86 UASSERT_MSG(
uIsFinite(infMatrix.at<
double>(5,5)) && infMatrix.at<
double>(5,5)>0,
uFormat(
"Angular information should not be null! Value=%f (set to 1 if unknown).", infMatrix.at<
double>(5,5)).c_str());
cv::Mat RTABMAP_EXP uncompressData(const cv::Mat &bytes)
GLM_FUNC_DECL genType min(genType const &x, genType const &y)
double transVariance() const
Basic mathematics functions.
double rotVariance() const
Some conversion functions.
const Transform & transform() const
bool uIsFinite(const T &value)
#define UASSERT(condition)
T uMax3(const T &a, const T &b, const T &c)
void setInfMatrix(const cv::Mat &infMatrix)
#define UASSERT_MSG(condition, msg_str)
Link merge(const Link &link, Type outputType) const
const cv::Mat & infMatrix() const
cv::Mat uncompressUserDataConst() const
ULogger class and convenient macros.
cv::Mat _userDataCompressed
std::string UTILITE_EXP uFormat(const char *fmt,...)
void uncompressUserData()