Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

FrictionSaccadeController Class Reference

#include <Neuro/SaccadeControllers.H>

Inheritance diagram for FrictionSaccadeController:

Inheritance graph
[legend]
Collaboration diagram for FrictionSaccadeController:

Collaboration graph
[legend]
List of all members.

Detailed Description

Friction-damped mass-spring saccade controller.

FrictionSaccadeController acts like a mass (at saccade center) connected to the covert focus of attention through a spring of zero rest length, and sliding on a plane in the presence of friction.

Definition at line 150 of file SaccadeControllers.H.

Public Member Functions

 FrictionSaccadeController (OptionManager &mgr, const SaccadeBodyPart bodypart)
 Constructor.
virtual ~FrictionSaccadeController ()
 Destructor.

Protected Member Functions

virtual void doEvolve (SimEventQueue &q)
 evolve one time step
virtual void computeWhenNewPercept (SimEventQueue &q)
 This method is called each time a new percept has arrived.
virtual void computeWhenResetPos (SimEventQueue &q)
 This method is called each time a reset is made.
virtual Point2D< int > computeWhenNewDecision (SaccadeState &sacstate, bool &blinkstate, SimEventQueue &q)
 This method is called each time a new decision is requested.

Protected Attributes

OModelParam< double > itsSpringK
 spring stiffness
OModelParam< double > itsFrictionMu
 friction coeff
OModelParam< DimsitsDims
 Image size so that we stay inside it.
OModelParam< SimTimeitsTimeStep
 Simulation time step.

Friends

class ThresholdFrictionSaccadeController
class MonkeySaccadeController


Constructor & Destructor Documentation

FrictionSaccadeController::FrictionSaccadeController OptionManager mgr,
const SaccadeBodyPart  bodypart
 

Constructor.

Parameters:
part As this controller may be used either for the eye or for the head (as part of bigger controllers that include both eye and head), this should be either SaccadeBodyPartEye or SaccadeBodyPartHead and will determine which model options we use for our internal parameters (eye or head)

Definition at line 194 of file SaccadeControllers.C.

FrictionSaccadeController::~FrictionSaccadeController  )  [virtual]
 

Destructor.

Definition at line 214 of file SaccadeControllers.C.


Member Function Documentation

Point2D< int > FrictionSaccadeController::computeWhenNewDecision SaccadeState sacstate,
bool &  blinkstate,
SimEventQueue q
[protected, virtual]
 

This method is called each time a new decision is requested.

Implements SaccadeController.

Definition at line 289 of file SaccadeControllers.C.

References Point2D< T >::clampToDims(), OModelParam< T >::getVal(), SaccadeController::havePercepts(), itsDims, SACSTATE_FIX, SACSTATE_SMO, SACSTATE_UNK, SimTime::secs(), and sqrt().

void FrictionSaccadeController::computeWhenNewPercept SimEventQueue q  )  [protected, virtual]
 

This method is called each time a new percept has arrived.

Implements SaccadeController.

Definition at line 260 of file SaccadeControllers.C.

References SaccadeController::getPreviousPercept(), Point2D< T >::i, Point2D< T >::j, last, WTAwinner::p, SimTime::secs(), and WTAwinner::t.

void FrictionSaccadeController::computeWhenResetPos SimEventQueue q  )  [protected, virtual]
 

This method is called each time a reset is made.

Implements SaccadeController.

Definition at line 275 of file SaccadeControllers.C.

References SaccadeController::getPreviousPercept(), Point2D< T >::i, Point2D< T >::j, WTAwinner::p, and WTAwinner::t.

void FrictionSaccadeController::doEvolve SimEventQueue q  )  [protected, virtual]
 

evolve one time step

Implements SaccadeController.

Definition at line 218 of file SaccadeControllers.C.

References SimTime::computeDeltaT(), SaccadeController::getPreviousPercept(), OModelParam< T >::getVal(), SaccadeController::havePercepts(), Point2D< T >::i, itsFrictionMu, itsSpringK, itsTimeStep, Point2D< T >::j, last, SimEventQueue::now(), WTAwinner::p, SimTime::secs(), and t.


Member Data Documentation

OModelParam<Dims> FrictionSaccadeController::itsDims [protected]
 

Image size so that we stay inside it.

Definition at line 171 of file SaccadeControllers.H.

Referenced by computeWhenNewDecision().

OModelParam<double> FrictionSaccadeController::itsFrictionMu [protected]
 

friction coeff

Definition at line 170 of file SaccadeControllers.H.

Referenced by doEvolve().

OModelParam<double> FrictionSaccadeController::itsSpringK [protected]
 

spring stiffness

Definition at line 169 of file SaccadeControllers.H.

Referenced by doEvolve().

OModelParam<SimTime> FrictionSaccadeController::itsTimeStep [protected]
 

Simulation time step.

Definition at line 172 of file SaccadeControllers.H.

Referenced by doEvolve().


The documentation for this class was generated from the following files:
Generated on Mon Nov 23 15:50:18 2009 for iLab Neuromorphic Vision Toolkit by  doxygen 1.4.4