9#ifndef CSinCosLookUpTableFor2DScans_H
10#define CSinCosLookUpTableFor2DScans_H
53 mutable std::map<T2DScanProperties,TSinCosValues>
m_cache;
Column vector, like Eigen::MatrixX*, but automatically initialized to zeros since construction.
A "CObservation"-derived class that represents a 2D range scan measurement (typically from a laser sc...
A smart look-up-table (LUT) of sin/cos values for 2D laser scans.
const TSinCosValues & getSinCosForScan(const CObservation2DRangeScan &scan) const
Return two vectors with the cos and the sin of the angles for each of the rays in a scan,...
std::map< T2DScanProperties, TSinCosValues > m_cache
The cache of known scans and their sin/cos tables.
const TSinCosValues & getSinCosForScan(const T2DScanProperties &scan_prop) const
This is an overloaded member function, provided for convenience. It differs from the above function o...
class OBS_IMPEXP CObservation2DRangeScan
This is the global namespace for all Mobile Robot Programming Toolkit (MRPT) libraries.
A pair of vectors with the cos and sin values.
mrpt::math::CVectorFloat ccos
Auxiliary struct that holds all the relevant geometry information about a 2D scan.