#include <msgpack_validator.h>
Public Member Functions | |
MsgPackValidator (const std::vector< int > &echos={ 0, 1, 2 }, float azimuth_start=-M_PI, float azimuth_end=M_PI, float elevation_start=-M_PI/2.0, float elevation_end=M_PI/2.0, const std::vector< int > &segments={ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 }, const std::vector< int > &layer_filter={ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 }, int verbose=0) | |
bool | validateNoMissingScandata (const MsgPackValidatorData &msgpack_data_collected) const |
bool | validateNotOutOfBound (const MsgPackValidatorData &data_received) const |
~MsgPackValidator () | |
Protected Member Functions | |
int | getAzimuthHistogramCount (const MsgPackValidatorData::AzimuthHistogramPerElevationPerSegmentPerEcho &azimuth_histogram, int echo_idx, int segment_idx, int elevation_idx, int azimuth_idx) const |
template<typename T > | |
std::string | listVector (const std::vector< T > &vec) const |
void | printMissingHistogramData (const std::vector< std::string > &messages) const |
Protected Attributes | |
float | m_azimuth_end |
float | m_azimuth_start |
std::vector< int > | m_echos_required |
float | m_elevation_end |
float | m_elevation_start |
std::vector< int > | m_layer_filter |
std::vector< int > | m_valid_segments |
int | m_verbose |
Definition at line 201 of file msgpack_validator.h.
sick_scansegment_xd::MsgPackValidator::MsgPackValidator | ( | const std::vector< int > & | echos = { 0, 1, 2 } , |
float | azimuth_start = -M_PI , |
||
float | azimuth_end = M_PI , |
||
float | elevation_start = -M_PI/2.0 , |
||
float | elevation_end = M_PI/2.0 , |
||
const std::vector< int > & | segments = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 } , |
||
const std::vector< int > & | layer_filter = { 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 } , |
||
int | verbose = 0 |
||
) |
Definition at line 188 of file msgpack_validator.cpp.
sick_scansegment_xd::MsgPackValidator::~MsgPackValidator | ( | ) |
Definition at line 198 of file msgpack_validator.cpp.
|
protected |
Returns the number of azimuth angles counted in the histogram for a given echo, segment, elevation and azimuth
Definition at line 280 of file msgpack_validator.cpp.
|
inlineprotected |
prints a vector as a flat list
Definition at line 252 of file msgpack_validator.h.
|
protected |
Definition at line 312 of file msgpack_validator.cpp.
bool sick_scansegment_xd::MsgPackValidator::validateNoMissingScandata | ( | const MsgPackValidatorData & | msgpack_data_collected | ) | const |
Definition at line 328 of file msgpack_validator.cpp.
bool sick_scansegment_xd::MsgPackValidator::validateNotOutOfBound | ( | const MsgPackValidatorData & | data_received | ) | const |
Definition at line 210 of file msgpack_validator.cpp.
|
protected |
Definition at line 270 of file msgpack_validator.h.
|
protected |
Definition at line 269 of file msgpack_validator.h.
|
protected |
Definition at line 268 of file msgpack_validator.h.
|
protected |
Definition at line 272 of file msgpack_validator.h.
|
protected |
Definition at line 271 of file msgpack_validator.h.
|
protected |
Definition at line 274 of file msgpack_validator.h.
|
protected |
Definition at line 273 of file msgpack_validator.h.
|
protected |
Definition at line 275 of file msgpack_validator.h.