| Tekkotsu Homepage | Demos | Overview | Downloads | Dev. Resources | Reference | Credits |
ProjectInterface Namespace ReferenceDetailed DescriptionA collection of the global variables which should be set by a project to use the Tekkotsu framework.This namespace hold a few variables needed for initialization of the framework, but mainly declares variables which are used by demo behaviors. Although the variables are declared here, and some default values provided, it is up to your project to define the actual values used for your own project. This provides a way to reassign conflicts between values provided by the framework vs. those you might wish to add to your project. Currently, all required members are references (so they can't be set to NULL and you'll get errors if you leave them out) and all optional settings are pointers so you can ignore them if you want. The "optional" variables are used by demo behaviors, and thus if you remove all of the demo behaviors, you won't need to define the corresponding interface values here. If you want to add new ID values for your project, create a new 'globals.h' or some such in your project -- you don't need to add them here since this file is shared by all projects which use the framework, you shouldn't need to modify it for each project.
Function Documentation
Displays information about an exception on serr, provides a default value for uncaughtException. You can call this directly from your own code any time you would like an exception error message.
Definition at line 9 of file ProjectInterface.cc.
REQUIRED: you must define a behavior which will be started when the boot is complete. This is similar in idea to the Linux init process - it should do some basic initialization and then launch any other behavior you would like to run at boot. To avoid static initialization ordering issues, this is a function which will be called after environment setup is complete, which should then return a behavior to use as the startup behavior. This behavior should not be reference counted, and probably makes most sense to implement as a static local variable of the function. (Each call should return the same behavior)
Returns the index corresponding to a color of specified name by calling lookupColorIndexByName(). As per SegmentedColorGenerator::getColorIndex(), if name is not valid, return -1U Definition at line 91 of file ProjectInterface.h.
Returns rgb value corresponding to a color of specified name by calling lookupColorRGB(lookupColorIndexByName()). As per SegmentedColorGenerator::getColorRGB(), if name is not valid, return black (rgb()) Definition at line 96 of file ProjectInterface.h.
Returns rgb value corresponding to a color of specified name by calling lookupColorRGB(). As per SegmentedColorGenerator::getColorRGB(), if index is not valid, return black (rgb()) Definition at line 99 of file ProjectInterface.h.
Returns color name corresponding to specified color index by calling lookupColorName(). As per SegmentedColorGenerator::getColorName(), if index is not valid, return NULL Definition at line 103 of file ProjectInterface.h.
Variable Documentation
The exception handler for exceptions which have fallen through to base Tekkotsu functions. You can override this to install your own handler by assigning a new function. This defaults to displayException(), which does not call abort() (which would otherwise be the default if the exception fell through).
Definition at line 30 of file ProjectInterface.cc. Referenced by Wireless::BindCont(), Wireless::CloseCont(), Wireless::ConnectCont(), MotionManager::doAddMotion(), MotionManager::getOutputs(), Wireless::ListenCont(), IPCEventTranslator::post(), EventRouter::PostingStatus::process(), MotionManager::processMsg(), EventRouter::processTimers(), Wireless::ReceiveCont(), and Wireless::SendCont().
allows you to override how colors are defined -- by default, this will be set to a function which passes the call to defSegmentedColorGenerator As per SegmentedColorGenerator::getColorIndex(), if name is not valid, return -1U Definition at line 38 of file ProjectInterface.cc. Referenced by getColorIndex(), and getColorRGB().
allows you to override how colors are defined -- by default, this will be set to a function which passes the call to defSegmentedColorGenerator As per SegmentedColorGenerator::getColorRGB(), if index is not valid, return black (rgb()) Definition at line 55 of file ProjectInterface.cc. Referenced by getColorRGB().
allows you to override how colors are defined -- by default, this will be set to a function which passes the call to defSegmentedColorGenerator As per SegmentedColorGenerator::getColorRGB(), if index is not valid, return black (rgb()) Definition at line 63 of file ProjectInterface.cc. Referenced by getColorName().
The exception handler for exceptions which have fallen through to base Tekkotsu functions. You can override this to install your own handler by assigning a new function. This defaults to displayException(), which does not call abort() (which would otherwise be the default if the exception fell through).
Definition at line 30 of file ProjectInterface.cc. Referenced by Wireless::BindCont(), Wireless::CloseCont(), Wireless::ConnectCont(), MotionManager::doAddMotion(), MotionManager::getOutputs(), Wireless::ListenCont(), IPCEventTranslator::post(), EventRouter::PostingStatus::process(), MotionManager::processMsg(), EventRouter::processTimers(), Wireless::ReceiveCont(), and Wireless::SendCont().
allows you to override how colors are defined -- by default, this will be set to a function which passes the call to defSegmentedColorGenerator As per SegmentedColorGenerator::getColorIndex(), if name is not valid, return -1U Definition at line 38 of file ProjectInterface.cc. Referenced by getColorIndex(), and getColorRGB().
allows you to override how colors are defined -- by default, this will be set to a function which passes the call to defSegmentedColorGenerator As per SegmentedColorGenerator::getColorRGB(), if index is not valid, return black (rgb()) Definition at line 55 of file ProjectInterface.cc. Referenced by getColorRGB().
allows you to override how colors are defined -- by default, this will be set to a function which passes the call to defSegmentedColorGenerator As per SegmentedColorGenerator::getColorRGB(), if index is not valid, return black (rgb()) Definition at line 63 of file ProjectInterface.cc. Referenced by getColorName().
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Tekkotsu v3.0 |
Generated Fri May 11 20:09:13 2007 by Doxygen 1.4.7 |