Draw Iteris points. More...
#include <draw_iteris.H>
Public Member Functions | |
draw_iteris_t (double cbviz_origin[3], conf_t &conf, world_state_t *ws_) | |
Class to draw iteris lane data. | |
virtual | ~draw_iteris_t () |
void | update_data (double bot_pos_[3]) |
Get latest data from world state. | |
void | display (double bot_pos[3]) |
Display iteris lane data. | |
void | toggle_display () |
Toggle display of iteris data. | |
Private Member Functions | |
void | draw_curved_lane (double x0_, double y0_, double x1_, double y1_, double bot_pos_[3]) |
Draw line strips to curved lane segment. | |
Private Attributes | |
iteris_lane_data_t | m_iteris_data |
Iteris lane data to draw. | |
motion_data_t | m_motion_data |
Current bot motion data. | |
double | m_lane_pos [3] |
double | m_new_pos [3] |
std::vector< point_t > | m_arc_points |
Arc points for drawing iteris lane data. |
Draw Iteris points.
draw_iteris_t::draw_iteris_t | ( | double | cbviz_origin[3], | |
conf_t & | conf, | |||
world_state_t * | ws_ | |||
) |
Class to draw iteris lane data.
References the following configuration params:
cbviz_origin | Location of the visualizer origin. | |
conf | To read configuration values from. | |
ws_ | To get queue data from. |
References cajun::component_interface_t::m_cbviz_origin, cajun::component_interface_t::m_display, cajun::component_interface_t::m_world_state, POSX, POSY, and POSZ.
virtual cajun::draw_iteris_t::~draw_iteris_t | ( | ) | [inline, virtual] |
void draw_iteris_t::display | ( | double | bot_pos[3] | ) | [virtual] |
Display iteris lane data.
bot_pos | Current bot location. |
Implements cajun::component_interface_t.
References D2R, draw_curved_lane(), cajun::component_interface_t::m_data_ok, cajun::component_interface_t::m_display, m_iteris_data, and m_motion_data.
void draw_iteris_t::draw_curved_lane | ( | double | x0_, | |
double | y0_, | |||
double | x1_, | |||
double | y1_, | |||
double | bot_pos_[3] | |||
) | [private] |
Draw line strips to curved lane segment.
References m_arc_points, m_iteris_data, POSX, POSY, and POSZ.
Referenced by display().
void draw_iteris_t::toggle_display | ( | ) | [virtual] |
Toggle display of iteris data.
Implements cajun::component_interface_t.
References cajun::component_interface_t::m_display.
Referenced by cajun::simulation_draw_t::normalKey_callback().
void draw_iteris_t::update_data | ( | double | bot_pos_[3] | ) | [virtual] |
Get latest data from world state.
bot_pos_ | Current bot location. |
Implements cajun::component_interface_t.
References cajun::component_interface_t::m_data_ok, m_iteris_data, m_motion_data, and cajun::component_interface_t::m_world_state.
std::vector<point_t> cajun::draw_iteris_t::m_arc_points [private] |
Arc points for drawing iteris lane data.
Referenced by draw_curved_lane().
iteris_lane_data_t cajun::draw_iteris_t::m_iteris_data [private] |
Iteris lane data to draw.
Referenced by display(), draw_curved_lane(), and update_data().
double cajun::draw_iteris_t::m_lane_pos[3] [private] |
motion_data_t cajun::draw_iteris_t::m_motion_data [private] |
Current bot motion data.
Referenced by display(), and update_data().
double cajun::draw_iteris_t::m_new_pos[3] [private] |