上一页 1 2 3 4 5 6 ··· 11 下一页
摘要: 1。依赖倒置原则(DIP) 高层模块(稳定)不应该依赖于底层模块(变化),二者都应该依赖于抽象(稳定) 抽象(稳定)不应该依赖于实现细节(变化),实现细节应该依赖于抽象(稳定) 2.开放封闭原则(OCP) 对扩展开放,对更改封闭 类模块应该是可扩展的,但是不可修改(在需求变化时,类模块应根据需求进行 阅读全文
posted @ 2021-01-30 23:16 miaorn 阅读(60) 评论(0) 推荐(0) 编辑
摘要: 首先安装好kinect2的驱动https://github.com/code-iai/iai_kinect2 并标定好,标定的样本图片越多越好 在工作空间git clone https://github.com/raulmur/ORB_SLAM2 cd catkin_ws/src/ORB_SLAM2 阅读全文
posted @ 2021-01-28 22:18 miaorn 阅读(256) 评论(0) 推荐(0) 编辑
摘要: [ERROR] [1611831985.981080848]: Failed to load nodelet [/cmd_vel_mux] of type [yocs_cmd_vel_mux/CmdVelMuxNodelet] even after refreshing the cache: Acc 阅读全文
posted @ 2021-01-28 19:12 miaorn 阅读(758) 评论(0) 推荐(0) 编辑
摘要: error: ‘usleep’ was not declared in this scope usleep(mT*1000); ^~~~~~ /home/miao/catkin_ws/src/ORB_SLAM2/Examples/ROS/ORB_SLAM2/src/AR/ViewerAR.cc:23 阅读全文
posted @ 2021-01-28 16:43 miaorn 阅读(383) 评论(0) 推荐(0) 编辑
摘要: 环境: ubuntu18.04 melodic opencv4.5 标定时 rosrun kinect2_calibration kinect2_calibration chess5x7x0.03 record color 出现错误 Gtk-ERROR **: GTK+ 2.x symbols de 阅读全文
posted @ 2021-01-22 20:43 miaorn 阅读(242) 评论(0) 推荐(0) 编辑
摘要: 在.h文件中必须同时有模板的声明和明确的定义,不能在.cpp中却定义。 1 #ifndef STACKTP_H_ 2 #define STACKTP_H_ 3 template <class Type, int MAX> 4 class Stack 5 { 6 private: 7 Type ite 阅读全文
posted @ 2021-01-09 12:22 miaorn 阅读(116) 评论(0) 推荐(0) 编辑
摘要: tab补全 1 function! CleverTab() 2 if strpart( getline('.') ,0,col('.')-1) =~'^\s*$' 3 return "\<Tab>" 4 else 5 return "\<C-N>" 6 endif 7 endfunction 8 i 阅读全文
posted @ 2021-01-08 20:22 miaorn 阅读(268) 评论(0) 推荐(0) 编辑
摘要: #include <iostream> using namespace std; class Time; class Time { friend ostream& operator << (ostream &os, const Time &t); friend Time operator + (co 阅读全文
posted @ 2021-01-06 22:43 miaorn 阅读(442) 评论(0) 推荐(0) 编辑
摘要: 运算符% a一般用于整形之间使用,而对于浮点数需要使用函数 fmodf用于float型变量操作 fmod用于double型变量操作 modl用于long double型变量操作 这里使用fmod(), 下面示例从键盘获得一个整形范围的数并且需要输入 整形数据 #include <iostream> 阅读全文
posted @ 2021-01-03 12:00 miaorn 阅读(5368) 评论(0) 推荐(0) 编辑
摘要: https://github.com/OpenKinect/libfreenect2 opencv4.5 首先安装依赖 安装工具 sudo apt-get install build-essential cmake pkg-config 安装libusb sudo apt-get install l 阅读全文
posted @ 2021-01-01 15:30 miaorn 阅读(1194) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 ··· 11 下一页