28 #ifndef CORELIB_INCLUDE_RTABMAP_CORE_LASERSCAN_H_ 29 #define CORELIB_INCLUDE_RTABMAP_CORE_LASERSCAN_H_ 52 static std::string formatName(
const Format & format);
53 static int channels(
const Format & format);
54 static bool isScan2d(
const Format & format);
55 static bool isScanHasNormals(
const Format & format);
56 static bool isScanHasRGB(
const Format & format);
57 static bool isScanHasIntensity(
const Format & format);
59 const cv::Mat & oldScanFormat,
64 const cv::Mat & oldScanFormat,
88 const cv::Mat &
data()
const {
return data_;}
91 int channels()
const {
return data_.channels();}
100 bool empty()
const {
return data_.empty();}
102 int size()
const {
return data_.cols;}
104 bool is2d()
const {
return isScan2d(format_);}
106 bool hasRGB()
const {
return isScanHasRGB(format_);}
108 bool isCompressed()
const {
return !data_.empty() && data_.type()==CV_8UC1;}
113 int getNormalsOffset()
const {
return hasNormals()?(2 + (is2d()?0:1) + ((hasRGB() || hasIntensity())?1:0)):-1;}
const cv::Mat & data() const
int getNormalsOffset() const
bool isCompressed() const
Transform localTransform() const
float angleIncrement() const
std::string formatName() const
int getIntensityOffset() const
Transform localTransform_
bool hasIntensity() const