26 return getSinCosForScan(scan_prop);
35 if (it!=m_cache.end())
44 if ( m_cache.size()>20 ) m_cache.clear();
55 if (scan_prop.
nRays>0)
60 for (
size_t i=0;i<scan_prop.
nRays;i++)
62 new_entry.
ccos[i] = cos( Ang );
63 new_entry.
csin[i] = sin( Ang );
Classes for serialization, sockets, ini-file manipulation, streams, list of properties-values, timewatch, extensions to STL.
void getScanProperties(T2DScanProperties &p) const
Fill out a T2DScanProperties structure with the parameters of this scan.
const Scalar * const_iterator
mrpt::math::CVectorFloat ccos
Auxiliary struct that holds all the relevant geometry information about a 2D scan.
This namespace contains representation of robot actions and observations.
mrpt::math::CVectorFloat csin
A "CObservation"-derived class that represents a 2D range scan measurement (typically from a laser sc...
A pair of vectors with the cos and sin values.
bool rightToLeft
Angles storage order: true=counterclockwise; false=clockwise.