cajun::confirm_obstacle_t Class Reference

State to confirm that a obstacle is blocking the lane. More...

#include <simple_states.H>

Inheritance diagram for cajun::confirm_obstacle_t:
cajun::base_state_machine_t

List of all members.

Public Member Functions

 confirm_obstacle_t (double tstamp_)
state_machine_id_t new_state (state_machine_t *sm_)
 Returns the new state that state machine should be in. Returns present state_id if no transition is possible.
bool update (state_machine_t *sm_)
 Updates the state's action, like PL state can modify the tp list to add passing lane.

Private Member Functions

bool did_bot_stopped_long_enough ()
 If bot stopped after reaching this state for ateast given amount of time.

Private Attributes

double m_bot_stopped_in_this_state_since

Detailed Description

State to confirm that a obstacle is blocking the lane.


Constructor & Destructor Documentation

cajun::confirm_obstacle_t::confirm_obstacle_t ( double  tstamp_  )  [inline]

Member Function Documentation

bool confirm_obstacle_t::did_bot_stopped_long_enough (  )  [private]

If bot stopped after reaching this state for ateast given amount of time.

References m_bot_stopped_in_this_state_since, and cajun::uc_planner_param_t::m_confirm_blk_min_time.

Referenced by new_state().

state_machine_id_t confirm_obstacle_t::new_state ( state_machine_t sm_  )  [virtual]
bool confirm_obstacle_t::update ( state_machine_t sm_  )  [virtual]

Updates the state's action, like PL state can modify the tp list to add passing lane.

Reimplemented from cajun::base_state_machine_t.

References cajun::state_machine_t::is_bot_stopped(), and m_bot_stopped_in_this_state_since.


Member Data Documentation


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

Generated on Fri Apr 9 10:45:15 2010 for UCPlanner by  doxygen 1.6.1