上一页 1 ··· 11 12 13 14 15 16 17 18 19 ··· 21 下一页
摘要: 1.初始化 2.string的一些操作 + empty:返回一个布尔值来判断是否非空 + size:返回对象的长度,无符号整形 + 关系运算:== = 80 ) cout 阅读全文
posted @ 2019-09-23 19:49 penuel 阅读(584) 评论(0) 推荐(0) 编辑
摘要: 1.std::mutex类 1.构造函数,std::mutex不允许拷贝构造,也不允许 move 拷贝,最初产生的 mutex 对象是处于 unlocked 状态的。 2.lock(),调用线程将锁住该互斥量。线程调用该函数会发生下面 3 种情况:①如果该互斥量当前没有被锁住,则调用线程将该互斥量锁 阅读全文
posted @ 2019-09-23 11:33 penuel 阅读(400) 评论(0) 推荐(0) 编辑
摘要: 1.先上几个视频网站 1. "英文" 2. "中文" 阅读全文
posted @ 2019-09-23 11:26 penuel 阅读(144) 评论(0) 推荐(0) 编辑
摘要: void function(); void function1(); std::thread t1( function ); //启动一个新线程t1与function关联 std::thread t2 = std::move(t1); //将t1限行的转移给t2 t1 = std::thread( 阅读全文
posted @ 2019-09-04 19:49 penuel 阅读(243) 评论(0) 推荐(0) 编辑
摘要: #include <iostream>#include <thread>#include <windows.h> using namespace std;void switch_ab (int &a, int &b) //参数是引用可更改 //void switch_ab (int &a, int 阅读全文
posted @ 2019-09-04 19:22 penuel 阅读(337) 评论(0) 推荐(0) 编辑
摘要: #include <iostream>#include <thread>#include <unistd.h>void hello(){ while(1) { std::cout << "hello world" << std::endl; for(int i=0;i<999999999;i++); 阅读全文
posted @ 2019-09-04 19:11 penuel 阅读(180) 评论(0) 推荐(0) 编辑
摘要: 工作空间名为catkin_cart 1.安装步骤: https://google-cartographer-ros.readthedocs.io/en/latest/compilation.html 2.按照他的步骤来,会在最后编译的时候出错 3.解决思路。 删除掉之前安装的cere和protobu 阅读全文
posted @ 2019-08-30 11:42 penuel 阅读(785) 评论(0) 推荐(0) 编辑
摘要: 1.主机: sudo /etc/hosts 写入从机的地址和用户名: 192.168.31.14 raspi2 2.从机 sudo /etc/hosts 写入主机的地址和用户名 192.168.31.198 hcx vim ~/.zshrc 写入 export ROS_MASTER_URI=hcx: 阅读全文
posted @ 2019-08-28 17:24 penuel 阅读(393) 评论(0) 推荐(0) 编辑
摘要: 1.sudo vim /usr/share/lightdm/lightdm.conf.d/60-lightdm-gtk-greeter.conf 2.添加autologin-user=yourusername 阅读全文
posted @ 2019-08-27 16:20 penuel 阅读(1121) 评论(0) 推荐(0) 编辑
摘要: 1.打开树莓派配置 2.选择 localisation options 3.选择 change Timezone,在里面选择亚洲ASIAN,里面选择地址,我选的上海 4.选择change wi-fi country,选择中国 阅读全文
posted @ 2019-08-27 09:18 penuel 阅读(2001) 评论(0) 推荐(0) 编辑
上一页 1 ··· 11 12 13 14 15 16 17 18 19 ··· 21 下一页