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
Revision
1.18
State
Exp
Date
2007/03/16 04:08:03

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 vision events from the corresponding pipeline stage or object detector
unsigned int ProjectInterface::visInterleaveSID
 source id for vision events from the corresponding pipeline stage or object detector
unsigned int ProjectInterface::visColorJPEGSID
 source id for vision events from the corresponding pipeline stage or object detector
unsigned int ProjectInterface::visGrayscaleJPEGSID
 source id for vision events from the corresponding pipeline stage or object detector
unsigned int ProjectInterface::visColorPNGSID
 source id for vision events from the corresponding pipeline stage or object detector
unsigned int ProjectInterface::visGrayscalePNGSID
 source id for vision events from the corresponding pipeline stage or object detector
unsigned int ProjectInterface::visSegmentSID
 source id for vision events from the corresponding pipeline stage or object detector
unsigned int ProjectInterface::visRLESID
 source id for vision events from the corresponding pipeline stage or object detector
unsigned int ProjectInterface::visRegionSID
 source id for vision events from the corresponding pipeline stage or object detector
unsigned int ProjectInterface::visPinkBallSID
 source id for vision events from the corresponding pipeline stage or object detector
unsigned int ProjectInterface::visBlueBallSID
 source id for vision events from the corresponding pipeline stage or object detector
unsigned int ProjectInterface::visGreenBallSID
 source id for vision events from the corresponding pipeline stage or object detector
unsigned int ProjectInterface::visYellowBallSID
 source id for vision events from the corresponding pipeline stage or object detector
unsigned int ProjectInterface::visOrangeSID
 source id for vision events from the corresponding pipeline stage or object detector
unsigned int ProjectInterface::visHandSID
 synonym for visOrangeSID

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.
color_index ProjectInterface::getColorIndex (const std::string &name)
 Returns the index corresponding to a color of specified name by calling lookupColorIndexByName().
color_index 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 (color_index cindex)
 Returns rgb value corresponding to a color of specified name by calling lookupColorRGB().
const char * ProjectInterface::getColorName (color_index cindex)
 Returns color name corresponding to specified color index by calling lookupColorName().
unsigned int ProjectInterface::getNumColors ()
 Returns the number of colors, obtained from defSegmentedColorGenerator.

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.
color_index(*) 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
color_index(*) 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 (color_index cindex)
 allows you to override how colors are defined -- by default, this will be set to a function which passes the call to defSegmentedColorGenerator
const char *(*) ProjectInterface::lookupColorName (color_index cindex)
 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 Fri May 11 20:06:28 2007 by Doxygen 1.4.7