LoLocustViz.C File Reference

#include "Robots/LoBot/ui/LoLocustViz.H"
#include "Robots/LoBot/lgmd/LocustModel.H"
#include "Robots/LoBot/thread/LoUpdateLock.H"
#include "Robots/LoBot/config/LoConfigHelpers.H"
#include "Robots/LoBot/misc/LoTypes.H"
#include "Robots/LoBot/misc/LoExcept.H"
#include "Robots/LoBot/misc/singleton.hh"
#include "Robots/LoBot/util/LoGL.H"
#include "Robots/LoBot/util/LoMath.H"
#include "Robots/LoBot/util/triple.hh"
#include <GL/gl.h>
#include <boost/bind.hpp>
#include <algorithm>
#include <iterator>
Include dependency graph for LoLocustViz.C:

Go to the source code of this file.

Functions

static Vector lobot::compute_spike_vector (const LocustModel *L, const Vector &v)
static void lobot::render_spike (const Vector &spike)

Detailed Description

This file defines the non-inline member functions of the lobot::LocustViz class used for visualizing the LGMD spike rates of all the (virtual) locusts.

Definition in file LoLocustViz.C.


Variable Documentation

Drawable::Geometry m_geometry

The location and size (inside the Robolocust main window) of the locust spike rate visualizer's drawing area.

Definition at line 141 of file LoLocustViz.C.

GLColor m_ray_color

This setting specifies the color of the LGMD "range sensor" rays. It should be a triple of integers, each in the range [0,255].

Definition at line 117 of file LoLocustViz.C.

float m_ray_width

The spike rate visualizer shows each LGMD's current value as a bar starting at the center of the visualizer window and going out along the direction vector of that LGMD. The length of this bar denotes magnitude of the spiking activity for the locust looking in the bar's direction.

Thus, for the entire array of locusts, the visualizer will resemble the depiction of a range sensor such as the laser range finder with the individual "rays" denoting the "range" measurement (in this case spike rate) along each of the directions "scanned" by this sensor.

This setting specifies the width (in pixels) of the spike rate rays/bars.

Definition at line 113 of file LoLocustViz.C.

GLColor m_ring_color

This setting specifies the color of concentric rings described above. It should be a triple of integers, each in the range [0,255].

Definition at line 137 of file LoLocustViz.C.

float m_ring_incr

To help gauge each ray's associated numeric value, we draw a series of concentric rings. This setting specifies the increments in the radii between two consecutive rings. Its unit is Hertz. Its value should be a reasonable number between the min and max spike rate range specified for the locust model in effect.

For example, if the spike range is 0 to 800 and this increment is given as 100, the visualizer will setup its internal coordinate system to go from 0 to 800 in each direction and draw 8 circles, starting with a radius of 100 units and incrementing thereafter by 100 units all the way up to 800. By seeing where each ray's end point falls, the user can get a rough idea of the spike rate associated with that ray.

Definition at line 132 of file LoLocustViz.C.

Generated on Sun May 8 08:42:50 2011 for iLab Neuromorphic Vision Toolkit by  doxygen 1.6.3