28 #ifndef CORELIB_INCLUDE_RTABMAP_CORE_LANDMARK_H_ 29 #define CORELIB_INCLUDE_RTABMAP_CORE_LANDMARK_H_ 66 const int &
id()
const {
return id_;}
88 UASSERT(covariance_.cols == 6 && covariance_.rows == 6 && covariance_.type() == CV_64FC1);
89 UASSERT_MSG(
uIsFinite(covariance_.at<
double>(0,0)) && covariance_.at<
double>(0,0)>0,
uFormat(
"Linear covariance should not be null! Value=%f.", covariance_.at<
double>(0,0)).c_str());
90 UASSERT_MSG(
uIsFinite(covariance_.at<
double>(1,1)) && covariance_.at<
double>(1,1)>0,
uFormat(
"Linear covariance should not be null! Value=%f.", covariance_.at<
double>(1,1)).c_str());
91 UASSERT_MSG(
uIsFinite(covariance_.at<
double>(2,2)) && covariance_.at<
double>(2,2)>0,
uFormat(
"Linear covariance should not be null! Value=%f.", covariance_.at<
double>(2,2)).c_str());
92 UASSERT_MSG(
uIsFinite(covariance_.at<
double>(3,3)) && covariance_.at<
double>(3,3)>0,
uFormat(
"Angular covariance should not be null! Value=%f (set to 9999 if unknown).", covariance_.at<
double>(3,3)).c_str());
93 UASSERT_MSG(
uIsFinite(covariance_.at<
double>(4,4)) && covariance_.at<
double>(4,4)>0,
uFormat(
"Angular covariance should not be null! Value=%f (set to 9999 if unknown).", covariance_.at<
double>(4,4)).c_str());
94 UASSERT_MSG(
uIsFinite(covariance_.at<
double>(5,5)) && covariance_.at<
double>(5,5)>0,
uFormat(
"Angular covariance should not be null! Value=%f (set to 9999 if unknown).", covariance_.at<
double>(5,5)).c_str());
RTABMAP_DEPRECATED(Landmark(const int &id, const Transform &pose, const cv::Mat &covariance), "Use constructor with size=0 instead.")
std::map< int, Landmark > Landmarks
Basic mathematics functions.
const cv::Mat & covariance() const
Some conversion functions.
bool uIsFinite(const T &value)
#define UASSERT(condition)
const Transform & pose() const
#define UASSERT_MSG(condition, msg_str)
const float & size() const
ULogger class and convenient macros.
std::string UTILITE_EXP uFormat(const char *fmt,...)
Landmark(const int &id, const float &size, const Transform &pose, const cv::Mat &covariance)