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 
00037 #endif

Tekkotsu v5.1CVS
Generated Mon May 9 04:58:41 2016 by Doxygen 1.6.3