Calliope3Info.h
Go to the documentation of this file.00001
00002 #ifndef INCLUDED_Calliope3Info_h
00003 #define INCLUDED_Calliope3Info_h
00004
00005 #include "Calliope3Components.h"
00006
00007
00008
00009
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 + NumArms + 1 + 0 + 0;
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
00067
00068
00069
00070
00071 #ifdef __RI_RAD_FLAG
00072 # undef RAD
00073 # undef __RI_RAD_FLAG
00074 #endif
00075
00076
00077 #endif