Draw cbln waypoint data. More...
#include <draw_cbln_wp.H>
Public Member Functions | |
| draw_cbln_wp_t (double cbviz_origin[3], conf_t &conf, world_state_t *ws_) | |
| Create new object to draw cbln waypoint data. | |
| virtual | ~draw_cbln_wp_t () |
| void | toggle_display () |
| Toggle drawing of cbln wp data. | |
| void | update_data (double bot_pos_[3]) |
| Update data from world state data queue. | |
| void | display (double bot_pos[3]) |
| Draw cbln wp data. | |
Private Member Functions | |
| bool | read_cbln_wp () |
| Get cbln waypoint data from world state. | |
Private Attributes | |
| cbln_data_t | m_cbln_wp |
| Cbln waypoint data. | |
| double | m_flag_posy |
| Flag height. | |
| bool | m_display_wp_number |
| Display waypoint number. | |
Draw cbln waypoint data.
| cajun::draw_cbln_wp_t::draw_cbln_wp_t | ( | double | cbviz_origin_pos[3], | |
| conf_t & | conf, | |||
| world_state_t * | ws_ | |||
| ) |
Create new object to draw cbln waypoint data.
Reference the following configuration entries:
| cbviz_origin_pos | Cbviz origin location. | |
| conf | Configuration file to take parameters. | |
| ws_ | World state to take cbln dtm data from. |
References cajun::component_interface_t::m_cbviz_origin, cajun::component_interface_t::m_display, m_display_wp_number, m_flag_posy, cajun::component_interface_t::m_world_state, POSX, POSY, and POSZ.
| virtual cajun::draw_cbln_wp_t::~draw_cbln_wp_t | ( | ) | [inline, virtual] |
| void draw_cbln_wp_t::display | ( | double | bot_pos[3] | ) | [virtual] |
Draw cbln wp data.
| bot_pos | Current bot location. |
Implements cajun::component_interface_t.
References cajun::draw_flag(), cajun::draw_square(), m_cbln_wp, cajun::component_interface_t::m_data_ok, cajun::component_interface_t::m_display, m_display_wp_number, m_flag_posy, cajun::output_int_number(), and POSZ.
| bool draw_cbln_wp_t::read_cbln_wp | ( | ) | [private] |
Get cbln waypoint data from world state.
References m_cbln_wp, cajun::component_interface_t::m_cbviz_origin, cajun::component_interface_t::m_world_state, POSX, and POSY.
Referenced by update_data().
| void draw_cbln_wp_t::toggle_display | ( | ) | [virtual] |
Toggle drawing of cbln wp data.
Implements cajun::component_interface_t.
References cajun::component_interface_t::m_display.
| void draw_cbln_wp_t::update_data | ( | double | bot_pos_[3] | ) | [virtual] |
Update data from world state data queue.
| bot_pos_ | Current bot position. |
Implements cajun::component_interface_t.
References cajun::component_interface_t::m_data_ok, and read_cbln_wp().
cbln_data_t cajun::draw_cbln_wp_t::m_cbln_wp [private] |
Cbln waypoint data.
Referenced by display(), and read_cbln_wp().
bool cajun::draw_cbln_wp_t::m_display_wp_number [private] |
Display waypoint number.
Referenced by display(), and draw_cbln_wp_t().
double cajun::draw_cbln_wp_t::m_flag_posy [private] |
Flag height.
Referenced by display(), and draw_cbln_wp_t().
1.6.1