Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

Modules/BehaviorControl/CommonXabsl2Symbols/HeadAndTailSymbols.cpp

Go to the documentation of this file.
00001 /** 
00002 * @file HeadAndTailSymbols.cpp
00003 *
00004 * Implementation of class HeadAndTailSymbols.
00005 *
00006 * @author Uwe Düffert
00007 * @author Martin Lötzsch
00008 */
00009 
00010 #include "HeadAndTailSymbols.h"
00011 #include "Tools/StringFunctions.h"
00012 
00013 HeadAndTailSymbols::HeadAndTailSymbols(const BehaviorControlInterfaces& interfaces)
00014 : BehaviorControlInterfaces(interfaces)
00015 {
00016 }
00017 
00018 
00019 void HeadAndTailSymbols::registerSymbols(Xabsl2Engine& engine)
00020 {
00021   int i;
00022   char s[256];
00023 
00024   // "head-control-mode"
00025   engine.registerEnumeratedOutputSymbol("head-control-mode",(int*)&headControlMode);
00026   for (i=0;i<HeadControlMode::numOfHeadControlModes;i++)
00027   {
00028     sprintf(s,"head-control-mode.");
00029     getXmlString(s+strlen(s),HeadControlMode::getHeadControlModeName((HeadControlMode::HeadControlModes)i));
00030     engine.registerEnumeratedOutputSymbolEnumElement("head-control-mode",s,i);
00031   }
00032 
00033   // "tail-mode"
00034   engine.registerEnumeratedOutputSymbol("tail-mode",(int*)&motionRequest.tailRequest);
00035   for (i=0;i<TailRequest::numOfTailRequests;i++)
00036   {
00037     sprintf(s,"tail-mode.");
00038     getXmlString(s+strlen(s),TailRequest::getTailRequestIDName((TailRequest::TailRequestID)i));
00039     engine.registerEnumeratedOutputSymbolEnumElement("tail-mode",s,i);
00040   }
00041 }
00042 
00043 
00044 /*
00045 * Change Log
00046 * 
00047 * $Log: HeadAndTailSymbols.cpp,v $
00048 * Revision 1.2  2004/06/02 17:18:23  spranger
00049 * MotionRequest cleanup
00050 *
00051 * Revision 1.1.1.1  2004/05/22 17:16:57  cvsadm
00052 * created new repository GT2004_WM
00053 *
00054 * Revision 1.2  2004/03/08 00:58:55  roefer
00055 * Interfaces should be const
00056 *
00057 * Revision 1.1  2003/10/22 22:18:44  loetzsch
00058 * prepared the cloning of the GT2003BehaviorControl
00059 *
00060 * Revision 1.1  2003/10/06 13:39:28  cvsadm
00061 * Created GT2004 (M.J.)
00062 *
00063 * Revision 1.1.1.1  2003/07/02 09:40:23  cvsadm
00064 * created new repository for the competitions in Padova from the 
00065 * tamara CVS (Tuesday 2:00 pm)
00066 *
00067 * removed unused solutions
00068 *
00069 * Revision 1.1  2003/05/06 14:46:12  loetzsch
00070 * added registration of generated GT2003BehaviorControl symbols
00071 *
00072 */
00073 

Generated on Thu Sep 23 19:57:25 2004 for GT2004 by doxygen 1.3.6