Tekkotsu Homepage
Demos
Overview
Downloads
Dev. Resources
Reference
Credits

CommonERSInfo.h

Go to the documentation of this file.
00001 //-*-c++-*-
00002 #ifndef INCLUDED_CommonERSInfo_h
00003 #define INCLUDED_CommonERSInfo_h
00004 
00005 #include <math.h>
00006 #ifndef PLATFORM_APERIOS
00007 typedef unsigned short word; //!< otherwise defined in Types.h
00008 #else
00009 #include <Types.h>
00010 #endif
00011 
00012 #include "CommonInfo.h"
00013 using namespace RobotInfo;
00014 
00015 // see http://tekkotsu.org/porting.html#configuration for more information on TGT_HAS_* flags
00016 
00017 #if defined(TGT_ERS210) || defined(TGT_ERS220) || defined(TGT_ERS2xx) || defined(TGT_ERS7)
00018 
00019 //! Should only be used to specialize/optimize for the Aibo
00020 #  define TGT_IS_AIBO
00021 
00022 # define TGT_HAS_LEGS 4
00023 # define TGT_HAS_REK_LEGS 4
00024 # define TGT_HAS_LED_PANEL 1
00025 # define TGT_HAS_ACCELEROMETERS 3
00026 # ifndef TGT_ERS220
00027 #   define TGT_HAS_MOUTH 1
00028 #   define TGT_HAS_TAIL 1
00029 # endif
00030 # define TGT_HAS_POWER_STATUS
00031 # define TGT_HAS_CAMERA 1
00032 # define TGT_HAS_HEAD 1
00033 # define TGT_HAS_MICROPHONE 2
00034 # define TGT_HAS_SPEAKERS 1
00035 
00036 #endif
00037 
00038 namespace CameraERS2xx {
00039   const float CameraHorizFOV=57.6f/180*static_cast<float>(M_PI); //!< horizontal field of view (radians)
00040   const float CameraVertFOV=47.8f/180*static_cast<float>(M_PI); //!< vertical field of view (radians)
00041   const float CameraFOV=CameraHorizFOV; //!< should be set to maximum of #CameraHorizFOV or #CameraVertFOV
00042   const unsigned int CameraResolutionX=176; //!< the number of pixels available in the 'full' layer
00043   const unsigned int CameraResolutionY=144; //!< the number of pixels available in the 'full' layer
00044   extern const char CameraModelName[]; //!< specifies a name of the camera to load calibration parameters into RobotInfo::CameraHomography
00045 }
00046 
00047 /*! @file
00048  * @brief Defines some capabilities common to all Aibo robots
00049  * @author ejt (Creator)
00050  */
00051 
00052 #endif

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