⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 setting.h

📁 基于多假设的地图匹配算法。程序能够根据车辆在行驶过程中收集到的GPS/DR数据正确得到当前车辆所在的道路位置。
💻 H
字号:
/******************************************************************************    File Name:    include/Setting.h    Description:  basic settings of the software                  including data types, constants, macros and error codes******************************************************************************//******************************************************************************    Author:       alfred.liushu@gmail.com	    Upadate:      2008/09/16  File founded    Copyright 2008-2009 Robot Lab., Dept.of Automation, Tsinghua University******************************************************************************/#ifndef __SETTING_H__#define __SETTING_H__/*Version information*/#define MMTHU_VERSION "--VERS--"#define DEBUG                                                           /*Debug mode sign*//******************************                   Data types                                ***************************************************//*Basic types*/typedef unsigned int UINT;                                              /*Type of unsigned integers*/typedef unsigned int IDTYPE;                                            /*Type of IDs (roads, nodes, links, hypotheses, etc.)*/typedef double DATATYPE;                                                /*Type of floating point data in calculation*/typedef unsigned long int TIME;                                         /*Type of time, mesured in milliseconds*/typedef unsigned int RETCHECK;                                          /*Type of error codes*//*Traffic rules*/enum RoadDir{positive=1,negative=-1,twoway=0};                          /*Directions of roads/links*//******************************                   Constants                                 ***************************************************//*System settings*/const UINT StrLength = 50;                                              /*Maximum length of character strings*//*Constants*/const DATATYPE Pi = DATATYPE(3.1415926536);                             /*Value of pi*//*System parameters*/const TIME UpdatePeriod = 1000;                                         /*Update period measured in milliseconds*//******************************                   Macros                                    ***************************************************/#ifndef MAX                                                             /*Find the greater one from the two*/#define MAX(a,b) (((a)>(b))?(a):(b))#endif#ifndef MIN                                                             /*Find the lower one from the two*/#define MIN(a,b) (((a)<(b))?(a):(b))#endif#ifndef ABS                                                             /*Calculate the absolute value of x*/#define ABS(x) (((x)>0)?(x):(-(x)))#endif#ifndef NULL#define NULL 0                                                          /*Define NULL for pointers*/#endif/******************************                   Error codes for MMTHU project             ***************************************************/const RETCHECK MM_OK = 0;                                               /*No error*/const RETCHECK MM_Access = 1;                                           /*Fail to access file*/const RETCHECK MM_Space = 2;                                            /*No enough space allocated*/const RETCHECK MM_Inconsistancy = 3;                                    /*Inconsistance data*/const RETCHECK MM_Result = 4;                                           /*Result not available*/const RETCHECK MM_Parameter = 5;                                        /*Error in input parameters*/#endif /*__SETTING_H__*/

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -