00001 // Copyright (C) 2006 University of Louisiana at Lafayette 00002 // Authors: Suresh Golconda 00003 00004 #ifndef CAJUN_DRAW_RNDF_FILE_H 00005 #define CAJUN_DRAW_RNDF_FILE_H 00006 00007 #include "cbviz_util.H" 00008 #include "conf.H" 00009 #include "component_interface.H" 00010 00011 #include <vector> 00012 namespace cajun 00013 { 00014 class draw_rndf_file_t : public component_interface_t 00015 { 00016 public: 00017 draw_rndf_file_t (double cbviz_origin[3], conf_t &conf, 00018 world_state_t *ws_); 00019 virtual ~draw_rndf_file_t () {;}; 00020 void toggle_display (); 00021 void update_data (double bot_pos_[3]); 00022 void display (double bot_pos[3]); 00023 private: 00024 rndf_lane_data_t m_rndf_lane; 00025 std::vector <rndf_lane_data_t> *m_lane_to_draw; 00026 double m_last_lane_tstamp; 00027 00028 double m_flag_posy; 00029 void read_rndf_file (); 00030 void read_file (const char *filename, rndf_lane_data_t &lane_data); 00031 }; 00032 } 00033 00034 #endif