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

📄 commandline.h

📁 Particle filtering implementation and application to people tracking.
💻 H
字号:
/***************************************************************** * * This file is part of the GMAPPING project * * GMAPPING Copyright (c) 2004 Giorgio Grisetti,  * Cyrill Stachniss, and Wolfram Burgard * * This software is licensed under the "Creative Commons  * License (Attribution-NonCommercial-ShareAlike 2.0)"  * and is copyrighted by Giorgio Grisetti, Cyrill Stachniss,  * and Wolfram Burgard. *  * Further information on this license can be found at: * http://creativecommons.org/licenses/by-nc-sa/2.0/ *  * GMAPPING is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied  * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR * PURPOSE.   * *****************************************************************/#ifndef COMMANDLINE_H#define COMMANDLINE_H	#define parseFlag(name,value)\if (!strcmp(argv[c],name)){\	value=true;\	cerr << name << " on"<< endl;\	recognized=true;\}\#define parseString(name,value)\if (!strcmp(argv[c],name) && c<argc-1){\	c++;\	value=argv[c];\	cerr << name << "=" << value << endl;\	recognized=true;\}\#define parseDouble(name,value)\if (!strcmp(argv[c],name) && c<argc-1){\	c++;\	value=atof(argv[c]);\	cerr << name << "=" << value << endl;\	recognized=true;\}\#define parseInt(name,value)\if (!strcmp(argv[c],name) && c<argc-1){\	c++;\	value=atoi(argv[c]);\	cerr << name << "=" << value << endl;\	recognized=true;\}\#define CMD_PARSE_BEGIN(i, count)\{\	int c=i;\	while (c<count){\		bool recognized=false;	#define CMD_PARSE_END\		if (!recognized)\			cerr << "COMMAND LINE: parameter " << argv[c] << " not recognized" << endl;\		c++;\	}\}#define CMD_PARSE_BEGIN_SILENT(i, count)\{\	int c=i;\	while (c<count){\		bool recognized=false;	#define CMD_PARSE_END_SILENT\		c++;\	}\}	#define parseFlagSilent(name,value)\if (!strcmp(argv[c],name)){\	value=true;\	recognized=true;\}\#define parseStringSilent(name,value)\if (!strcmp(argv[c],name) && c<argc-1){\	c++;\	value=argv[c];\	recognized=true;\}\#define parseDoubleSilent(name,value)\if (!strcmp(argv[c],name) && c<argc-1){\	c++;\	value=atof(argv[c]);\	recognized=true;\}\#define parseIntSilent(name,value)\if (!strcmp(argv[c],name) && c<argc-1){\	c++;\	value=atoi(argv[c]);\	recognized=true;\}\#endif

⌨️ 快捷键说明

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