Tekkotsu Homepage
Demos
Overview
Downloads
Dev. Resources
Reference
Credits

ProjectInterface.cc File Reference


Detailed Description

Provides instantiation of the non-required members of ProjectInterface.

Author:
ejt (Creator)
Author
ejt
Name
tekkotsu-3_0
Revision
1.15
State
Exp
Date
2006/09/25 23:31:06

Definition in file ProjectInterface.cc.

#include "ProjectInterface.h"
#include "Wireless/Socket.h"
#include "Vision/SegmentedColorGenerator.h"
#include "debuget.h"
#include <exception>

Include dependency graph for ProjectInterface.cc:

Go to the source code of this file.

Namespaces

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 = NULL
 pointer to generator
FilterBankGeneratorProjectInterface::defInterleavedYUVGenerator = NULL
 pointer to generator
JPEGGeneratorProjectInterface::defColorJPEGGenerator = NULL
 pointer to generator
JPEGGeneratorProjectInterface::defGrayscaleJPEGGenerator = NULL
 pointer to generator
PNGGeneratorProjectInterface::defColorPNGGenerator = NULL
 pointer to generator
PNGGeneratorProjectInterface::defGrayscalePNGGenerator = NULL
 pointer to generator
SegmentedColorGeneratorProjectInterface::defSegmentedColorGenerator = NULL
 pointer to generator
RLEGeneratorProjectInterface::defRLEGenerator = NULL
 pointer to generator
RegionGeneratorProjectInterface::defRegionGenerator = NULL
 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 = 0
 source id for event
unsigned int ProjectInterface::visInterleaveSID = 0
 source id for event
unsigned int ProjectInterface::visColorJPEGSID = 0
 source id for event
unsigned int ProjectInterface::visGrayscaleJPEGSID = 1
 source id for event
unsigned int ProjectInterface::visColorPNGSID = 0
 source id for event
unsigned int ProjectInterface::visGrayscalePNGSID = 1
 source id for event
unsigned int ProjectInterface::visSegmentSID = 0
 source id for event
unsigned int ProjectInterface::visRLESID = 0
 source id for event
unsigned int ProjectInterface::visRegionSID = 0
 source id for event
unsigned int ProjectInterface::visPinkBallSID = 0
 source id for event
unsigned int ProjectInterface::visBlueBallSID = 1
 source id for event
unsigned int ProjectInterface::visGreenBallSID = 2
 source id for event
unsigned int ProjectInterface::visYellowBallSID = 3
 source id for event
unsigned int ProjectInterface::visHandSID = 4
 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 = 5
 ERS-2xx: 352*288; ERS-7 416*320 (requires non-trivial computation).
unsigned int ProjectInterface::fullLayer = 4
 ERS-2xx: 176*144; ERS-7 208*160.
unsigned int ProjectInterface::halfLayer = 3
 ERS-2xx: 88*72; ERS-7 104*80.
unsigned int ProjectInterface::quarterLayer = 2
 ERS-2xx: 44*36; ERS-7 52*40.
unsigned int ProjectInterface::eighthLayer = 1
 ERS-2xx: 22*18; ERS-7 26*20 (simply a bigger interleave referencing quarterLayer).
unsigned int ProjectInterface::sixteenthLayer = 0
 ERS-2xx: 11*9; ERS-7 13*10 (simply a bigger interleave referencing quarterLayer).

Functions

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::defLookupColorIndexByName (const std::string &name)
 default implementation assigned to lookupColorIndexByName(); checks that defSegmentedColorGenerator is non-NULL and returns getColorIndex on it
unsigned int ProjectInterface::defLookupColorIndexByRgb (const rgb rgbval)
 default value initially assigned to lookupColorIndexByRgb(); checks that defSegmentedColorGenerator is non-NULL and returns getColorIndex on it
rgb ProjectInterface::defLookupColorRGB (unsigned int index)
 default implementation assigned to lookupColorRGB(); checks that defSegmentedColorGenerator is non-NULL and returns getColorRGB on it
unsigned int ProjectInterface::defLookupNumColors ()
 default value initially assigned to lookupNumColors(); checks that defSegmentedColorGenerator is non-NULL and returns getNumColors on it
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) = &displayException
 The exception handler for exceptions which have fallen through to base Tekkotsu functions.
unsigned int(*) ProjectInterface::lookupColorIndexByName (const std::string &name) = &defLookupColorIndexByName
 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) = &defLookupColorIndexByRgb
 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) = &defLookupColorRGB
 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 () = &defLookupNumColors
 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