00001 // Copyright (C) 2004 University of Louisiana at Lafayette 00002 // Authors: Suresh Golconda, Nitin, Arun Pratap 00003 00004 #ifndef CAJUN_DRAW_PATH_WAYPOINTS_H 00005 #define CAJUN_DRAW_PATH_WAYPOINTS_H 00006 00007 #include "data_queue.H" 00008 #include "cbviz_util.H" 00009 #include "conf.H" 00010 #include "component_interface.H" 00011 00012 namespace cajun 00013 { 00014 class draw_path_wp_t : public component_interface_t 00015 { 00016 public: 00017 draw_path_wp_t (double cbviz_origin[3], conf_t &conf, 00018 int id, world_state_t *ws_); 00019 virtual ~draw_path_wp_t () {;}; 00020 void toggle_display (); 00021 void update_data (double bot_pos_[3]); 00022 void display (double bot_pos[3]); 00023 private: 00024 bool read_path_wp (); 00025 path_data_t m_path_data; 00026 nav_data_t m_nav; 00027 int m_id; 00028 bool m_line_from_bot; 00029 double m_flag_posy; 00030 bool m_display_wp_number; 00031 void select_color (unsigned pi); 00032 }; 00033 } 00034 #endif