- 博客(34)
- 收藏
- 关注
原创 win10 + vs2019 + opencv-3.4.2 + opencv-contrib-3.4.2
win10 vs2019 opencv-3.4.2 opencv-contrib-3.4.2
2022-02-10 23:28:10
2727
原创 Ubuntu16.04扩容/home
本人的装的win7、Ubuntu16.04双系统,之前给/home分配了15G,现在快满了,开机就提示/home容量不足,于是开始找方法扩容。使用的是gparted软件(没有gparted的先安装)。步骤如下:①重启选择高级选项,进入recovery mode;②选择root模式,输入你的root密码(忘记root密码的可重启正常进入Ubuntu使用sudo passwd root进行设置,然后重复步骤①②);③卸载/home,使用指令umount /home;④输入指令startx进入x wi
2021-06-28 15:08:14
783
原创 Cartographer——带Landmark的demo的运行和测试
Cartographer——带Landmark的demo的运行和测试参考https://zhuanlan.zhihu.com/p/50511558数据包链接:https://pan.baidu.com/s/1SkIUa-zoS_SBhUNmCvmRpw提取码:275s本人在启动launch文件之后程序正常运行,没有出现参考文章中博主的错误提示,猜测可能是后续更新了代码。结果如图所示。约束太多,我取消勾选,就没显示出来。landmark_pose_list是图中的小圆点,那些带坐标系的位姿是什么
2021-06-25 17:02:27
1194
3
原创 C++远征之起航篇
c++诞生地:贝尔实验室c++之父:贾尼·斯特劳斯特卢普c++与c关系1、c++从c的基础上发展而来2、c面向过程,c++面向过程、面向对象c++基本知识1、新的数据类型bool编程语言数据类型bool10c没提供非00c++booltruefalsebool flag = false;if(flag){ //do}好处:简洁、易读,常用于条件判断。2、新的初始化方式:直接初始化int x(1024);好处:可以让程序更高效(具
2021-03-31 15:51:48
270
原创 4.1 使用Python获取网页源代码
1)第三方库的安装a.在线安装pip install 第三方库名b.本地安装下载对应版本的.whl文件,然后cd到文件目录下,通过pip install xxx.whl2)使用requests获取网页源代码a. GET方式import requestshtml = requests.get('网址')#得到一个Response对象html_bytes = html.content#属性.content用来显示bytes型网页的源代码html_str = html_bytes.dec
2021-03-30 22:33:53
7958
原创 激光SLAM学习笔记(一)
位姿表示与旋转矩阵作业#include <iostream>#include <Eigen/Core>#include <Eigen/Geometry>using namespace std;int main(int argc, char** argv){ // 机器人B在坐标系O中的坐标: Eigen::Vector3d B...
2019-12-10 11:25:33
573
原创 C++基础编程DAY18
45、写一函数,在一数组里查找某个值//写一函数,在一数组里查找某个值#include<iostream>#include<stdlib.h>using namespace std;int Search(int a[], int n, int key){ int i; for(i=0; i<n; i++) { if(a[i]==key) ...
2019-12-05 20:43:02
579
原创 C++基础编程DAY17(day)
37、写一个程序,进行体操评分,依次输入10名评委所评分数,去除一个最高分和一个最低分,再算出平均分作为选手的得分//写一个程序,进行体操评分,依次输入10名评委所评分数,//去除一个最高分和一个最低分,再算出平均分作为选手的得分。#include<iostream>#include<stdlib.h>using namespace std;float g...
2019-12-03 10:52:44
1283
原创 C++基础编程DAY16(day)
35、掷骰子10000次,统计得到各点数的次数//掷骰子10000次,统计得到各点数的次数#include<iostream>#include<stdlib.h>#include<time.h>using namespace std;/* 获得随机数1-6 */int get_randomNO(){ //int a; //a = rand...
2019-12-02 14:13:16
611
原创 C++基础编程DAY15(night)
33、打印杨辉三角(帕斯卡三角形),打印10行//打印杨辉三角(帕斯卡三角形),打印10行#include<iostream>#include<stdlib.h>#include<iomanip>using namespace std;/* 求n的阶乘 *///int f1(int n)//{// int s=1;// for(int ...
2019-12-01 22:04:16
273
原创 C++基础编程DAY15
31、输入一行字符串,统计其中英文小写字符的个数//输入一行字符串,统计其中英文小写字符的个数#include<iostream>#include<stdlib.h>#include<string>using namespace std;int count_lowercase(string str){ int count=0; for(i...
2019-12-01 15:57:07
246
原创 C++基础编程DAY14
30、百钱买百鸡问题:鸡翁一值钱五,鸡母一值钱三,鸡雏三值钱一,百钱买百鸡,问鸡翁、母、雏各几何?//百钱买百鸡问题:鸡翁一值钱五,鸡母一值钱三,//鸡雏三值钱一,百钱买百鸡,问鸡翁、母、雏各几何? #include<iostream>#include<stdlib.h>#include<ctime>using namespace std;/...
2019-11-30 21:58:06
318
1
原创 C++基础编程DAY13
27、写一个函数,交换两个整形变量的值//写一个函数,交换两个整形变量的值#include<iostream>#include<stdlib.h>using namespace std;int swap1(int x, int y){ int t; t = x; x = y; y = t; cout << x << ",...
2019-11-30 19:45:05
268
原创 C++基础编程DAY12
25、用筛法求1-1000以为的素数用筛法求素数的基本思想链接//用筛法求1-1000以为的素数#include<iostream>#include<iomanip>#include<stdlib.h>#include<math.h>using namespace std;bool isprime(int n){ float...
2019-11-28 16:00:35
224
原创 C++基础编程DAY11
23、求一个整数各位数之和的函数//求一个整数各位数之和的函数#include<iostream>#include<stdlib.h>using namespace std;int getSum(int n){ int sum = 0; while(n) { sum = sum + n%10; n = n/10; } return sum...
2019-11-25 09:55:26
250
原创 C++基础编程DAY10
21、写一个函数,将一个整数的各位数字的反序打印//写一个函数,将一个整数的各位数字的反序打印#include<iostream>#include<stdlib.h>using namespace std;//int reverse_out(int n)//{// while(n)// {// cout << n%10 << ...
2019-11-23 12:11:35
339
原创 C++基础编程DAY9
20、写一个函数,取一个整数值并返回此整数的各数字反序的数值//写一个函数,取一个整数值并返回此整数的各数字反序的数值#include<iostream>#include<stdint.h>using namespace std;//int reverse_m1(int x)//{// int y;// if(x>0 && x&l...
2019-11-21 20:38:04
306
原创 C++编程基础DAY8
18、编写一个函数,确定一个正数是否为完全数(一个数,等于除他自身以外的所有因子之和)。用这个函数确定和打印1到1000之间的所有完全数。//编写一个函数,确定一个正数是否为完全数(一个数,等于他的因子之和)。//用这个函数确定和打印1到1000之间的所有完全数。#include<iostream>#include<stdlib.h>using namespa...
2019-11-20 23:22:23
266
原创 C++基础编程DAY7(night)
16、写一函数,计算x的y次方,假设x, y都为正整数//写一函数,计算x的y次方,假设x, y都为正整数#include<iostream>#include<stdlib.h>using namespace std;int fun(int x, int y){ int a = 1; for(int i=0; i<y; i++) { a *...
2019-11-19 20:16:40
716
原创 C++基础编程DAY7(day)
输入20个数,统计其中正数、负数和零的个数我的代码//输入20个数,统计其中正数、负数和零的个数#include<iostream>#include<stdlib.h>using namespace std;int count_xyz(){ int a[10] = {0}; int x=0, y=0, z=0; for(int i=0; i<...
2019-11-19 11:53:41
802
原创 C++基础编程DAY6
求PI值,PI/4 = 1 - 1/3 + 1/5 - 1/7 + ……我的代码//求PI值,PI/4 = 1 - 1/3 + 1/5 - 1/7 + ……#include<iostream>#include<stdlib.h>#include<math.h>using namespace std;//double get_PI(int n)...
2019-11-18 15:33:14
260
原创 C++基础编程DAY5(day)
一、求和:S = 1!+2!+3!+……+10!我的代码//求和:S = 1!+2!+3!+……+10!#include<iostream>#include<stdlib.h>using namespace std;int getSum(int n){ int fac = 1, sum = 0; for(int i=1; i<(n+1); i++...
2019-11-17 12:04:21
197
原创 C++基础编程DAY4(night)
求和:s = 1x1 + 2x2 + 3x3 + … + 100x100求和:s = 1 + 2 + 2² + 2³ + …… + 2的63次方我的代码//求和:s = 1*1 + 2*2 + 3*3 + ... + 100*100//印度国王的奖励,求和:s = 1 + 2 + 2² + 2³ + …… + 2的63次方#include<iostream>#include...
2019-11-16 21:51:10
673
原创 C++基础编程DAY4(day)
要求:输入若干个数,设输入的第一个数为后面要输入的数的个数,求最大值和平均值我的代码//要求:输入若干个数,设输入的第一个数为后面要输入的数的个数,求最大值和平均值#include<iostream>#include<stdlib.h>using namespace std;int getMax(int *arr, int n){ int temp;...
2019-11-16 11:02:56
947
原创 C++基础编程DAY3(night)
要求:输入10个数,求最大值,最小值和平均值我的代码#include<iostream>#include<stdlib.h>using namespace std;int getMax(int *arr){ int temp; temp = *arr; //cout << temp << endl; for(int i=1; ...
2019-11-15 21:38:53
253
原创 C++基础编程DAY3(day)
要求:输入三个double类型的值,判断这三个值是否可以表示三角形的三条边我的代码#include<iostream>#include<stdlib.h>using namespace std;int ifTriangle(double a, double b, double c){ if(((a+b)>c) && ((a+c)>...
2019-11-15 11:48:20
991
原创 C++基础编程DAY2(night)
要求:输入一个成绩,打印相应的等级我的代码//输入一个成绩,打印相应的等级#include<iostream>#include<stdlib.h>#include<string>using namespace std;//int PrintLevel(int score)//{// int temp;// switch(temp = s...
2019-11-14 19:53:08
270
原创 C++基础编程DAY2(day)
求方程ax²+bx+c=0的根我的代码//求方程ax²+bx+c=0的根#include<iostream>#include<stdlib.h>#include<math.h>using namespace std;double fun(int a, int b, int c){ double temp, x, x1 = 0, x2 = ...
2019-11-14 11:53:53
269
原创 C++基础编程DAY1
要求:输入三个数,求最大值我的代码:#include<iostream>#include<stdlib.h>using namespace std;int getMax(int x, int y, int z){ int temp; if(x > y && x>z) { temp = x; } if(y>x &a...
2019-11-13 10:40:02
308
原创 ubuntu同时使用有线和无线
ubuntu16.04 有线连接倍加福r2000激光雷达 无线连接外网倍加福IP设置参考倍加福使用说明,本人采用固定ip,倍加福默认ip:10.0.10.9,子网掩码:255.0.0.0,ubuntu本地连接设置,设置手动ip,ip:10.0.10.10,子网掩码:255.0.0.0,网关:10.0.10.9由于有线和无线不能同时连接,本地连接倍加福激光雷达时wifi就断了,解决方法是...
2019-05-24 11:44:19
2920
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人