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,
101 float angleIncrement,
109 float angleIncrement,
112 const cv::Mat &
data()
const {
return data_;}
124 bool empty()
const {
return data_.empty();}
126 int size()
const {
return data_.cols;}
128 bool is2d()
const {
return isScan2d(format_);}
130 bool hasRGB()
const {
return isScanHasRGB(format_);}
132 bool isCompressed()
const {
return !data_.empty() && data_.type()==CV_8UC1;}
137 int getNormalsOffset()
const {
return hasNormals()?(2 + (is2d()?0:1) + ((hasRGB() || hasIntensity())?1:0)):-1;}
139 float & field(
unsigned int pointIndex,
unsigned int channelOffset);
153 void init(
const cv::Mat & data,
159 float angleIncrement,
def init(descriptorDim, matchThreshold, iterations, cuda, model_path)
const cv::Mat & data() const
int getNormalsOffset() const
RTABMAP_DEPRECATED(typedef SensorData Image, "rtabmap::Image class is renamed to rtabmap::SensorData, use the last one instead.")
int getIntensityOffset() const
bool isCompressed() const
Transform localTransform_
bool hasIntensity() const
RegEx operator+(const RegEx &ex1, const RegEx &ex2)
float angleIncrement() const
std::string formatName() const
Transform localTransform() const