A smart look-up-table (LUT) of sin/cos values for 2D laser scans.
Refer to the main method CSinCosLookUpTableFor2DScans::getSinCosForScan()
This class is used in mrpt::slam::CPointsMap
Definition at line 27 of file CSinCosLookUpTableFor2DScans.h.
#include <mrpt/slam/CSinCosLookUpTableFor2DScans.h>
Classes | |
| struct | TSinCosValues |
| A pair of vectors with the cos and sin values. More... | |
Public Member Functions | |
| const TSinCosValues & | getSinCosForScan (const CObservation2DRangeScan &scan) |
| Return two vectors with the cos and the sin of the angles for each of the rays in a scan, computing them only the first time and returning a cached copy the rest. More... | |
Private Attributes | |
| std::map< T2DScanProperties, TSinCosValues > | m_cache |
| The cache of known scans and their sin/cos tables. More... | |
| const TSinCosValues& mrpt::slam::CSinCosLookUpTableFor2DScans::getSinCosForScan | ( | const CObservation2DRangeScan & | scan | ) |
Return two vectors with the cos and the sin of the angles for each of the rays in a scan, computing them only the first time and returning a cached copy the rest.
Usage:
|
private |
The cache of known scans and their sin/cos tables.
Definition at line 47 of file CSinCosLookUpTableFor2DScans.h.
| Page generated by Doxygen 1.8.8 for MRPT 1.2.2 SVN:Unversioned directory at Tue Oct 14 02:14:08 UTC 2014 |