#include <msg.H>
Public Types | |
| enum | { STX = 0xAFFEC0C0 } |
| enum | { HEADER_SIZE = 16 } |
| enum | { TYPE_OBJECT = 1, TYPE_SCAN = 15 } |
Public Member Functions | |
| msg_t () | |
| msg_t (msg_t const &msg_) | |
| bool | valid () const |
| unsigned | decode (unsigned char const *data_, unsigned size_) |
| unsigned char const * | data () const |
| unsigned | size () const |
| unsigned | type () const |
| double | send_timestamp () const |
Protected Types | |
| enum | { STX_OFFSET = 0 } |
| enum | { SIZE_OFFSET = 4 } |
| enum | { TYPE_OFFSET = 8 } |
| enum | { SEND_TIMESTAMP_OFFSET = 12 } |
Protected Member Functions | |
| unsigned | skip_to_stx (unsigned char const *data_, unsigned size_) |
Protected Attributes | |
| bool | m_valid |
| unsigned char const * | m_data |
| ibeo::msg_t::msg_t | ( | ) | [inline] |
| ibeo::msg_t::msg_t | ( | msg_t const & | msg_ | ) | [inline] |
| unsigned char const* ibeo::msg_t::data | ( | ) | const [inline] |
References m_data.
Referenced by cajun::ibeo_alasca_t::decode_msg().
| unsigned msg_t::decode | ( | unsigned char const * | data_, | |
| unsigned | size_ | |||
| ) |
References HEADER_SIZE, m_data, m_valid, size(), skip_to_stx(), and STX.
Referenced by cajun::sick_t::handle_input(), and cajun::ibeo_alasca_t::handle_input().
| double ibeo::msg_t::send_timestamp | ( | ) | const [inline] |
References m_data, and SEND_TIMESTAMP_OFFSET.
| unsigned ibeo::msg_t::size | ( | ) | const [inline] |
References m_data, and SIZE_OFFSET.
Referenced by decode(), and cajun::ibeo_alasca_t::decode_msg().
| unsigned msg_t::skip_to_stx | ( | unsigned char const * | data_, | |
| unsigned | size_ | |||
| ) | [protected] |
Referenced by decode().
| unsigned ibeo::msg_t::type | ( | ) | const [inline] |
References m_data, and TYPE_OFFSET.
Referenced by cajun::ibeo_alasca_t::decode_msg().
| bool ibeo::msg_t::valid | ( | void | ) | const [inline] |
References m_valid.
Referenced by cajun::sick_t::handle_input(), and cajun::ibeo_alasca_t::handle_input().
unsigned char const* ibeo::msg_t::m_data [protected] |
Referenced by data(), decode(), ibeo::scan_msg_t::ecu_id(), ibeo::scan_msg_t::end_angle(), ibeo::scan_msg_t::num_points(), ibeo::scan_msg_t::point(), ibeo::scan_msg_t::scan_counter(), ibeo::scan_msg_t::scanner_type(), send_timestamp(), size(), ibeo::scan_msg_t::start_angle(), ibeo::scan_msg_t::timestamp(), type(), and ibeo::scan_msg_t::version().
bool ibeo::msg_t::m_valid [protected] |
1.6.1