Class MsgPackValidatorData

Class Documentation

class MsgPackValidatorData

Public Types

typedef std::map<int, int> AzimuthHistogram
typedef std::map<int, AzimuthHistogram> AzimuthHistogramPerElevation
typedef std::map<int, AzimuthHistogramPerElevation> AzimuthHistogramPerElevationPerSegment
typedef std::map<int, AzimuthHistogramPerElevationPerSegment> AzimuthHistogramPerElevationPerSegmentPerEcho

Public Functions

MsgPackValidatorData()
~MsgPackValidatorData()
void update(int echo_idx, int segment_idx, float azimuth, float elevation)
float getAzimuthHistogramResolutionDeg(void) const
float getAzimuthHistogramResolutionRad(void) const
float getElevationHistogramResolutionDeg(void) const
float getElevationHistogramResolutionRad(void) const
std::vector<std::string> print(void) const
inline const AzimuthHistogramPerElevationPerSegmentPerEcho &getHistogram(void) const
inline float azimuthIndexToRad(int azimuth_idx) const
inline float azimuthIndexToDeg(int azimuth_idx) const
inline float elevationIndexToRad(int elevation_idx) const
inline float elevationIndexToDeg(int elevation_idx) const
inline int azimuthRadToIndex(float azimuth_rad) const
inline int elevationRadToIndex(float elevation_rad) const

Protected Functions

inline float deg2rad(float angle) const
inline float rad2deg(float angle) const
inline int azimuthToInt(float azimuth_rad) const

Converts an azimuth angle in radians to an integer in 0.5 degree resolution

inline float intToAzimuth(int azimuth_idx) const
inline int elevationToInt(float elevation_rad) const

Converts an elevation angle in radians to an integer in 0.5 degree resolution

inline float intToElevation(int elevation_idx) const

Protected Attributes

AzimuthHistogramPerElevationPerSegmentPerEcho m_azimuth_histogram