Tekkotsu Homepage
Demos
Overview
Downloads
Dev. Resources
Reference
Credits

Calliope3Info.h

Go to the documentation of this file.
00001 //-*-c++-*-
00002 #ifndef INCLUDED_Calliope3Info_h
00003 #define INCLUDED_Calliope3Info_h
00004 
00005 #include "Calliope3Components.h"
00006 
00007 //**** This file defines Calliope3 robot models in terms of the modular components defined in
00008 //**** Calliope3Components.h.
00009 //! Calliope with 2DOF arm and Microsof LifeCam camera on pan/tilt
00010 namespace Calliope3Info {
00011   extern const char* const TargetName;
00012   
00013   using namespace Calliope3Components;
00014   using Calliope3Components::PIDJointOffset;
00015   using Calliope3Components::NumButtons;
00016   using Calliope3Components::buttonNames;
00017   using Calliope3Components::NumLEDs;
00018   using Calliope3Components::NumSensors;
00019   using Calliope3Components::sensorNames;
00020   
00021   using namespace Calliope3;
00022   using Calliope3::NumPIDJoints;
00023   using Calliope3::NumOutputs;
00024   using Calliope3::NumArms;
00025   using Calliope3::LEDOffset;
00026   using Calliope3::HeadTiltOffset;
00027   using Calliope3::MaxOutputSpeed;
00028 
00029 
00030   using namespace CameraLifeCam;
00031 
00032   const unsigned NumReferenceFrames = NumOutputs + 1/*base*/ + NumArms/*grippers*/ + 1/*camera*/ + 0/*IR sensors*/ + 0/*fingers*/;
00033 
00034   const char* const outputNames[NumReferenceFrames+1] = {
00035     "WHEEL:L",
00036     "WHEEL:R",
00037     "NECK:pan",
00038     "NECK:tilt",
00039     "ARM:base",
00040     "ARM:shoulder",
00041     "ARM:gripper",
00042     "LED:Power(Red)",
00043     "LED:Power(Green)",
00044     "LED:Spot",
00045     "LED:CheckRobot",
00046     "LED:Debris",
00047     "LED:Home",
00048     "DesiredMode",
00049     "BaseFrame",
00050     "GripperFrame",
00051     "CameraFrame",
00052     NULL
00053   };
00054   
00055   class Calliope3Capabilities : public Capabilities {
00056   public:
00057     Calliope3Capabilities()
00058     : Capabilities(TargetName, NumReferenceFrames, outputNames, NumButtons, buttonNames, NumSensors, sensorNames, PIDJointOffset, NumPIDJoints, LEDOffset, NumLEDs, NumOutputs)
00059     {
00060       frameToIndex["NECK:nod"] = HeadTiltOffset;
00061     }
00062   };
00063 
00064   extern const Calliope3Capabilities capabilities;
00065 }
00066 /*! @file
00067  * @brief Defines some capabilities of the Calliope robot, based on the iRobot Create
00068  * @author ejt (Creator)
00069  */
00070 
00071 #ifdef __RI_RAD_FLAG
00072 #  undef RAD
00073 #  undef __RI_RAD_FLAG
00074 #endif
00075 
00076 
00077 #endif

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