Used for displaying blocked lanes in front of the bot. More...
#include <draw_blocked_lanes.H>
Public Member Functions | |
| draw_blocked_lanes_t (double cbviz_origin[3], conf_t &conf, world_state_t *ws_) | |
| Create a new draw_blocked_lanes_t object. | |
| virtual | ~draw_blocked_lanes_t () |
| void | update_data (double bot_pos_[3]) |
| Retrieve new data from world state. | |
| void | display (double bot_pos_[3]) |
| Draw blocked lane visualization data. | |
| void | toggle_display () |
| Toggle visualization of blocked lanes. | |
| void | toggle_filter_type () |
| Currently unused. | |
Private Member Functions | |
| void | display_blk_lane (const blocked_lane_data_t &blk_lane) |
| Preliminary drawing, drawing a square at x,y of blocked spot. | |
Private Attributes | |
| world_state_t * | m_world_state |
| World state to take queue data from. | |
| double | m_blk_lane_timeout |
| Timeout to display blocked lane data. | |
| bool | m_display_blocked_lane |
| Toggle display of blocked lanes. | |
| std::vector< blocked_lane_data_t > | blk_lane_list |
| Blocked lane data. | |
Used for displaying blocked lanes in front of the bot.
| draw_blocked_lanes_t::draw_blocked_lanes_t | ( | double | cbviz_origin_pos[3], | |
| conf_t & | conf_, | |||
| world_state_t * | ws_ | |||
| ) |
Create a new draw_blocked_lanes_t object.
| cbviz_origin_pos | Location of the cbviz origin. | |
| conf_ | Conf to take params from. | |
| ws_ | To read blocked lane queue. |
References m_blk_lane_timeout, cajun::component_interface_t::m_cbviz_origin, cajun::component_interface_t::m_display, m_display_blocked_lane, m_world_state, POSX, POSY, and POSZ.
| virtual cajun::draw_blocked_lanes_t::~draw_blocked_lanes_t | ( | ) | [inline, virtual] |
| void draw_blocked_lanes_t::display | ( | double | bot_pos[3] | ) | [virtual] |
Draw blocked lane visualization data.
| bot_pos | Current bot location. |
Implements cajun::component_interface_t.
References blk_lane_list, display_blk_lane(), cajun::component_interface_t::m_data_ok, cajun::component_interface_t::m_display, and m_display_blocked_lane.
| void draw_blocked_lanes_t::display_blk_lane | ( | const blocked_lane_data_t & | blk_lane | ) | [private] |
Preliminary drawing, drawing a square at x,y of blocked spot.
| blk_lane | Data for a detected blocked lane location. |
References cajun::component_interface_t::m_cbviz_origin, POSX, POSY, and POSZ.
Referenced by display().
| void draw_blocked_lanes_t::toggle_display | ( | ) | [virtual] |
Toggle visualization of blocked lanes.
Implements cajun::component_interface_t.
References cajun::component_interface_t::m_display.
Referenced by cajun::simulation_draw_t::normalKey_callback().
| void cajun::draw_blocked_lanes_t::toggle_filter_type | ( | ) |
Currently unused.
| void draw_blocked_lanes_t::update_data | ( | double | bot_pos_[3] | ) | [virtual] |
Retrieve new data from world state.
| bot_pos_ | Current bot location. |
Implements cajun::component_interface_t.
References blk_lane_list, m_blk_lane_timeout, cajun::component_interface_t::m_data_ok, cajun::component_interface_t::m_display, m_display_blocked_lane, and m_world_state.
std::vector<blocked_lane_data_t> cajun::draw_blocked_lanes_t::blk_lane_list [private] |
Blocked lane data.
Referenced by display(), and update_data().
double cajun::draw_blocked_lanes_t::m_blk_lane_timeout [private] |
Timeout to display blocked lane data.
Referenced by draw_blocked_lanes_t(), and update_data().
bool cajun::draw_blocked_lanes_t::m_display_blocked_lane [private] |
Toggle display of blocked lanes.
Referenced by display(), draw_blocked_lanes_t(), and update_data().
world_state_t* cajun::draw_blocked_lanes_t::m_world_state [private] |
World state to take queue data from.
Reimplemented from cajun::component_interface_t.
Referenced by draw_blocked_lanes_t(), and update_data().
1.6.1