自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

茄子爱跑步的博客

一叶一菩提,一码一世界。

  • 博客(34)
  • 收藏
  • 关注

原创 ROS 导航包调参

ROS导航包调参指南

2023-02-06 13:46:53 321

原创 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 2628

原创 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 701

原创 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 925 2

原创 C++远征之封装篇(上)

类(抽象)和对象(具体)数据成员(属性)与成员函数(方法)构造函数与虚构函数

2021-04-03 00:47:48 157

原创 c++远征之离港篇

引用:变量的别名控制变化的const函数默认值与函数重载内存管理(出来混,迟早要还的)

2021-04-01 14:51:56 152

原创 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 221

原创 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 7659

原创 激光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 502

原创 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 522

原创 C++基础编程DAY17(day)

37、写一个程序,进行体操评分,依次输入10名评委所评分数,去除一个最高分和一个最低分,再算出平均分作为选手的得分//写一个程序,进行体操评分,依次输入10名评委所评分数,//去除一个最高分和一个最低分,再算出平均分作为选手的得分。#include<iostream>#include<stdlib.h>using namespace std;float g...

2019-12-03 10:52:44 1104

原创 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 501

原创 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 234

原创 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 182

原创 C++基础编程DAY14

30、百钱买百鸡问题:鸡翁一值钱五,鸡母一值钱三,鸡雏三值钱一,百钱买百鸡,问鸡翁、母、雏各几何?//百钱买百鸡问题:鸡翁一值钱五,鸡母一值钱三,//鸡雏三值钱一,百钱买百鸡,问鸡翁、母、雏各几何? #include<iostream>#include<stdlib.h>#include<ctime>using namespace std;/...

2019-11-30 21:58:06 255 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 199

原创 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 165

原创 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 209

原创 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 285

原创 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 234

原创 C++编程基础DAY8

18、编写一个函数,确定一个正数是否为完全数(一个数,等于除他自身以外的所有因子之和)。用这个函数确定和打印1到1000之间的所有完全数。//编写一个函数,确定一个正数是否为完全数(一个数,等于他的因子之和)。//用这个函数确定和打印1到1000之间的所有完全数。#include<iostream>#include<stdlib.h>using namespa...

2019-11-20 23:22:23 210

原创 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 414

原创 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 669

原创 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 202

原创 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 159

原创 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 570

原创 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 836

原创 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 189

原创 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)&gt...

2019-11-15 11:48:20 874

原创 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 225

原创 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 224

原创 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 243

原创 matplotlib 图标重叠 python3.7

在plt.show()前添加plt.tight_layout()

2019-09-09 21:44:27 281

原创 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 2747

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除