cajun::draw_blocked_lanes_t Class Reference

Used for displaying blocked lanes in front of the bot. More...

#include <draw_blocked_lanes.H>

Inheritance diagram for cajun::draw_blocked_lanes_t:
cajun::component_interface_t

List of all members.

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.

Detailed Description

Used for displaying blocked lanes in front of the bot.


Constructor & Destructor Documentation

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.

Parameters:
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]

Member Function Documentation

void draw_blocked_lanes_t::display ( double  bot_pos[3]  )  [virtual]

Draw blocked lane visualization data.

Parameters:
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.

Parameters:
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.

Parameters:
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.


Member Data Documentation

std::vector<blocked_lane_data_t> cajun::draw_blocked_lanes_t::blk_lane_list [private]

Blocked lane data.

Referenced by display(), and update_data().

Timeout to display blocked lane data.

Referenced by draw_blocked_lanes_t(), and update_data().

Toggle display of blocked lanes.

Referenced by display(), draw_blocked_lanes_t(), and update_data().

World state to take queue data from.

Reimplemented from cajun::component_interface_t.

Referenced by draw_blocked_lanes_t(), and update_data().


The documentation for this class was generated from the following files:

Generated on Fri Apr 9 10:45:18 2010 for Visualizer by  doxygen 1.6.1