#include <scan_msg.H>
Public Types | |
enum | status_t { STATUS_OK, STATUS_INVALID, STATUS_RAIN, STATUS_GROUND, STATUS_DIRT } |
Public Member Functions | |
point_t () | |
unsigned | scanner_id () const |
unsigned | channel () const |
unsigned | sub_channel () const |
status_t | status () const |
double | x () const |
double | y () const |
double | z () const |
Protected Types | |
enum | { SCANNER_ID_OFFSET = 0 } |
enum | { CHANNEL_OFFSET = 1 } |
enum | { SUB_CHANNEL_OFFSET = 2 } |
enum | { STATUS_OFFSET = 3 } |
enum | { X_OFFSET = 4 } |
enum | { Y_OFFSET = 6 } |
enum | { Z_OFFSET = 8 } |
enum | { ECHO_PULSE_WIDTH_OFFSET = 10 } |
Static Protected Member Functions | |
static double | dist (void const *data_) |
Protected Attributes | |
unsigned char const * | m_data |
Friends | |
class | scan_msg_t |
ibeo::scan_msg_t::point_t::point_t | ( | ) | [inline] |
unsigned ibeo::scan_msg_t::point_t::channel | ( | ) | const [inline] |
References CHANNEL_OFFSET, and m_data.
static double ibeo::scan_msg_t::point_t::dist | ( | void const * | data_ | ) | [inline, static, protected] |
unsigned ibeo::scan_msg_t::point_t::scanner_id | ( | ) | const [inline] |
References m_data, and SCANNER_ID_OFFSET.
status_t ibeo::scan_msg_t::point_t::status | ( | ) | const [inline] |
References m_data, and STATUS_OFFSET.
Referenced by ibeo_observer_t::scan().
unsigned ibeo::scan_msg_t::point_t::sub_channel | ( | ) | const [inline] |
References m_data, and SUB_CHANNEL_OFFSET.
double ibeo::scan_msg_t::point_t::x | ( | ) | const [inline] |
References dist(), m_data, and X_OFFSET.
Referenced by ibeo_observer_t::scan().
double ibeo::scan_msg_t::point_t::y | ( | ) | const [inline] |
References dist(), m_data, and Y_OFFSET.
Referenced by ibeo_observer_t::scan().
double ibeo::scan_msg_t::point_t::z | ( | ) | const [inline] |
References dist(), m_data, and Z_OFFSET.
Referenced by ibeo_observer_t::scan().
friend class scan_msg_t [friend] |
unsigned char const* ibeo::scan_msg_t::point_t::m_data [protected] |
Referenced by channel(), ibeo::scan_msg_t::point(), scanner_id(), status(), sub_channel(), x(), y(), and z().