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

📄 result.h

📁 基于多假设的地图匹配算法。程序能够根据车辆在行驶过程中收集到的GPS/DR数据正确得到当前车辆所在的道路位置。
💻 H
字号:
/******************************************************************************    File Name:    include/Result.h    Description:  definitions of result structures******************************************************************************//******************************************************************************    Author:       alfred.liushu@gmail.com	    Upadate:      2008/09/16  File founded    Copyright 2008-2009 Robot Lab., Dept.of Automation, Tsinghua University******************************************************************************/#ifndef __RESULT_H__#define __RESULT_H__#include "../include/Setting.h"/******************************                   Result structures                         ***************************************************//*Matching result by point*/typedef struct RESULT{    TIME            time;                                               /*Time*/    IDTYPE          linkID;                                             /*ID of matched link*/    RoadDir         direction;                                          /*Running direction on the matched link*/    DATATYPE        belief;                                             /*belief of matching result*/    RESULT():time(0),linkID(0),direction(twoway),belief(0){};           /*Default constructor*/    RESULT(const RESULT& result):time(result.time),linkID(result.linkID),                                 direction(result.direction),belief(result.belief){};/*Copy-constructor*/    inline RESULT& operator= (const RESULT& result)    { time=result.time; linkID=result.linkID; belief=result.belief; direction=result.direction; return *this;};/*Reloaded equator*/}Result;/*Matched route (one link)*/typedef struct ROUTE{    TIME            beginTime;                                          /*Begin time*/    IDTYPE          linkID;                                             /*ID of matched link*/    RoadDir         direction;                                          /*Running direction on the matched link*/    ROUTE():beginTime(0),linkID(0),direction(twoway){};                 /*Default constructor*/    ROUTE(const ROUTE& route):beginTime(route.beginTime),linkID(route.linkID),direction(route.direction){};/*Copy-constructor*/    inline ROUTE& operator= (const ROUTE& route)    { beginTime=route.beginTime; linkID=route.linkID; direction=route.direction; return *this;};/*Reloaded equator*/}Route;#endif /*__RESULT_H__*/

⌨️ 快捷键说明

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