Tekkotsu Homepage
Demos
Overview
Downloads
Dev. Resources
Reference
Credits

ProjectInterface.h File Reference


Detailed Description

Defines ProjectInterface namespace - a collection of the global variables which should be set by a project to use the Tekkotsu framework.

Author:
ejt (Creator)
Author
dst
Name
tekkotsu-3_0
Revision
1.13
State
Exp
Date
2006/07/14 06:48:55

Definition in file ProjectInterface.h.

#include "Vision/colors.h"
#include <string>

Include dependency graph for ProjectInterface.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  std
namespace  ProjectInterface

Vision Setup

A collection of the various stages of vision processing. None of these are absolutely required, but are needed to run included demo behaviors and TekkotsuMon modules

FilterBankGeneratorProjectInterface::defRawCameraGenerator
 pointer to generator
FilterBankGeneratorProjectInterface::defInterleavedYUVGenerator
 pointer to generator
JPEGGeneratorProjectInterface::defColorJPEGGenerator
 pointer to generator
JPEGGeneratorProjectInterface::defGrayscaleJPEGGenerator
 pointer to generator
PNGGeneratorProjectInterface::defColorPNGGenerator
 pointer to generator
PNGGeneratorProjectInterface::defGrayscalePNGGenerator
 pointer to generator
SegmentedColorGeneratorProjectInterface::defSegmentedColorGenerator
 pointer to generator
RLEGeneratorProjectInterface::defRLEGenerator
 pointer to generator
RegionGeneratorProjectInterface::defRegionGenerator
 pointer to generator

Vision SIDs

Default source IDs for the various generators; These are given default values, but you can reassign them if you like.

unsigned int ProjectInterface::visRawCameraSID
 source id for event
unsigned int ProjectInterface::visInterleaveSID
 source id for event
unsigned int ProjectInterface::visColorJPEGSID
 source id for event
unsigned int ProjectInterface::visGrayscaleJPEGSID
 source id for event
unsigned int ProjectInterface::visColorPNGSID
 source id for event
unsigned int ProjectInterface::visGrayscalePNGSID
 source id for event
unsigned int ProjectInterface::visSegmentSID
 source id for event
unsigned int ProjectInterface::visRLESID
 source id for event
unsigned int ProjectInterface::visRegionSID
 source id for event
unsigned int ProjectInterface::visPinkBallSID
 source id for event
unsigned int ProjectInterface::visBlueBallSID
 source id for event
unsigned int ProjectInterface::visGreenBallSID
 source id for event
unsigned int ProjectInterface::visYellowBallSID
 source id for event
unsigned int ProjectInterface::visHandSID
 source id for event

Layer Resolutions

Allows you to request a particular layer abstractly - this isn't used by the framework, just a suggestion for clarity

unsigned int ProjectInterface::doubleLayer
 ERS-2xx: 352*288; ERS-7 416*320 (requires non-trivial computation).
unsigned int ProjectInterface::fullLayer
 ERS-2xx: 176*144; ERS-7 208*160.
unsigned int ProjectInterface::halfLayer
 ERS-2xx: 88*72; ERS-7 104*80.
unsigned int ProjectInterface::quarterLayer
 ERS-2xx: 44*36; ERS-7 52*40.
unsigned int ProjectInterface::eighthLayer
 ERS-2xx: 22*18; ERS-7 26*20 (simply a bigger interleave referencing quarterLayer).
unsigned int ProjectInterface::sixteenthLayer
 ERS-2xx: 11*9; ERS-7 13*10 (simply a bigger interleave referencing quarterLayer).

Functions

BehaviorBaseProjectInterface::startupBehavior ()
 REQUIRED: you must define a behavior which will be started when the boot is complete.
bool ProjectInterface::displayException (const char *file, int line, const char *message, const std::exception *ex)
 Displays information about an exception on serr, provides a default value for uncaughtException.
unsigned int ProjectInterface::getColorIndex (const std::string &name)
 Returns the index corresponding to a color of specified name by calling lookupColorIndexByName().
unsigned int ProjectInterface::getColorIndex (const rgb rgbval)
 Returns the index corresponding to an rgb value by calling lookupColorIndexByRgb().
rgb ProjectInterface::getColorRGB (const std::string &name)
 Returns rgb value corresponding to a color of specified name by calling lookupColorRGB(lookupColorIndexByName()).
rgb ProjectInterface::getColorRGB (unsigned int index)
 Returns rgb value corresponding to a color of specified name by calling lookupColorRGB().
unsigned int ProjectInterface::getNumColors ()
 Returns the number of colors, obtained from defSegmentedColorGenerator.
std::ostream & ProjectInterface::operator<< (std::ostream &os, const rgb &rgbval)
 displays an rgb value in the form '[r,g,b]'
std::string ProjectInterface::toString (const rgb &rgbval)
 returns rgbval in the form 'r g b'

Variables

bool(*) ProjectInterface::uncaughtException (const char *file, int line, const char *message, const std::exception *ex)
 The exception handler for exceptions which have fallen through to base Tekkotsu functions.
unsigned int(*) ProjectInterface::lookupColorIndexByName (const std::string &name)
 allows you to override how colors are defined -- by default, this will be set to a function which passes the call to defSegmentedColorGenerator
unsigned int(*) ProjectInterface::lookupColorIndexByRgb (const rgb rgbval)
 allows you to override how colors are defined -- by default, this will be set to a function which passes the call to defSegmentedColorGenerator
rgb(*) ProjectInterface::lookupColorRGB (unsigned int index)
 allows you to override how colors are defined -- by default, this will be set to a function which passes the call to defSegmentedColorGenerator
unsigned int(*) ProjectInterface::lookupNumColors ()
 returns the number of indexed colors which are currently defined


Tekkotsu v3.0
Generated Wed Oct 4 00:04:29 2006 by Doxygen 1.4.7