自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(40)
  • 收藏
  • 关注

原创 TX1/2 linux 设置交换空间 记录

TX1等当内存不足时会出现 internal compile error设置交换空间free -m //查看内存sudo mkdir /swapcd /swapsudo dd if=/dev/zero of=swap bs=1M count=8k //size=bs*countsudo mkswap swapsudo swapon swapwatch -n 1 free -msudo swapoff swap //关闭交换空间 ...

2020-05-26 21:36:20 232

原创 PCD格式保存

#coding:utf-8import timefilename="1.txt"print ("the input file name is:%r." %filename)start = time.time()print ("open the file...")file = open(filename,"r+")count = 0for line in file: c...

2019-07-29 16:24:23 670

原创 python 文件操作记录

#!/usr/bin/env python# coding=utf-8import osimport shutildef getimagepath(path): file=open(path) data=file.read() lines=data.replace(',',' ').replace('\t',' ').split('\n') lines...

2019-07-10 16:29:26 414

原创 opencv 记录: cv::mat eigen 转换

#include"iostream"#include"stdlib.h"#include"eigen3/Eigen/Dense"#include"opencv2/core/core.hpp"#include"opencv2/core/eigen.hpp"int main(int argc,char **argv){ cv::Mat rr; rr=(cv::Mat_&...

2019-07-08 15:37:38 1464

转载 3个方法解决百度网盘限速

转载自 <作者:奔跑中的奶酪 , 原文链接:https://www.runningcheese.com/baiduyun > 3个方法解决百度网盘限速 (2019-06-20 更新) 3个方法解决百度网盘限速 (2019-06-20 更新) ...

2019-06-22 15:48:47 17130 4

原创 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 685

原创 caffe 编译错误:too few argument in function call

error log:caffe/include/caffe/util/cudnn.hpp(112): error: too few arguments in function callcudnn版本问题,解决:添加判断,不同版本参数不同#if CUDNN_VERSION_MIN(6, 0, 0) CUDNN_CHECK(cudnnSetConvolution2dDescr...

2019-05-05 16:37:16 2154

原创 python pip 小记

使用sudo权限sudo -H  [   ]python命令 为符号软连接,可指向python2或3,默认2.7 。使用python3可以改软连接也可直接使用python3(也是软连接) pip 与 pip3 对应python2和3pip list 显示安装的包pip -V 显示版本更新pip sudo -H pip install --upgrade pip ...

2019-01-23 14:09:31 124

原创 配置读取类 示例

 from Kintinuous c++配置读取类 示例  注:仅适用于应用了PCL 的工程,无PCL ,可直接读取argv值判断 #ifndef CONFIGARGS_H_#define CONFIGARGS_H_#include &lt;unistd.h&gt;#include &lt;cassert&gt;#include &lt;string&gt;#in...

2018-12-13 10:42:16 380

原创 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 636

原创 .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 3006

原创 Too many levels of symbolic links

ln 时出现错误:Too many levels of symbolic links  原因:使用了相对路劲解决:全部使用绝对路径 

2018-12-11 15:53:30 1338

原创 flann error

error:/usr/include/flann/util/serialization.h:18:9: error: ‘class std::unordered_map&lt;unsigned int, std::vector&lt;unsigned int&gt; &gt;’ has no member named ‘serialize’  solution:         ...

2018-11-23 10:04:42 2900 7

原创 ROS 相关问题记录

1、卸载ROSsudo apt-get remove -f ros-&lt;distro&gt;-desktop-fullsudo apt-get remove -f ros-&lt;distro&gt;-*sudo rm -r /opt/ros/&lt;distro&gt;/2、&lt;AAA&gt;_msgs can't be found错误:CMake Error a...

2018-11-21 10:17:17 165

原创 message_filters error

In function `::Synchronizer&lt;message_filters::sync_policies::ExactTime&lt;sensor_msgs::Image_&lt;std::allocator&lt;void&gt; &gt;, sensor_msgs::Image_&lt;std::allocator&lt;void&gt; &gt;, message_fil...

2018-11-13 15:45:18 993 2

原创 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&lt;pcl::PointXYZ&gt;::nearestKSearch(pcl::PointXYZ const&amp;, int, std...

2018-11-06 14:13:24 703 1

原创 RuntimeError: module compiled against API version 0xa but this version of numpy is 0x9

 sudo easy_install -U numpy或sudo -H pip install -U numpy 这种可能会报错:Cannot uninstall 'numpy'. It is a distutils installed project and thus we cannot accurately determine which files belong ...

2018-10-26 11:21:28 237

原创 ROS 使用signal 终止 Node

在终端中使用ctrl+c可以强制终止运行的程序,但有时需要在终止时作一些处理(如ros::shotdown,free等),可使用信号函数作退出处理 头文件#include"csignal"信号处理函数void signalHandler(int signum){ ROS_INFO("%s is received, Terminating the node...",st...

2018-10-09 11:06:18 3393

原创 Windows 记录

1、系统包 激活工具 及office包下载 亦是美网络[http://www.yishimei123.com/]2、关闭系统自动更新,设置电源计划和其他3、删除一些不必要的系统自带应用,整理开始菜单4、对于一些需要的系统自带软件进行设置(如下载路径等)5、新装软件一般装在D盘,每装一个软件先进行设置,更改其中的默认设置!!养成习惯  常用软件列表:应用程序 备...

2018-09-29 10:37:11 223

原创 沿轴旋转 矩阵表示

对于二维:                            点  旋转 後坐标为       推导:              对于三维:(遵循右手规则)                                                                                                 如果只沿X...

2018-09-27 11:30:16 1715 1

原创 libCVD make error

 configure: error: cannot guess build type; you must specify one ac_build_alias=aarch64-unknown-linux-gnu 

2018-09-20 19:58:40 295

原创 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 5315 2

转载 Eigen库使用教程之旋转矩阵,旋转向量和四元数的初始化和相互转换的实现

原 Eigen库使用教程之旋转矩阵,旋转向量和四元数的初始化和相互转换的实现 Eigen: C++开源矩阵计算工具——Eigen的简单用法 Eigen库是一个开源的C++线性代数库,它提供了快速的有关矩阵的线性代数运算,还包括解方程等功能。Eigen是一个用纯头文件搭建起来的库,这意味这你只要能找到它的头文件,就能使用它。Eigen头文件的默认位置...

2018-09-20 10:55:42 1210

原创 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 1670 1

原创 grub 命令

启动linuxset prefix=(hd0,msdos1)/grubset root=(hd0,msdos1)insmod normalnormal启动windowsinsmod part_msdosinsmod ntfsset root=(hd0,msdos4)chainloader +1boot参考:https://blog.csdn.net/bensnak...

2018-09-18 19:38:46 1993 1

原创 matplotlib.plot 记录

#!/usr/bin/env python#coding=utf8#中文中文import numpy as npimport matplotlib.pyplot as pltfig=plt.figure()ax=fig.add_subplot(1,1,1)font1 = {'family' : 'Times New Roman','weight' : 'normal','...

2018-09-12 15:27:59 103

原创 linux 下sleep 和 usleep 函数 及 求数组大小

1、linux下#include &lt;unistd.h&gt;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 367

原创 git 常用命令 github

1、本地创建ssh key ssh-keygen -t rsa -C "[email protected]"默认保存到  /home/username/.ssh/id_rsa 验证是否成功ssh -T [email protected]、配置用户信息,直接设成全局,下次就不用再设置git config --global user.name "your name"git con...

2018-09-06 10:11:56 119

原创 linux 安装后无法启动 修复引导grub

1、查看磁盘信息,确认系统安装在那个磁盘上 sudo df -lh or sudo fdisk -l2、挂载sudo mkdir /mnt/ubuntu #建立挂载点sudo mount /dev/sda2 /mnt/ubuntu #挂载#如果引导安装在单独磁盘上 挂载引导sudo mount /dev/sda6 /mnt/ubuntu/boot 3、安装gr...

2018-09-06 08:36:32 9160 1

原创 ros下 同步保存双目数据 raw image

使用message_filters 以时间戳过滤同步保存双目数据 #include &lt;message_filters/subscriber.h&gt;#include &lt;message_filters/synchronizer.h&gt;#include &lt;message_filters/sync_policies/exact_time.h&gt;图像编码类型参考:...

2018-09-05 14:52:38 1721

原创 常用数据类型 位数

注:编译运行环境 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 1626

原创 raspberry pi 树莓派安装 tensorflow

下载whl   https://github.com/samjabrahams/tensorflow-on-raspberry-pi/releaseswget https://github.com/samjabrahams/tensorflow-on-raspberry-pi/releases/download/v1.1.0/tensorflow-1.1.0-cp27-none-linu...

2018-09-04 13:29:32 688 1

原创 CUDA编程

CUDA 编程demo 1、函数申明__global__:     specifier __global__ to the function, which tells the CUDA C++ compiler that this is a function that runs on the GPU and can be called from CPU code.  2、内...

2018-08-31 09:53:36 361

原创 linux 下串口通信

#include &lt;stdio.h&gt;#include &lt;stdlib.h&gt;#include &lt;unistd.h&gt;#include &lt;string.h&gt;#include &lt;errno.h&gt;#include &lt;sys/types.h&gt;#include &lt;sys/stat.h&gt;#include &am

2018-08-24 11:00:46 349

原创 linux v4l 读取相机原始数据

v4l 读原始数据libjpeg 保存/* * capturing from UVC cam * requires: libjpeg-dev * build: gcc -std=c99 capture.c -ljpeg -o capture */#include &lt;stdint.h&gt;#include &lt;stdlib.h&gt;#include &lt;s...

2018-08-24 10:57:53 984

原创 linux 时间获取

char * getnamefromtime(){ time_t t; time(&amp;t); char *str=(char*)malloc(30*sizeof(char)); struct tm *gt=localtime(&amp;t); struct timeval us; gettimeofday(&amp;us,NULL); sprintf(str,...

2018-08-24 10:54:14 637

原创 linusb 源码编译安装

安装seabreeze时依赖libusb,无法二进制libusb,故源码安装,遇到几个问题,记录一下 libusb下载:https://sourceforge.net/projects/libusb/?source=typ_redirect./configure   -&gt;  make   -&gt; make install 可能遇到错误:configure: error: ...

2018-07-24 09:12:59 447

原创 OpenCV with CUDA 编译安装

cmake     -D CMAKE_BUILD_TYPE=DEBUG -D WITH_CUDA=ON     -D WITH_CUBLAS=ON     -D CUDA_FAST_MATH=ON     -D WITH_CUFFT=ON     -D WITH_NVCUVID=ON     -D WITH_V4L=ON     -D WITH_LIBV4L=ON     -D WITH_OPEN...

2018-07-10 21:03:33 4859

原创 apt-get update error

oatrc:~/Desktop$ sudo apt-get update Ign file: InReleaseIgn file: InReleaseErr http://ppa.launchpad.net trusty InRelease Err http://ppa.launchpad.net trusty InRelease Err http://ppa.launchp...

2018-07-09 10:45:52 304

原创 Ubuntu 系统配置

1、更新软件源        使用ustc mirror  参考:https://mirrors.ustc.edu.cn/help/ubuntu.html        先备份  sudo cp /etc/apt/sources.list /etc/apt/sources.list.bak        再更新  (sources.list从ustc mirrors 上下载)   ...

2018-07-02 13:10:06 391

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除