
软件环境
abcwoabcwo
这个作者很懒,什么都没留下…
展开
-
在git中如何忽略.vscode目录?
目录添加到了Git仓库中,那么忽略规则不会对其生效。在这种情况下,你需要先从Git仓库中移除。请注意,这些规则只影响那些尚未被Git跟踪的文件。目录,然后再应用忽略规则。目录就会被Git忽略,不会再出现在未跟踪的文件列表中。在Git中,如果你想忽略某个特定的文件或目录(比如。原创 2024-08-04 11:44:25 · 1478 阅读 · 0 评论 -
gnuplot安装与使用
安装sudo apt-get install gnuplot 终端运行命令gnuplot,若出现Terminal type set to 'unknown',如下需要安装x11库sudo apt-get install gnuplot-x11使用plot x*xplot exp(x)原创 2021-01-13 10:31:34 · 2909 阅读 · 0 评论 -
编译报错:No such file or directory #include “glog/logging.h“
编译报错:No such file or directory #include "glog/logging.h"解决办法:sudo apt-get install libgflags-dev libgoogle-glog-dev原创 2021-01-13 10:02:44 · 6563 阅读 · 4 评论 -
ubuntu环境安装ffmpeg
安装步骤sudo add-apt-repository ppa:kirillshkrogalev/ffmpeg-next sudo apt-get update sudo apt-get install ffmpeg查看安装是否成功ffmpeg -version如果出现如下信息,则说明安装成功。原创 2020-12-03 19:37:22 · 488 阅读 · 0 评论 -
google-glog安装
git clone https://github.com/google/glog.gitcd glogcmake -H. -Bbuild -G "Unix Makefiles"cmake --build build原创 2020-10-10 19:28:13 · 235 阅读 · 0 评论 -
Ubuntu环境下安装DBoW2
简介DBoW2 is an improved version of the DBow library, an open source C++ library for indexing and converting images into a bag-of-word representation. It implements a hierarchical tree for approximating nearest neighbours in the image feature space and cre原创 2020-09-15 09:55:08 · 3521 阅读 · 0 评论 -
出现报错Pangolin X11: Unable to retrieve framebuffer options怎么办?
问题运行Pangolin时出现如下报错:terminate called after throwing an instance of 'std::runtime_error' what(): Pangolin X11: Unable to retrieve framebuffer options已放弃 (核心已转储)解决在Pangolin/src/display/device/display_x11.cpp文件中,较旧版本:注释掉123和124这两行,即较新原创 2020-08-12 16:00:03 · 3185 阅读 · 6 评论 -
octovisan安装
安装git clone https://github.com/OctoMap/octomapcd octomapgit checkout v1.6.9mkdir buildcd buildcmake ..makesudo make install如果报错...CMakeFiles/octovis.dir/src/ViewerGui.cpp.o: In function `octomap::OcTreeBaseImpl<octomap::ColorOcTreeNode,原创 2020-06-08 09:53:26 · 294 阅读 · 0 评论 -
遇到 E: Unable to acquire the dpkg frontend lock 怎么办???
有时在使用 sudo apt-get install 命令安装软件时,可能报错如下:E: Could not get lock /var/lib/dpkg/lock-frontend - open (11: Resource temporarily unavailable)E: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/l...原创 2020-04-25 18:36:16 · 5537 阅读 · 1 评论 -
"Cannot declare member function ...to have static linkage"解决办法
“如果您在.cc文件中声明了一个静态方法。原因是static在.cc文件中的含义与类声明中的有所不同。这确实很愚蠢,但是关键字static具有三种不同的含义。在.cc文件中,static关键字表示该功能对于该特定文件之外的任何代码均不可见。这意味着您不应该在.cc文件中使用static来定义每个类的方法和变量。幸运的是,您不需要它。在C ++中,不允许使用与实例变量或实例方法同名的静态变量...原创 2020-04-23 09:24:48 · 1226 阅读 · 0 评论 -
如何安装Sophus李代数库
Sophus库有模板类库和非模板类库两个版本,本文选择的是非模板类库。开始使用Sophus库时会碰到下面的错误,说明Sophus没有正确编译。 By not providing "FindSophus.cmake" in CMAKE_MODULE_PATH this project has asked CMake to find a package configuration fil...原创 2020-04-23 09:05:06 · 794 阅读 · 0 评论 -
SDFormat
官方主页http://sdformat.org/specSpecifying pose它是机器人建模的一个基本工具,能够简洁直观地表达模型组件的相对位置和方向。<pose>元素总共接受 6 个数字,以表示从P 到 C 的坐标变换X_PC:<pose>x y z roll pitch yaw</pose>Model kinematics...原创 2020-03-31 17:21:33 · 811 阅读 · 0 评论 -
VSCODE中文显示乱码怎么办?
乱码现象解决办法选择菜单【文件file】 -->【选项Preferences】-->【设置Settings】 -->【搜索Search settings】 "files.autoGuessEncoding" --> 勾选选即可。成功解决...原创 2020-03-24 08:55:06 · 249 阅读 · 0 评论 -
ArUco
ArUco是一个根据预设黑白markers(二维码)来估计相机位姿的开源库。该库由C++编写,运行速度很快。已被应用在了机器人导航、增强现实和目标姿态估计中。 主要特点只需一行C++代码即可实现检测markers 可以检测多种标记,如ARUCO, AprilTag,ArToolKit+,ARTAG,CHILITAGS. 速度很快 少量依赖OpenCV (>=2...原创 2020-03-10 23:34:38 · 635 阅读 · 0 评论 -
对‘cv::initModule_nonfree()’未定义的引用
方法一sudo add-apt-repository --yes ppa:xqms/opencv-nonfreesudo apt-get updatesudo apt-get install libopencv-nonfree-dev方法二在cmake中添加链接库:首先查找链接库路径 find /usr -name libopencv_nonfree.so我的系统显示 ...原创 2020-01-19 09:41:31 · 1220 阅读 · 0 评论 -
C++遍历输出enum枚举类型
enum DAY{ MON, TUE, WED, THU, FRI, SAT, SUN};问题如果使用如下方式来遍历,则编译器会报类型转换失败错误,因为enum类型没有++运算符,也不支持+运算。for(DAY i = MON; i <= SUN; i++){ cout << i &...原创 2019-10-11 18:40:38 · 7383 阅读 · 0 评论 -
C++中map的使用
map是一类关联式容器。自动建立key- value(键值-实值)的对应。key和 value可以是任意你需要的类型。map不允许两个元素拥有相同的key。它的特点是增加和删除节点对迭代器的影响很小,除了那个操作节点,对其他的节点都没有什么影响。对于迭代器来说,可以修改value,而不能修改key。使用方法使用map需要包含map类所在的头文件:#include <ma...原创 2019-10-08 19:03:41 · 1130 阅读 · 0 评论 -
判断任意多边形边界顺时针/逆时针方向
double S = 0;for (int i = 0; i < n - 1; i++) { S += -0.5 * ( y[i + 1] + y[i]) * (x[i + 1] - x[i]);}S += -0.5 * ( y[0] + y[n - 1]) * (x[0] - x[n - 1]);if ( S > 0) cout << "coun...原创 2019-09-26 19:27:08 · 1240 阅读 · 0 评论 -
脚本快速自动安装OpenCV,超级方便!!!
原文:https://github.com/jayrambhia/Install-OpenCVInstall-OpenCVshell scripts to install different version of OpenCV in different distributions of LinuxUbuntuif your system is Ubuntu, run the com...转载 2019-05-30 20:59:26 · 557 阅读 · 0 评论 -
构造函数的定义与重载
构造函数:处理对象的初始化,是一种特殊的成员函数,与其他函数不同,不需要用户来调用它,在建立对象时自动执行。每建立一个对象,就调用一次构造函数;构造函数没有返回值,因此也没有类型,作用只是对对象进行初始化;构造函数不需要被用户调用,也不能被用户调用。构造函数的重载:构造函数具有相同的名字,而参数列表不同(参数的个数或参数类型不相同)。注意:重载函数的参数个数,参数类型或参数顺序...原创 2019-05-29 23:02:52 · 2371 阅读 · 0 评论 -
C/C++结构体初始化与赋值
定义 struct Pos{ double x; double y; double z;};方法一:定义时顺序赋值struct Pos InitPos = {1.0, 2.0, 3.0};方法二:定义后逐个赋值struct Pos InitPos;InitPos.x = 1.0;InitPos.y = 2.0;InitPos.z = ...原创 2019-05-28 21:05:35 · 6408 阅读 · 1 评论 -
Visual Studio Professional 2015 简体中文专业版
Visual Studio Professional 2015 简体中文专业版专业版激活密钥:HMGNV-WCYXV-X7G9W-YCX63-B98R2http://download.microsoft.com/download/B/8/9/B898E46E-CBAE-4045-A8E2-2D33DD36F3C4/vs2015.pro_chs.iso...原创 2019-05-26 10:14:51 · 5342 阅读 · 1 评论 -
`GLIBCXX_3.4.20' not found
问题描述Ubuntu14.04下打开Firefox浏览器报错如下:XPCOMGlueLoad error for file /usr/lib/firefox/libmozsandbox.so:/usr/lib/x86_64-linux-gnu/libstdc++.so.6: version `GLIBCXX_3.4.20' not found (required by /usr/lib/fi...原创 2019-03-26 20:40:47 · 1183 阅读 · 0 评论 -
catkin_make时报错:Could not find the required component 'tf'.
问题描述-- Could not find the required component 'tf'. The following CMake error indicates that you either need to install the package with the same name or change your environment so that it can be fou...原创 2018-12-24 10:47:25 · 4595 阅读 · 2 评论 -
catkin_make时报错:Could not find the required component 'ecl_build'.
问题描述-- Could NOT find ecl_build (missing: ecl_build_DIR)-- Could not find the required component 'ecl_build'. The following CMake error indicates that you either need to install the package with th...原创 2018-12-24 10:43:04 · 1917 阅读 · 0 评论 -
VS(Visual Studio)与VC(Visual C++)版本对应关系
VS全名是Microsoft Visual Studio,是很大的一个开发环境,包含很多高级语言的开发环境,VC只是VS其中的一个开发环境。VC版本与VS版本对应关系如下所示:Visual Studio 6 : vc6 Visual Studio 2003 : vc7 Visual Studio 2005 : vc8 Visual Studio 2008 : vc9 Visual S...原创 2018-08-12 12:12:35 · 2985 阅读 · 0 评论 -
批量卸载系统已安装的补丁
安装更新包,或多或少会影响电脑运行速度。也就是说通常安装的补丁越多,系统的完善性越好,运行速度就会降低一些。有时安装补丁后,由于不兼容而导致了问题不断。所以,有时候我们需要删除卸载之前所有安装的系统更新补丁。如果一个一个手动删除的话,不多还好,我的电脑装了265个补丁这要是一个一个点击删除,非得累死不可。接下来介绍一种批量卸载win7系统更新补丁的方法,可以轻轻松松全部删除卸载。在管理员模式下运行...原创 2018-07-11 22:38:35 · 17836 阅读 · 4 评论 -
怎么阅读大型开源程序?
作者:Fatfat链接:https://www.zhihu.com/question/267458926/answer/325680447来源:知乎著作权归作者所有。商业转载请联系作者获得授权,非商业转载请注明出处。很牛的程序起点并不是各种奇淫技巧,git上那些大型程序庞杂的源代码,正确的做法要去翻它们年代久远如v0.1版本来读读,这些版本通常代码量不多,代码思路简洁,处理问题都很有针对性,这个阶...转载 2018-06-02 14:01:03 · 1011 阅读 · 0 评论 -
C++ 中的预定义宏
__LINE__ :程序编译时包含当前行号;__FILE__ :程序编译时包含当前文件名;__DATE__ :包含一个形式为 month/day/year的字符串,它表示把源文件转换为目标代码的日期;__TIME__ :包含一个形式为 hour:minute:second 的字符串,它表示程序被编译的时间;__FUNCTION__:包含当前运行的函数的函数名。 实例#i...原创 2018-02-09 09:48:24 · 722 阅读 · 0 评论 -
warning LNK4042: 对象被多次指定;已忽略多余的指定 解决办法汇总
warning LNK4042: 对象被多次指定;已忽略多余的指定导致出现error LNK2001: 无法解析的外部符号原创 2017-12-23 13:35:35 · 5700 阅读 · 4 评论 -
优化代码:/O 选项
在使用Visual Studio中,有多种优化选项可供选择:/O 选项控制有助于创建具有最高速度或最小大小的代码的各种优化。/O1 为获得最小大小而优化代码。/O2 为获得最高速度而优化代码。/Ob 控制内联函数展开。/Od 禁用优化,从而加快编译并简化调试。/Og 启用全局优化。/Oi 为适当的函数调用生成内部函数。/Os 通知编译器优选大小优化而非速度优化。/Ot(默认设置)通知编原创 2017-09-04 13:46:31 · 976 阅读 · 0 评论