c++
haha074
这个作者很懒,什么都没留下…
展开
-
常用数据类型 位数
注:编译运行环境 gcc 、64 bit linux总结: unsigned char 8 bit 0-255 CV_8U char 8 bit -128-127 unsigned short 16 bit 0-65535 CV_16U short 16 bit -32768-32767 (0-2^15...原创 2018-09-05 14:43:14 · 1637 阅读 · 0 评论 -
配置读取类 示例
from Kintinuous c++配置读取类 示例 注:仅适用于应用了PCL 的工程,无PCL ,可直接读取argv值判断 #ifndef CONFIGARGS_H_#define CONFIGARGS_H_#include <unistd.h>#include <cassert>#include <string>#in...原创 2018-12-13 10:42:16 · 383 阅读 · 0 评论 -
readlink 读取当前路径 linux
使用readlink读取当前程序执行路径 linux中 符号链接 /proc/self/exe 为当前执行路径的值 #include"unistd.h"#include"string.h"using namespace std;int main(int argc,char **argv){ char buf[512]; int length =readlink("/...原创 2018-12-13 10:34:32 · 645 阅读 · 0 评论 -
.cmake 文件编写示例
from http://people.csail.mit.edu/kaess/isam/ ################################################################################ Find iSAM## This sets the following variables:# ISAM_FOUND - Tru...原创 2018-12-13 08:29:22 · 3013 阅读 · 0 评论 -
flann error
error:/usr/include/flann/util/serialization.h:18:9: error: ‘class std::unordered_map<unsigned int, std::vector<unsigned int> >’ has no member named ‘serialize’ solution: ...原创 2018-11-23 10:04:42 · 3066 阅读 · 7 评论 -
libpoint_cloud_odometry.so:undefined reference to pclsearch::KdTree<pclPointXYZ>
编译blam遇到这个错误:/blam-master/internal/devel/lib/libpoint_cloud_odometry.so: undefined reference to `pcl::search::KdTree<pcl::PointXYZ>::nearestKSearch(pcl::PointXYZ const&, int, std...原创 2018-11-06 14:13:24 · 722 阅读 · 1 评论 -
error: undefined reference to symbol '_ZN5boost6system15system_categoryEv
使用boost时遇到下面error: cmake version : 3.5.1/usr/bin/ld: CMakeFiles/RGBD.dir/src/ros_rgbd.cc.o: undefined reference to symbol '_ZN5boost6system15system_categoryEv'/usr/lib/x86_64-linux-gnu/lib...原创 2018-09-20 13:51:49 · 5346 阅读 · 2 评论 -
Argus camera API
1、 JETPACK CAMERA API: LIBARGUSAdvantage:Open StandardCross PlatformLow-level control of camera subsystemFrame-based capture controlMetadata output for frame statisticsMulti-stream, multi-cam...原创 2018-09-19 13:42:06 · 1724 阅读 · 1 评论 -
linux 下sleep 和 usleep 函数 及 求数组大小
1、linux下#include <unistd.h>int usleep(useconds_t usec);unsigned int sleep(unsigned int seconds);注意:Windows下单位不同 sleep参数是uint,不能写小数,如sleep(0.5)==sleep(0) 2、求数组大小int a[12]={0};int...原创 2018-09-07 15:52:49 · 379 阅读 · 0 评论 -
c++ 计时 chrono
#ifdef COMPILEDWITHC11 std::chrono::steady_clock::time_point t1 = std::chrono::steady_clock::now();#else std::chrono::monotonic_clock::time_point t1 = std::chrono::monotonic_clock::n...原创 2019-06-03 19:33:53 · 695 阅读 · 0 评论