- 博客(22)
- 资源 (32)
- 收藏
- 关注
原创 C++给文件每行前面加行号
#include#include#include#includeusing namespace std;int main(){ifstream in(“DATA5612.CPP”);//读文件ofstream out(“DATA5612.TXT”);//写入文件string line;int lineNumber = 1;while(getline(in,line)){o...
2018-10-10 11:57:34
5648
1
原创 二分法应用
检测整数 n 是否是 2 的幂次。class Solution {public: /** * @param n: An integer * @return: True or false */ bool checkPowerOf2(int n) { // write your code here if(n==1)ret...
2018-10-09 10:49:40
397
原创 jupyter notebook出问题,重装方法
For Python 2sudo pip install --upgrade --force-reinstall --no-cache-dir jupyterFor Python 3sudo pip3 install --upgrade --force-reinstall --no-cache-dir jupyter这应该重新安装PyPi中的所有内容。这应该解决这个问题,...
2018-10-04 15:45:14
9482
原创 orbslam2段错误 (核心已转储)
rosrun ORB_SLAM2 Mono /home/qinhaidong/SLAM/src/ORB_SLAM2/Vocabulary/ORBvoc.txt /home/qinhaidong/SLAM/src/ORB_SLAM2/Examples/Monocular/TUM1.yamlrosrun ORB_SLAM2 Mono /home/qinhaidong/SLAM/src/ORB_SLA...
2018-10-01 21:44:05
9260
15
原创 #No module named rospkg
Ubuntu16.04下安装好ros而且第一次运行成功了,过几天运行就有问题报错 No module named rospkg。原因很简单:你的Python环境改为2.7就行了!sudo update-alternatives --config python...
2018-10-01 15:25:52
1519
2
原创 Ubuntu 16.04 ORB_SLAM2+ROS+ORB-SLAM配置
ORB-SLAM2是不完全依赖ROS的,它有两个编译选项,对应两个脚本文件build.sh和build_ros.sh。编译前者你只能跑一些数据集,当然有能力的改改源码也是可以跑自己的设备的;编译后者则可以利用ROS很方便地接入自己的设备。ORB-SLAM2支持Monocular、Stereo、RGB-D相机。ORB-SLAM1是依赖于ROS运行的,安装可以遵循https://github.com...
2018-09-29 21:56:05
7810
2
原创 #无法运行roscore
解决办法:gedit ~/.bashrc在打开的文档最后加上export ROS_HOSTNAME=localhostexport ROS_MASTER_URI=http://localhost:11311保存即可检验是否成功方法(1)启动ROS MASTER:roscore 显示 started core service [/rosout](2)重新打开一个终端,我...
2018-09-29 12:26:39
4545
1
转载 #Eigen库安装指南(注意事项)
1、apt-get方式(假设默认安装到/usr/local/include里(可在终端中输入locate eigen3查看位置),若实际中默认安装到了/usr/include的话,可以对应替换下面命令的相应部分)运行命令:sudo apt-get install libeigen3-dev运行命令:(参考第二种方法的最下面的说明)sudo cp -r /usr/local/include/...
2018-09-23 10:29:52
1483
转载 ubuntu不能访问windows中的文件解决办法
ubuntu不能访问windows中的文件出现不能访问某个盘时(例如:OS)Error mounting /dev/sda5 at /media/user/OS: Command-line `mount -t “ntfs” -o “uhelper=udisks2,nodev,nosuid,uid=1000,gid=1000,dmask=0077,fmask=0177” “/dev/sda5” ...
2018-09-22 12:10:01
2676
1
原创 #g2o安装ubuntu16.04方法
#g2o安装ubuntu16.04方法1.git clone https://github.com/RainerKuemmerle/g2o.git2 安装依赖项https://github.com/RainerKuemmerle/g2o已经写出来要安装的依赖了,github在不断更新,而博客不会,所以参考githubsudo apt-get libeigen3-devlibsuitesp...
2018-09-21 21:48:10
6907
2
原创 吴恩达lr_utils解决办法
Remember to extract dataset when you download it and you have to put dataset folder and “lr_utils.py” in the same folder as your python script that is using it (script with this line “import lr_utils”...
2018-09-14 10:08:39
12699
14
原创 C++ 错误分析Segmentation fault (core dumped)之vector的错误赋值方法
初学C++的程序猿可能会觉得vector的下标操作能够加入元素,事实上不然:vector<int> ivec; // empty vectorfor (vector<int>::size_type ix = 0; ix != 10; ++ix) ivec[ix] = ix; // disaster: ivec has no elements上述程...
2018-09-10 23:27:01
5353
原创 Ubuntu上使用Codeblocks遇到的一些问题及解决方法
build log显示: ————– Build: Debug in train1 (compiler: GNU GCC Compiler)—————gcc -Wall -g -c /home/kkk/桌面/Cfile/train1/main.c -o obj/Debug/main.o g++ -o bin/Debug/train1 obj/Debug/main.o g++: error...
2018-09-09 17:35:47
1465
转载 ubuntu16.04安装qq(您的号码暂时不能使用低版本的QQ的解决办法)
1、首先安装winesudo apt-get install wine 输入“y”,然后回车,出现如下画面时,留言文字到最后,通过tab键,切换至“确定”,回车继续。 2、下载QQ打开网址Wine QQ,下载wineQQ。在安装之前,首先需要将下载的文件解压,解压缩我喜欢使用unarsudo apt-get install unar 进入文件下载目录,解压并安装。unar wine-qqin...
2018-09-09 16:53:29
1650
转载 最大子数组的三种时间复杂度小的解法
给出数组[−2,2,−3,4,−1,2,1,−5,3],符合要求的子数组为[4,−1,2,1],其最大和为6class Solution {public: * @param nums: A list of integers * @return: A integer indicate the sum of max subarray */ int maxS...
2018-09-07 14:54:41
613
转载 平面列表 递归方法
平面列表给定一个列表,该列表中的每个要素要么是个列表,要么是整数。将其变成一个只包含整数的简单列表。样例给定 [1,2,[1,2]],返回 [1,2,1,2]。给定 [4,[3,[2,[1]]]],返回 [4,3,2,1]。挑战请用非递归方法尝试解答这道题。注意事项如果给定的列表中的要素本身也是一个列表,那么它也可以包含列表。class Solution {p...
2018-09-06 11:33:05
204
原创 比较字符串是否相等
strcmp 是用来比较两个C字符串(即char数组),参数类型都是char*。 比较两个string类型变量是否相等,不需要用strcmp,直接用==就可以了。
2018-09-06 10:19:17
479
转载 如何往一个不定大小的vector中输入数字?
include include using namespace std; int main() { vector vec; int temp=0; cout << “输入整数,以任意字母结束:” << endl; while(cin >> temp&&temp>0) //如果不确定输入数字个数,可以用这种方式,当输入...
2018-09-05 15:36:25
1680
原创 debug心得
addWeighted函数 void addWeighted(InputArray src1, double alpha, InputArray src2, double beta, double gamma, OutputArray dst, int dtype=-1) 第一个参数,InputArray类型的src1,表示需要加权的第一个数组,常常填一个Mat。 第二个参数,alpha,...
2018-08-26 22:10:41
271
原创 stderr/stdout用法
【unix】标准输出(设备)文件,对应终端的屏幕。进程将从标准输入文件中得到输入数据,将正常输出数据输出到标准输出文件,而将错误信息送到标准错误文件中。在C中,程序执行时,一直处于开启状态。 与其有关的 stdin、stdout……可能的使用方法有:fprintf(stderr,”error message”) stderr – 标准错误输出设备 stdout – 标准输出设备 (pri...
2018-08-26 17:30:55
2095
吴恩达老师深度学习课程(deeplearning.ai) 视频笔记Deeplearning_AndrewNg_v5.42.pdf
2020-01-16
深度学习与视觉slam.pdf
2020-10-16
Python-Multiple-Image-Stitching-master.zip(Python 多图像拼接源码)
2019-08-22
基于深度学习Superpoint 的Python图像全景拼接(Python2)
2019-08-29
TUM SLAM单目数据集https://vision.in.tum.de/mono-dataset 的sequence_14.zip
2019-11-11
西北工业大学软件学院算法分析与设计作业打包合集.rar
2020-10-16
slam十四讲第13章 单目稠密重建数据集(http://rpg.ifi.uzh.ch/datasets/remode_test_data.zip)
2019-09-30
NVIDIA-Linux-x86_64-410.57.run 英伟达显卡驱动(Linux)
2019-08-22
pytorch-初学者教程(源码).zip
2019-08-26
slam14讲,ch13单目数据集 depthmaps.rar
2019-10-14
windows10笔记本显卡驱动456.71-notebook-win10-64bit-international-nsd-dch-whql.exe
2020-10-24
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅