Wiselib
wiselib.testing/algorithms/localization/distance_based/util/localization_defutils.h
Go to the documentation of this file.
00001 /***************************************************************************
00002  ** This file is part of the generic algorithm library Wiselib.           **
00003  ** Copyright (C) 2008,2009 by the Wisebed (www.wisebed.eu) project.      **
00004  **                                                                       **
00005  ** The Wiselib is free software: you can redistribute it and/or modify   **
00006  ** it under the terms of the GNU Lesser General Public License as        **
00007  ** published by the Free Software Foundation, either version 3 of the    **
00008  ** License, or (at your option) any later version.                       **
00009  **                                                                       **
00010  ** The Wiselib is distributed in the hope that it will be useful,        **
00011  ** but WITHOUT ANY WARRANTY; without even the implied warranty of        **
00012  ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         **
00013  ** GNU Lesser General Public License for more details.                   **
00014  **                                                                       **
00015  ** You should have received a copy of the GNU Lesser General Public      **
00016  ** License along with the Wiselib.                                       **
00017  ** If not, see <http://www.gnu.org/licenses/>.                           **
00018  ***************************************************************************/
00019 #ifndef __ALGORITHMS_LOCALIZATION_DISTANCE_BASED_UTIL_DEFUTILS_H
00020 #define __ALGORITHMS_LOCALIZATION_DISTANCE_BASED_UTIL_DEFUTILS_H
00021 
00022 #include "algorithms/localization/distance_based/math/vec.h"
00023 #include <limits.h>
00024 #include <float.h>
00025 #include <math.h>
00026 
00027 #ifndef M_PI
00028    #define M_PI 3.14159265358
00029 #endif
00030 
00031 namespace wiselib
00032 {
00033 #ifdef ARITHMATIC
00034 
00035    const fixed UNKNOWN_DISTANCE = -999999;
00036    const Vec<fixed> UNKNOWN_POSITION = Vec<fixed>( -999999, -999999, -999999 );
00037    const fixed UNKNOWN_ANGLE = -999999;
00038    const fixed UNKNOWN_AVG_HOP_DIST = 999999;
00039    const int UNKNOWN_HOP_CNT = INT_MAX;
00040 
00041    const char* SEL_NODE_TAG_NAME = "LOCALIZATION_SELECTED_NODE_TAG";
00042 #else
00043    const double UNKNOWN_DISTANCE = DBL_MIN;
00044    const Vec<double> UNKNOWN_POSITION = Vec<double>( DBL_MIN, DBL_MIN, DBL_MIN );
00045    const double UNKNOWN_ANGLE = DBL_MIN;
00046    const double UNKNOWN_AVG_HOP_DIST = DBL_MAX;
00047    const int UNKNOWN_HOP_CNT = INT_MAX;
00048 
00049    const char* SEL_NODE_TAG_NAME = "LOCALIZATION_SELECTED_NODE_TAG";
00050 
00051 //    typedef std::map<int, const LocalizationLocalCoordinateSystem*> LCSMap;
00052 //    typedef LCSMap::iterator LCSMapIterator;
00053 //    typedef LCSMap::const_iterator ConstLCSMapIterator;
00054 
00055 //    typedef std::map<int, LocalizationNeighborInfo*> NeighborInfoMap;
00056 //    typedef NeighborInfoMap::const_iterator ConstNeighborhoodIterator;
00057 //    typedef NeighborInfoMap::iterator NeighborhoodIterator;
00058 // 
00059 //    typedef std::list<const LocalizationNeighborInfo*> NeighborInfoList;
00060 //    typedef NeighborInfoList::const_iterator ConstNeighborInfoListIterator;
00061 //    typedef NeighborInfoList::iterator NeighborInfoListIterator;
00062 #endif
00063 }// namespace wiselib
00064 #endif
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines