Represents 2D or 3D laser scan data with support for multiple point data formats.
More...
|
|
|
| LaserScan (const LaserScan &data, int maxPoints, float maxRange, const Transform &localTransform=Transform::getIdentity()) |
| |
| RTABMAP_DEPRECATED | LaserScan (const LaserScan &data, int maxPoints, float maxRange, Format format, const Transform &localTransform=Transform::getIdentity()) |
| |
|
| LaserScan (const cv::Mat &data, int maxPoints, float maxRange, Format format, const Transform &localTransform=Transform::getIdentity()) |
| |
| RTABMAP_DEPRECATED | LaserScan (const LaserScan &data, Format format, float minRange, float maxRange, float angleMin, float angleMax, float angleIncrement, const Transform &localTransform=Transform::getIdentity()) |
| |
|
| LaserScan (const LaserScan &data, float minRange, float maxRange, float angleMin, float angleMax, float angleIncrement, const Transform &localTransform=Transform::getIdentity()) |
| |
|
| LaserScan (const cv::Mat &data, Format format, float minRange, float maxRange, float angleMin, float angleMax, float angleIncrement, const Transform &localTransform=Transform::getIdentity()) |
| |
|
| const cv::Mat & | data () const |
| |
| Format | format () const |
| |
| std::string | formatName () const |
| |
| int | channels () const |
| |
| int | maxPoints () const |
| |
| float | rangeMin () const |
| |
| float | rangeMax () const |
| |
| float | angleMin () const |
| |
| float | angleMax () const |
| |
| float | angleIncrement () const |
| |
| void | setLocalTransform (const Transform &t) |
| |
| Transform | localTransform () const |
| |
|
| bool | empty () const |
| |
| bool | isEmpty () const |
| |
| int | size () const |
| |
| int | dataType () const |
| |
| bool | is2d () const |
| |
| bool | hasNormals () const |
| |
| bool | hasRGB () const |
| |
| bool | hasIntensity () const |
| |
| bool | hasTime () const |
| |
| bool | hasRing () const |
| |
| bool | isCompressed () const |
| | True if the scan is stored compressed (single-row CV_8UC1 blob) instead of raw points.
|
| |
| bool | isOrganized () const |
| |
|
LaserScan | clone () const |
| |
|
LaserScan | densify () const |
| |
|
| int | getIntensityOffset () const |
| |
| int | getRGBOffset () const |
| |
| int | getNormalsOffset () const |
| |
| int | getRingOffset () const |
| |
| int | getTimeOffset () const |
| |
| float & | field (unsigned int pointIndex, unsigned int channelOffset) |
| | Access a specific field value of a point.
|
| |
| void | clear () |
| | Clear the scan data.
|
| |
|
LaserScan & | operator+= (const LaserScan &) |
| | Concatenate scan's data (localTransform is ignored).
|
| |
|
LaserScan | operator+ (const LaserScan &) |
| | Concatenate scan's data (localTransform is ignored).
|
| |
|
|
|
static std::string | formatName (const Format &format) |
| |
|
static int | channels (const Format &format) |
| |
|
static bool | isScan2d (const Format &format) |
| |
|
static bool | isScanHasNormals (const Format &format) |
| |
|
static bool | isScanHasRGB (const Format &format) |
| |
|
static bool | isScanHasIntensity (const Format &format) |
| |
|
static bool | isScanHasTime (const Format &format) |
| |
|
static bool | isScanHasRing (const Format &format) |
| |
|
static float | packRGB (unsigned char r, unsigned char g, unsigned char b) |
| |
|
static void | unpackRGB (float rgb, unsigned char &r, unsigned char &g, unsigned char &b) |
| |
|
static LaserScan | backwardCompatibility (const cv::Mat &oldScanFormat, int maxPoints=0, int maxRange=0, const Transform &localTransform=Transform::getIdentity()) |
| | Converts legacy scan format to a LaserScan object.
|
| |
|
static LaserScan | backwardCompatibility (const cv::Mat &oldScanFormat, float minRange, float maxRange, float angleMin, float angleMax, float angleInc, const Transform &localTransform=Transform::getIdentity()) |
| | Converts legacy scan format with additional metadata to a LaserScan.
|
| |
Represents 2D or 3D laser scan data with support for multiple point data formats.
The LaserScan class stores structured laser scan data used in SLAM, mapping, and perception. It supports various formats including point coordinates, intensity, normals, RGB colors, and timestamps. Utility methods are provided for format checking, cloning, and combining scans.
Definition at line 45 of file LaserScan.h.