2020年8月21日

找出数组中只出现一次的唯一值

摘要: // Example program #include <iostream> #include <string> int main() { int a[9] = {109,239,3432,8981,-7,109,239,3432,8981}; int ans = 0; for(auto t : a 阅读全文

posted @ 2020-08-21 15:26 庭中核桃树 阅读(234) 评论(0) 推荐(0) 编辑

2020年8月20日

没有中间变量的值交换

摘要: // Example program #include <iostream> #include <string> void swap(int & a, int & b) { a ^= b ^= a ^= b; } int main() { int a = 10; int b = 100; swap( 阅读全文

posted @ 2020-08-20 17:23 庭中核桃树 阅读(118) 评论(0) 推荐(0) 编辑

std::vector<bool> 的要点

摘要: #include <iostream> #include <vector> #include <memory.h> #include <stdio.h> int main() { int size_v = 10; std::vector<int> tmp(5, 0); int * tmp_pt = 阅读全文

posted @ 2020-08-20 09:03 庭中核桃树 阅读(474) 评论(0) 推荐(0) 编辑

2020年8月13日

C++ const 关键字修饰常量

摘要: // Example program #include <iostream> #include <string> int main() { char hello[] = "helloworld!"; int tmp = 6; int other = 7; const int * a = &tmp; 阅读全文

posted @ 2020-08-13 22:18 庭中核桃树 阅读(195) 评论(0) 推荐(0) 编辑

2020年8月11日

OpenCV getRotationMatrix2D 函数

摘要: cv::Mat cv::getRotationMatrix2D( Point2f center, double angle, double scale ) { CV_INSTRUMENT_REGION(); angle *= CV_PI/180; double alpha = std::cos(an 阅读全文

posted @ 2020-08-11 15:12 庭中核桃树 阅读(638) 评论(0) 推荐(0) 编辑

2020年8月7日

OpenCV Mat 类型定义详解

摘要: #define CV_8U 0 #define CV_8S 1 #define CV_16U 2 #define CV_16S 3 #define CV_32S 4 #define CV_32F 5 #define CV_64F 6 #define CV_USRTYPE1 7 #define CV_ 阅读全文

posted @ 2020-08-07 17:14 庭中核桃树 阅读(553) 评论(0) 推荐(0) 编辑

2020年7月29日

ubuntu nvidia显卡切换

摘要: 笔记本是双显卡 intel+navida 刚开始时 sudo ubuntu-drivers autoinstall 装好驱动,外置显示器显示正常,后来重启后死活不显示 查了一天的资料,终于找到答案了 https://askubuntu.com/a/1134579 原因是切换过 intel 显卡,变成 阅读全文

posted @ 2020-07-29 15:30 庭中核桃树 阅读(524) 评论(0) 推荐(0) 编辑

2020年7月21日

Docker 使用 aliyun 镜像加速

摘要: 登录阿里云获取加速器地址 https://cr.console.aliyun.com/cn-hangzhou/instances/mirrors 创建配置文件 sudo mkdir -p /etc/docker sudo tee /etc/docker/daemon.json <<-'EOF' { 阅读全文

posted @ 2020-07-21 10:51 庭中核桃树 阅读(427) 评论(0) 推荐(0) 编辑

2020年4月21日

Lidar Camera fusion slam

摘要: Enhanced Visual Loop Closing for Laser Based SLAM 文章通过融合3D Lidar 的 LOAM 方法与ORB SLAM的回环检测方法,提升了LOAM的建图效果,主要思想是: ( 点云匹配-》关键帧检测-》点云投影-》ORB特征3D位姿提取,计算相对位姿 阅读全文

posted @ 2020-04-21 16:46 庭中核桃树 阅读(606) 评论(0) 推荐(0) 编辑

2020年3月24日

修复ROS安装包依赖错误问题

摘要: ```sh sudo dpkg -i --force-overwrite sudo dpkg -i --force-overwrite /var/cache/apt/archives/python-problem-report_2.0.1-0ubuntu9_all.deb ``` 阅读全文

posted @ 2020-03-24 14:25 庭中核桃树 阅读(600) 评论(0) 推荐(0) 编辑

导航