博客地址:http://home.cnblogs.com/u/zengjianrong/
上一页 1 2 3 4 5 6 7 8 9 ··· 13 下一页
该文被密码保护。 阅读全文
posted @ 2021-01-04 15:14 black_man 阅读(0) 评论(0) 推荐(0) 编辑
摘要: header #include <iostream> #include <memory> // interface (widget.h) class widget { class impl; std::unique_ptr<impl> pImpl; public: void draw() const 阅读全文
posted @ 2020-12-28 19:58 black_man 阅读(146) 评论(0) 推荐(0) 编辑
摘要: 默认构造,析构 拷贝构造,移动构造 拷贝赋值,移动赋值 取值 右值引用 其它 基类的析构函数应使用virtual 关键字,保证子类的析构函数能够被正常调用 作为接口类,如果不是基类,应该用final关键字 1 // g++ testClass.cc -g -std=c++11 && ./a.out 阅读全文
posted @ 2020-08-27 20:50 black_man 阅读(166) 评论(0) 推荐(0) 编辑
摘要: 去除最顶层Makefile的-Os/-O2, 替换为-O0 替换include/linux/complier.h中:避免缺乏了编译预判后,编译时的报错被触发。 #if 1 //zjr #define __compiletime_assert(condition, msg, prefix, suffi 阅读全文
posted @ 2020-06-08 02:15 black_man 阅读(681) 评论(0) 推荐(0) 编辑
摘要: ubuntu的软件源依赖关系很复杂,可以通过aptitude 替换 apt ,自动提供依赖问题解决方案; vmware tools 安装 CD ROOM添加一个linux.iso 解压 sudo 执行 vmware*.pl 中文输入法:ibus pinyin shared dir sudo vmhg 阅读全文
posted @ 2020-05-07 00:39 black_man 阅读(159) 评论(0) 推荐(0) 编辑
摘要: rosdep update 失败:read operation time out 先执行sudo apt update xxx 阅读全文
posted @ 2020-05-06 00:05 black_man 阅读(123) 评论(0) 推荐(0) 编辑
摘要: 22 sudo rosdep init #失败 23 sudo -E rosdep init #查看错误 24 ls 25 wget https://raw.githubusercontent.com/ros/rosdistro/master/rosdep/sources.list.d/20-def 阅读全文
posted @ 2020-05-03 10:14 black_man 阅读(357) 评论(0) 推荐(0) 编辑
摘要: 在main函数结束时,或者收到signal,在signal处理函数中调用exit退出时,希望在退出前做一些资源释放的工作,则可以使用atexit注册回调; 需要注意的是,全局的资源系统会主动释放(调用析构函数),但有些线程如果在while循环中无法退出,则系统不会主动释放; 此时atexit就可以发 阅读全文
posted @ 2020-04-06 11:26 black_man 阅读(231) 评论(0) 推荐(0) 编辑
摘要: https://github.com/xigang/mcast 阅读全文
posted @ 2020-04-01 19:44 black_man 阅读(148) 评论(0) 推荐(0) 编辑
摘要: 安装中文包:sudo apt install language-pack-zh-han* language-pack-gnome-zh-han* 安装ibus:sudo apt install ibus ibus-clutter ibus-gtk ibus-gtk3 ibus-qt4 切换到ibus 阅读全文
posted @ 2020-02-13 20:11 black_man 阅读(440) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 9 ··· 13 下一页