#include <iteris_frame.H>
Public Member Functions | |
iteris_frame_t (pcan_frame_t const &frame_) | |
bool | vehicle_speed_status () const |
bool | system_status () const |
bool | warning_on_left () const |
bool | warning_on_right () const |
bool | type_of_lanemark_on_left () const |
bool | type_of_lanemark_on_right () const |
bool | vehicle_crossing_left_lane () const |
bool | vehicle_crossing_right_lane () const |
bool | left_lateral_offset_validity () const |
bool | right_lateral_offset_validity () const |
bool | lane_curvature_validity () const |
bool | lane_angle_validity () const |
unsigned | num_of_lines_on_right () const |
unsigned | num_of_lines_on_left () const |
double | lateral_offset_to_left_lane () const |
double | lateral_offset_to_right_lane () const |
double | bot_angle_wrt_lane () const |
double | lane_curvature () const |
unsigned | lane_detection_dist () const |
Static Protected Attributes | |
static unsigned const | STX = 0x550 |
static unsigned const | MASK_FOR_NUM_OF_LINES = 0x03 |
static unsigned const | NIBBLE_MASK = 0x0f |
static unsigned const | POS_FOR_NUM_OF_LINES_ON_LEFT = 2 |
static unsigned const | SENSOR_STATUS_BITS_POS_OFFSET = 4 |
static unsigned const | CURVATURE_OF_LANE_POS_OFFSET = 4 |
static unsigned const | LATERAL_OFFSET_ON_LEFT = 1 |
static unsigned const | LATERAL_OFFSET_ON_RIGHT = 2 |
static unsigned const | ANGLE_TO_LANE_LO_OFFSET = 3 |
static unsigned const | ANGLE_TO_LANE_HI_OFFSET = 4 |
static unsigned const | CURVATURE_OF_LANE_LO_OFFSET = 4 |
static unsigned const | CURVATURE_OF_LANE_HI_OFFSET = 5 |
static unsigned const | LDW_STATUS = 6 |
static unsigned const | LANE_DETECTION_DISTANCE = 7 |
static unsigned const | VEHICLE_SPEED_STATUS = 0x01 |
static unsigned const | SYSTEM_AVAILABLE_STATUS = 0x08 |
static unsigned const | WARNING_ON_LEFT = 0x02 |
static unsigned const | WARNING_ON_RIGHT = 0x04 |
static unsigned const | TYPE_OF_LEFT_LANE_MARK = 0x01 |
static unsigned const | VEHICLE_CROSSING_LEFT_LANE = 0x02 |
static unsigned const | TYPE_OF_RIGHT_LANE_MARK = 0x04 |
static unsigned const | VEHICLE_CROSSING_RIGHT_LANE = 0x08 |
static unsigned const | LEFT_LATERAL_OFFSET_VALIDITY = 0x10 |
static unsigned const | RIGHT_LATERAL_OFFSET_VALIDITY = 0x20 |
static unsigned const | LANE_CURVATURE_VALIDITY = 0x40 |
static unsigned const | LANE_ANGLE_VALIDITY = 0x80 |
static double const | LATERAL_OFFSET_RESOLUTION = 0.03125 |
static double const | ANGLE_TO_LANE_RESOLUTION = 0.04395 |
static double const | CURVATURE_OF_LANE_RESOLUTION = 0.00001 |
pcan::iteris_frame_t::iteris_frame_t | ( | pcan_frame_t const & | frame_ | ) | [inline] |
double pcan::iteris_frame_t::bot_angle_wrt_lane | ( | ) | const [inline] |
References ANGLE_TO_LANE_HI_OFFSET, ANGLE_TO_LANE_LO_OFFSET, ANGLE_TO_LANE_RESOLUTION, TPCANMsg::DATA, pcan::pcan_frame_t::m_msg, and NIBBLE_MASK.
Referenced by cajun::pcan_pci_t::extract_iteris_frame().
bool pcan::iteris_frame_t::lane_angle_validity | ( | ) | const [inline] |
References TPCANMsg::DATA, LANE_ANGLE_VALIDITY, LDW_STATUS, and pcan::pcan_frame_t::m_msg.
Referenced by cajun::pcan_pci_t::extract_iteris_frame().
double pcan::iteris_frame_t::lane_curvature | ( | ) | const [inline] |
bool pcan::iteris_frame_t::lane_curvature_validity | ( | ) | const [inline] |
References TPCANMsg::DATA, LANE_CURVATURE_VALIDITY, LDW_STATUS, and pcan::pcan_frame_t::m_msg.
Referenced by cajun::pcan_pci_t::extract_iteris_frame().
unsigned pcan::iteris_frame_t::lane_detection_dist | ( | ) | const [inline] |
References TPCANMsg::DATA, LANE_DETECTION_DISTANCE, and pcan::pcan_frame_t::m_msg.
Referenced by cajun::pcan_pci_t::extract_iteris_frame().
double pcan::iteris_frame_t::lateral_offset_to_left_lane | ( | ) | const [inline] |
References TPCANMsg::DATA, LATERAL_OFFSET_ON_LEFT, LATERAL_OFFSET_RESOLUTION, and pcan::pcan_frame_t::m_msg.
Referenced by cajun::pcan_pci_t::extract_iteris_frame().
double pcan::iteris_frame_t::lateral_offset_to_right_lane | ( | ) | const [inline] |
References TPCANMsg::DATA, LATERAL_OFFSET_ON_RIGHT, LATERAL_OFFSET_RESOLUTION, and pcan::pcan_frame_t::m_msg.
Referenced by cajun::pcan_pci_t::extract_iteris_frame().
bool pcan::iteris_frame_t::left_lateral_offset_validity | ( | ) | const [inline] |
References TPCANMsg::DATA, LDW_STATUS, LEFT_LATERAL_OFFSET_VALIDITY, and pcan::pcan_frame_t::m_msg.
Referenced by cajun::pcan_pci_t::extract_iteris_frame().
unsigned pcan::iteris_frame_t::num_of_lines_on_left | ( | ) | const [inline] |
References TPCANMsg::DATA, pcan::pcan_frame_t::m_msg, MASK_FOR_NUM_OF_LINES, and POS_FOR_NUM_OF_LINES_ON_LEFT.
Referenced by cajun::pcan_pci_t::extract_iteris_frame().
unsigned pcan::iteris_frame_t::num_of_lines_on_right | ( | ) | const [inline] |
References TPCANMsg::DATA, pcan::pcan_frame_t::m_msg, and MASK_FOR_NUM_OF_LINES.
Referenced by cajun::pcan_pci_t::extract_iteris_frame().
bool pcan::iteris_frame_t::right_lateral_offset_validity | ( | ) | const [inline] |
References TPCANMsg::DATA, LDW_STATUS, pcan::pcan_frame_t::m_msg, and RIGHT_LATERAL_OFFSET_VALIDITY.
Referenced by cajun::pcan_pci_t::extract_iteris_frame().
bool pcan::iteris_frame_t::system_status | ( | ) | const [inline] |
References TPCANMsg::DATA, pcan::pcan_frame_t::m_msg, SENSOR_STATUS_BITS_POS_OFFSET, and SYSTEM_AVAILABLE_STATUS.
Referenced by cajun::pcan_pci_t::extract_iteris_frame().
bool pcan::iteris_frame_t::type_of_lanemark_on_left | ( | ) | const [inline] |
References TPCANMsg::DATA, LDW_STATUS, pcan::pcan_frame_t::m_msg, and TYPE_OF_LEFT_LANE_MARK.
Referenced by cajun::pcan_pci_t::extract_iteris_frame().
bool pcan::iteris_frame_t::type_of_lanemark_on_right | ( | ) | const [inline] |
References TPCANMsg::DATA, LDW_STATUS, pcan::pcan_frame_t::m_msg, and TYPE_OF_RIGHT_LANE_MARK.
Referenced by cajun::pcan_pci_t::extract_iteris_frame().
bool pcan::iteris_frame_t::vehicle_crossing_left_lane | ( | ) | const [inline] |
References TPCANMsg::DATA, LDW_STATUS, pcan::pcan_frame_t::m_msg, and VEHICLE_CROSSING_LEFT_LANE.
Referenced by cajun::pcan_pci_t::extract_iteris_frame().
bool pcan::iteris_frame_t::vehicle_crossing_right_lane | ( | ) | const [inline] |
References TPCANMsg::DATA, LDW_STATUS, pcan::pcan_frame_t::m_msg, and VEHICLE_CROSSING_RIGHT_LANE.
Referenced by cajun::pcan_pci_t::extract_iteris_frame().
bool pcan::iteris_frame_t::vehicle_speed_status | ( | ) | const [inline] |
References TPCANMsg::DATA, pcan::pcan_frame_t::m_msg, SENSOR_STATUS_BITS_POS_OFFSET, and VEHICLE_SPEED_STATUS.
Referenced by cajun::pcan_pci_t::extract_iteris_frame().
bool pcan::iteris_frame_t::warning_on_left | ( | ) | const [inline] |
References TPCANMsg::DATA, pcan::pcan_frame_t::m_msg, SENSOR_STATUS_BITS_POS_OFFSET, and WARNING_ON_LEFT.
Referenced by cajun::pcan_pci_t::extract_iteris_frame().
bool pcan::iteris_frame_t::warning_on_right | ( | ) | const [inline] |
References TPCANMsg::DATA, pcan::pcan_frame_t::m_msg, SENSOR_STATUS_BITS_POS_OFFSET, and WARNING_ON_RIGHT.
Referenced by cajun::pcan_pci_t::extract_iteris_frame().
unsigned const pcan::iteris_frame_t::ANGLE_TO_LANE_HI_OFFSET = 4 [static, protected] |
Referenced by bot_angle_wrt_lane().
unsigned const pcan::iteris_frame_t::ANGLE_TO_LANE_LO_OFFSET = 3 [static, protected] |
Referenced by bot_angle_wrt_lane().
double const pcan::iteris_frame_t::ANGLE_TO_LANE_RESOLUTION = 0.04395 [static, protected] |
Referenced by bot_angle_wrt_lane().
unsigned const pcan::iteris_frame_t::CURVATURE_OF_LANE_HI_OFFSET = 5 [static, protected] |
Referenced by lane_curvature().
unsigned const pcan::iteris_frame_t::CURVATURE_OF_LANE_LO_OFFSET = 4 [static, protected] |
Referenced by lane_curvature().
unsigned const pcan::iteris_frame_t::CURVATURE_OF_LANE_POS_OFFSET = 4 [static, protected] |
Referenced by lane_curvature().
double const pcan::iteris_frame_t::CURVATURE_OF_LANE_RESOLUTION = 0.00001 [static, protected] |
Referenced by lane_curvature().
unsigned const pcan::iteris_frame_t::LANE_ANGLE_VALIDITY = 0x80 [static, protected] |
Referenced by lane_angle_validity().
unsigned const pcan::iteris_frame_t::LANE_CURVATURE_VALIDITY = 0x40 [static, protected] |
Referenced by lane_curvature_validity().
unsigned const pcan::iteris_frame_t::LANE_DETECTION_DISTANCE = 7 [static, protected] |
Referenced by lane_detection_dist().
unsigned const pcan::iteris_frame_t::LATERAL_OFFSET_ON_LEFT = 1 [static, protected] |
Referenced by lateral_offset_to_left_lane().
unsigned const pcan::iteris_frame_t::LATERAL_OFFSET_ON_RIGHT = 2 [static, protected] |
Referenced by lateral_offset_to_right_lane().
double const pcan::iteris_frame_t::LATERAL_OFFSET_RESOLUTION = 0.03125 [static, protected] |
Referenced by lateral_offset_to_left_lane(), and lateral_offset_to_right_lane().
unsigned const pcan::iteris_frame_t::LDW_STATUS = 6 [static, protected] |
unsigned const pcan::iteris_frame_t::LEFT_LATERAL_OFFSET_VALIDITY = 0x10 [static, protected] |
Referenced by left_lateral_offset_validity().
unsigned const pcan::iteris_frame_t::MASK_FOR_NUM_OF_LINES = 0x03 [static, protected] |
Referenced by num_of_lines_on_left(), and num_of_lines_on_right().
unsigned const pcan::iteris_frame_t::NIBBLE_MASK = 0x0f [static, protected] |
Referenced by bot_angle_wrt_lane().
unsigned const pcan::iteris_frame_t::POS_FOR_NUM_OF_LINES_ON_LEFT = 2 [static, protected] |
Referenced by num_of_lines_on_left().
unsigned const pcan::iteris_frame_t::RIGHT_LATERAL_OFFSET_VALIDITY = 0x20 [static, protected] |
Referenced by right_lateral_offset_validity().
unsigned const pcan::iteris_frame_t::SENSOR_STATUS_BITS_POS_OFFSET = 4 [static, protected] |
Referenced by system_status(), vehicle_speed_status(), warning_on_left(), and warning_on_right().
unsigned const pcan::iteris_frame_t::STX = 0x550 [static, protected] |
unsigned const pcan::iteris_frame_t::SYSTEM_AVAILABLE_STATUS = 0x08 [static, protected] |
Referenced by system_status().
unsigned const pcan::iteris_frame_t::TYPE_OF_LEFT_LANE_MARK = 0x01 [static, protected] |
Referenced by type_of_lanemark_on_left().
unsigned const pcan::iteris_frame_t::TYPE_OF_RIGHT_LANE_MARK = 0x04 [static, protected] |
Referenced by type_of_lanemark_on_right().
unsigned const pcan::iteris_frame_t::VEHICLE_CROSSING_LEFT_LANE = 0x02 [static, protected] |
Referenced by vehicle_crossing_left_lane().
unsigned const pcan::iteris_frame_t::VEHICLE_CROSSING_RIGHT_LANE = 0x08 [static, protected] |
Referenced by vehicle_crossing_right_lane().
unsigned const pcan::iteris_frame_t::VEHICLE_SPEED_STATUS = 0x01 [static, protected] |
Referenced by vehicle_speed_status().
unsigned const pcan::iteris_frame_t::WARNING_ON_LEFT = 0x02 [static, protected] |
Referenced by warning_on_left().
unsigned const pcan::iteris_frame_t::WARNING_ON_RIGHT = 0x04 [static, protected] |
Referenced by warning_on_right().