Go to the documentation of this file.
28 #ifndef CORELIB_INCLUDE_RTABMAP_CORE_LASERSCAN_H_
29 #define CORELIB_INCLUDE_RTABMAP_CORE_LASERSCAN_H_
31 #include "rtabmap/core/rtabmap_core_export.h"
53 static std::string formatName(
const Format & format);
54 static int channels(
const Format & format);
55 static bool isScan2d(
const Format & format);
56 static bool isScanHasNormals(
const Format & format);
57 static bool isScanHasRGB(
const Format & format);
58 static bool isScanHasIntensity(
const Format & format);
59 static bool isScanHasTime(
const Format & format);
61 const cv::Mat & oldScanFormat,
66 const cv::Mat & oldScanFormat,
105 float angleIncrement,
113 float angleIncrement,
116 const cv::Mat &
data()
const {
return data_;}
129 bool empty()
const {
return data_.empty();}
131 int size()
const {
return data_.total();}
133 bool is2d()
const {
return isScan2d(format_);}
135 bool hasRGB()
const {
return isScanHasRGB(format_);}
137 bool hasTime()
const {
return isScanHasTime(format_);}
138 bool isCompressed()
const {
return !data_.empty() && data_.type()==CV_8UC1;}
145 int getNormalsOffset()
const {
return hasNormals()?(2 + (is2d()?0:1) + ((hasRGB() || hasIntensity())?1:0)):-1;}
148 float & field(
unsigned int pointIndex,
unsigned int channelOffset);
162 void init(
const cv::Mat & data,
168 float angleIncrement,
Transform localTransform() const
int getTimeOffset() const
const cv::Mat & data() const
RTABMAP_DEPRECATED(typedef SensorData Image, "rtabmap::Image class is renamed to rtabmap::SensorData, use the last one instead.")
int getNormalsOffset() const
void setLocalTransform(const Transform &t)
GLM_FUNC_DECL tmat2x2< T, P > operator+(tmat2x2< T, P > const &m, T const &s)
int getIntensityOffset() const
float angleIncrement() const
Transform localTransform_
bool hasIntensity() const
std::string formatName() const
bool isCompressed() const
EIGEN_STRONG_INLINE EIGEN_DEVICE_FUNC bfloat16 & operator+=(bfloat16 &a, const bfloat16 &b)
rtabmap
Author(s): Mathieu Labbe
autogenerated on Thu Jul 25 2024 02:50:11