A drawable for visualizing the LGMD spike rates. More...
#include <Robots/LoBot/ui/LoLocustViz.H>
Public Member Functions | |
LocustViz (const std::vector< LocustModel * > &) | |
~LocustViz () | |
Clean-up. |
A drawable for visualizing the LGMD spike rates.
This class uses OpenGL to visualize the spike rates of all the locusts. The visualization resembles that of a range sensor such as the laser range finder. Each locust's spike rate is drawn as a ray starting at the visualizer's center. This ray's direction corresponds to the direction in which its associated locust is looking. The magnitude of the ray represents the amount of spiking activity associated with that locust. A set of concentric rings is used to help the user gauge the numerical value associated with the spike rate rays.
Definition at line 80 of file LoLocustViz.H.
lobot::LocustViz::LocustViz | ( | const std::vector< LocustModel * > & | locusts | ) |
Initialization: precompute the direction vectors for each of the locusts and set the max spike rate.
Definition at line 173 of file LoLocustViz.C.
References lobot::LocustModel::direction(), and transform().
lobot::LocustViz::~LocustViz | ( | ) |
Clean-up.
Definition at line 296 of file LoLocustViz.C.