ImageSources.h
Go to the documentation of this file.
00001 /*******************************************************************************
00002  *  ImageSources.h
00003  *
00004  *  (C) 2007 AG Aktives Sehen <agas@uni-koblenz.de>
00005  *           Universitaet Koblenz-Landau
00006  *
00007  *  Additional information:
00008  *  $Id: $
00009  *******************************************************************************/
00010 
00011 #ifndef ImageSources_H
00012 #define ImageSources_H
00013 
00014 #include <string>
00015 #include <sstream>
00016 #include <map>
00017 
00018 #include "Mutex.h"
00019 
00025 class ImageSources
00026 {
00027   public:
00028 
00034     enum SourceId
00035     {
00036       //Cameras
00037       TopCamera=0,
00038       CenterCamera=1,
00039       BottomCamera=4,
00040       ThermalCamera=6,
00041       KinectCamera=7,
00042                         
00043       //Video streams
00044       TopCameraStream=100,
00045       CenterCameraStream=101,
00046       BottomCameraStream=104,
00047       KinectCameraStream=105,
00048                         
00049       WiiMoteStream=109,
00050 
00051       //Object Recognition
00052       ORPrimary=300,
00053 
00054       //Object Learning
00055       OLPrimary=400,
00056       OLSecondary=401,
00057 
00058       //Navigation
00059       OccupancyMap=500,
00060       OccupancyUpdateMap=501,
00061       ObstacleMap=502,
00062 
00063       SonarMap=520,
00064 
00065       ExplorationTransform=530,
00066       PathTransform=531,
00067       ObstacleTransform=532,
00068       TargetMap=533,
00069       CostTransform=534,
00070 
00071       //
00072       PeopleTracker=600,
00073       LaserPainterTest=601,
00074       ExplorationMap=602,
00075 
00076       //
00077       Roomba=700,
00078 
00079       //Display images for human robot interaction
00080       HRIDisplay = 800,
00081 
00082       // Gesture recognition debug
00083       GestureDebug1 = 900,
00084       GestureDebug2 = 901,
00085       GestureDebug3 = 902,
00086       GestureDebug4 = 903,
00087 
00088       TofFaceDetection = 1000,
00089       ImageFaceDetection = 1001,
00090 
00091       //Empty channel
00092       None=9999
00093     };
00094 
00097     static void fillSourceDesc()
00098     {
00099       sourceDesc[None]="None";
00100 
00101       sourceDesc[TopCamera]="Top Camera";
00102       sourceDesc[CenterCamera]="Middle Camera";
00103       sourceDesc[BottomCamera]="Bottom Camera";
00104       sourceDesc[KinectCamera]="Kinect Camera";
00105                         
00106       sourceDesc[ThermalCamera]="Thermal Camera";
00107 
00108       sourceDesc[TopCameraStream]="Top Camera Stream";
00109       sourceDesc[CenterCameraStream]="Middle Camera Stream";
00110       sourceDesc[BottomCameraStream]="Bottom Camera Stream";
00111       sourceDesc[KinectCameraStream]="Kinect Camera Stream";
00112 
00113       sourceDesc[WiiMoteStream]="WiiMote Stream";
00114 
00115                         sourceDesc[ORPrimary]="Object Recognition";
00116 
00117       sourceDesc[OLPrimary]="Object Learning (Primary)";
00118       sourceDesc[OLSecondary]="Object Learning (Secondary)";
00119 
00120       sourceDesc[OccupancyMap]="Mapping: Occupancy Map";
00121       sourceDesc[OccupancyUpdateMap]="Mapping: Occupancy Update Map";
00122       sourceDesc[ObstacleMap]="Mapping: Obstacle Map";
00123 
00124       sourceDesc[SonarMap]="Mapping: Sonar Map";
00125 
00126       sourceDesc[ExplorationTransform]="Navigation: Exploration Transform";
00127       sourceDesc[PathTransform]="Navigation: Path Transform";
00128       sourceDesc[ObstacleTransform]="Navigation: Obstacle Transform";
00129       sourceDesc[TargetMap]="Navigation: Target Map";
00130       sourceDesc[CostTransform]="Navigation: Cost Transform";
00131 
00132       sourceDesc[PeopleTracker]="People Tracking";
00133       sourceDesc[LaserPainterTest]="LaserPainterTest";
00134       sourceDesc[ExplorationMap]="Exploration Map";
00135 
00136       sourceDesc[Roomba]="Roomba Debug";
00137 
00138       sourceDesc[HRIDisplay]="HRI Display (User Interaction)";
00139 
00140       sourceDesc[GestureDebug1]="Gesture Recognition Debug 1";
00141       sourceDesc[GestureDebug2]="Gesture Recognition Debug 2";
00142       sourceDesc[GestureDebug3]="Gesture Recognition Debug 3";
00143       sourceDesc[GestureDebug4]="Gesture Recognition Debug 4";
00144 
00145       sourceDesc[TofFaceDetection]="ToF camera: Face Detection";
00146       sourceDesc[ImageFaceDetection]="Left Camera: Face Detection";
00147 
00148     }
00149 
00151     static void initSourceDesc();
00152 
00154     static std::map< SourceId, std::string > getSourceDesc();
00155 
00157     static std::string getSourceDesc( SourceId id );
00158 
00159   private:
00160 
00162     ImageSources();
00163 
00165     ~ImageSources();
00166 
00167     static std::map<SourceId,std::string> sourceDesc;
00168     static Mutex mutex;
00169 
00170 };
00171 
00172 
00173 #endif


obj_rec_gui
Author(s): AGAS/agas@uni-koblenz.de
autogenerated on Mon Oct 6 2014 02:53:43