A generic Elementary Motion Detector. More...
#include <Robots/LoBot/io/LoEMD.H>
Public Member Functions | |
EMD (const input_type &left, const input_type &right, float angle) | |
Vector | update () |
virtual | ~EMD () |
Destructor. |
A generic Elementary Motion Detector.
This class implements the notion of an Elementary Motion Detector. It takes two inputs (left and right, though they could be a pair of any opposing directions) and performs the Reichardt EMD computation to assess the "amount" of motion in left or right directions (negative amounts mean leftward motion whereas positive amounts indicate rightwards motion). This scalar quantity is vectorized by scaling a direction vector provided to the EMD on its creation.
Like all templates, this one too implies an interface for its type parameters. Specifically, the EMD's input type is required to implement a value() function that returns floating point number indicating the current level of whatever activity it measures.
Definition at line 82 of file LoEMD.H.
lobot::EMD< input_type >::EMD | ( | const input_type & | left, | |
const input_type & | right, | |||
float | angle | |||
) | [inline] |
lobot::EMD< input_type >::~EMD | ( | ) | [inline, virtual] |
Vector lobot::EMD< input_type >::update | ( | ) | [inline] |