Tekkotsu Homepage
Demos
Overview
Downloads
Dev. Resources
Reference
Credits

HeadPointerNode.h

Go to the documentation of this file.
00001 //-*-c++-*-
00002 #ifndef INCLUDED_HeadPointerNode_h_
00003 #define INCLUDED_HeadPointerNode_h_
00004 
00005 #include "MCNode.h"
00006 #include "Motion/HeadPointerMC.h"
00007 
00008 // You don't actually need to declare extern strings in order to use
00009 // MCNode, but it's nice...  If you left the name and description
00010 // off, it would substitute MCNode's default values, but that would
00011 // yield rather ambiguous debugging output
00012 
00013 //!default name for HeadPointerNode's (have to instantiate a variable in order to use as a template argument)
00014 /*! instantiation will be placed in MCNode.cc (instead of HeadPointerNode.cc) to avoid file bloat */
00015 extern const char defHeadPointerNodeName[];
00016 //!default description for HeadPointerNode's (have to instantiate a variable in order to use as a template argument)
00017 /*! instantiation will be placed in MCNode.cc (instead of HeadPointerNode.cc) to avoid file bloat */
00018 extern const char defHeadPointerNodeDesc[];
00019 
00020 //! A simple StateNode that executes a HeadPointerMC motion command
00021 class HeadPointerNode : public MCNode<HeadPointerMC,defHeadPointerNodeName,defHeadPointerNodeDesc,true> {
00022 public:
00023   //! default constructor, use type name as instance name
00024   HeadPointerNode() : MCNode<HeadPointerMC,defHeadPointerNodeName,defHeadPointerNodeDesc,true>() {}
00025   
00026   //! constructor, take an instance name
00027   HeadPointerNode(const std::string& nm) : MCNode<HeadPointerMC,defHeadPointerNodeName,defHeadPointerNodeDesc,true>(nm) {}
00028 };
00029 
00030 
00031 /*! @file
00032  * @brief Defines HeadPointerNode, a simple StateNode that runs a HeadPointerMC motion command and throws a status event upon completion
00033  * @author dst (Creator)
00034  * @author ejt (Rewrote using MCNode)
00035  *
00036  * $Author: ejt $
00037  * $Name: tekkotsu-4_0 $
00038  * $Revision: 1.9 $
00039  * $State: Exp $
00040  * $Date: 2006/09/27 20:10:27 $
00041  */
00042 
00043 #endif

Tekkotsu v4.0
Generated Thu Nov 22 00:54:53 2007 by Doxygen 1.5.4