Tekkotsu Homepage
Demos
Overview
Downloads
Dev. Resources
Reference
Credits

MotionReport.cc

Go to the documentation of this file.
00001 #include "Behaviors/Controls/NullControl.h"
00002 #include "Motion/MotionManager.h"
00003 
00004 //! Triggers MotionManager::motionReport() to display currently active motions and their output usage on stderr
00005 class MotionReport : public NullControl {
00006 public:
00007   //! default constructor
00008   MotionReport()
00009     : NullControl("Motion Report","Triggers MotionManager::motionReport() to display currently active motions and their output usage on stderr")
00010   {}
00011   //! constructor which allows a custom name
00012   MotionReport(const std::string& n)
00013     : NullControl(n,"Triggers MotionManager::motionReport() to display currently active motions and their output usage on stderr")
00014   {}
00015   //! constructor which allows a custom name and tooltip
00016   MotionReport(const std::string& n, const std::string& d)
00017     : NullControl(n,d)
00018   {}
00019 
00020   //! destructor
00021   virtual ~MotionReport() {}
00022 
00023   virtual ControlBase * activate(MC_ID disp_id, Socket * gui) {
00024     motman->motionReport();
00025     return NullControl::activate(disp_id,gui);
00026   }
00027 
00028 private:
00029   MotionReport(const MotionReport&); //!< you can override, but don't call this...
00030   MotionReport& operator=(const MotionReport&); //!< you can override, but don't call this...
00031 };
00032 
00033 REGISTER_CONTROL(MotionReport,"Status Reports");
00034 
00035 /*! @file
00036  * @brief Defines MotionReport, which DESCRIPTION
00037  * @author Ethan Tira-Thompson (ejt) (Creator)
00038  */

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