- 博客(59)
- 资源 (2)
- 收藏
- 关注
原创 Python 报错 no module named torch 的解决方案
Python 报错 no module named torch 的解决方案
2024-01-04 15:46:49
684
1
原创 Unknown symbol: \gama, found ‘\‘ (at char 0), (line:1, col:1)
ValueError: \gama^Unknown symbol: \gama, found '\' (at char 0), (line:1, col:1)
2023-04-04 11:44:25
1087
原创 Failed to build pycocotoolsERROR: Could not build wheels for pycocotools which use PEP 517 and cann
Failed to build pycocotoolsERROR: Could not build wheels for pycocotools which use PEP 517 and cann
2023-03-20 12:08:50
1581
2
原创 使用./labelme2voc.py 转换数据集格式生成空的文件夹
经检查发现 我的文件夹是data,但是我命令中使用的是ddata,所以改成就运行成功了,生成的文件夹中有内容。激活labelme,运行环境从base转换到labelme,如下图所示,能够生成data_voc文件夹,但是这个文件夹里面是空的。'.' 不是内部或外部命令,也不是可运行的程序。在anaconda prompt中使用。
2023-03-16 16:53:40
1902
1
原创 ModuleNotFoundError: No module named ‘cv2‘
ModuleNotFoundError:No module named 'cv2'
2023-03-03 09:20:26
2494
原创 ubuntu18.04 安装 ros 报错 E: Unable to locate package ros-melodic-desktop-full
ubuntu18.04 安装 ros 报错 E: Unable to locate package ros-melodic-desktop-full
2022-11-14 12:09:40
3240
1
原创 cannot import name ‘_libsvm_sparse‘ from partially initialized module ‘sklearn.svm‘ (most likely due
cannot import name '_libsvm_sparse' from partially initialized module 'sklearn.svm' (most likely dueto a circular import) (D:\python\Anaconda\lib\site-packages\sklearn\svm\__init__.py)
2021-08-03 12:14:25
924
原创 _csv.Error: iterator should return strings, not bytes (did you open the file in text mode?)
from csv import DictReaderdata_rdr = DictReader(open('data/mn.csv', 'rb'))header_rdr = DictReader(open('data/mn_headers.csv', 'rb'))data_rows = [d for d in data_rdr]header_rows = [h for h in header_rdr]print (data_rows[:5])报错:
2021-06-07 11:43:21
1112
原创 pycharm-为项目选择的python解释器无效
使用pycharm打开之前的项目显示“为项目选择的python解释器无效”解决方法:菜单栏点: 运行-编辑配置将python解释器目录设置为 当前项目所在目录\venv\Scripts\python.exe(我的项目所在位置为D:\python\python-code\test1,因此设置的是:D:\python\python-code\test1\venv\Scripts\python.exe)然后确定就可以了。...
2021-05-18 10:04:14
54966
4
原创 VMware15里的Ubuntu18系统下安装ros,安装完后执行sudo rosdep init,报错如下
VMware15里的Ubuntu18系统下安装ros,安装完后执行sudo rosdep init,报错如下:https://raw.githubusercontent.com/ros/rosdistro/master/rosdep/sources.list.d/20-default.listWebsite may be down.解决办法:执行如下命令:cd /etcsudo gedit hosts在文件末尾添加:151.101.84.133 raw.githubusercon
2021-04-06 10:08:23
94
原创 Python-matplotlib-隐藏坐标轴时图片没有数据显示
Python-matplotlib-隐藏坐标轴时图片没有数据显示在《Python编程-从入门到实践》-【美】Eric Matthes 著,一书中对于随机漫步5000点的项目,为了避免坐标轴干扰对随机漫步路径的注意,需要隐藏坐标轴。根据代码操作隐藏坐标轴,结果原本有数据的图片变成空白了。代码如下:while True: # 创建一个RandomWalk实例,并将其包含的点都绘制出来 rw = RandomWalk(1000) rw.fill_walk() po
2021-03-29 15:45:52
4039
28
原创 ubuntu18.04安装搜狗拼音
在Ubuntu18.04系统下用sudo dpkg -i 这条命令安装搜狗拼音报错如下dpkg: 处理软件包 sogoupinyin (--install)时出错:依赖关系问题 - 仍未被配置正在处理用于 gnome-menus (3.13.3-11ubuntu1.1) 的触发器 ...正在处理用于 desktop-file-utils (0.23-1ubuntu3.18.04.2) 的触发器 ...正在处理用于 mime-support (3.60ubuntu1) 的触发器 ...正在处理.
2021-03-19 10:21:17
395
1
原创 all processes on machine have died, roslaunch will exit
用rosbag这个类读取bag包里的数据,程序编译没错,运行的时候报错:all processes on machine have died, roslaunch will exitstd::vector<std::string> topics; topics.push_back("/odom"); topics.push_back("/scan");...
2019-11-28 13:39:49
3233
原创 win10,win7,ubuntu三系统安装 顺序安装
电脑自带的系统是win10系统,由于工作需要,安装了ubuntu系统。一段时间后由于工作需要,需要安装win7系统。仅以此文记录我在装了win10,ubuntu系统后安装win7的过程。事先需要准备的东西:两个U盘,一个win7系统启动盘,一个ubuntu启动盘ps:安全起见,请备份好重要的文件step0:制作U盘启动盘,将win7系统镜像拷贝到u盘或win10系统下(放在电脑上...
2019-08-30 11:08:23
457
原创 用了pcl的地方, 程序直接崩溃 挂掉
在程序里用了 pcl::PassThrough<pcl::PointXYZ> pass; pass.setInputCloud(cloud); pass.setFilterFieldName("z"); pass.setFilterLimits(-1.2, 0);//保留或过滤z轴方向-1.2到0 pass.filter(*cloud_filt...
2019-08-19 17:13:23
1877
原创 :-1: error: /usr/local/x264/lib/libx264.a(lookahead-8.o): undefined reference to symbol 'pthread_joi
:-1: error: /usr/local/x264/lib/libx264.a(lookahead-8.o): undefined reference to symbol 'pthread_join@@GLIBC_2.2.5'pthread库不是Linux系统默认的库,添加下面这条命令即可target_link_libraries(${PROJECT_NAME}pthread...
2019-07-31 18:52:13
625
原创 Project 'global_planner' tried to find library '-lpthread'. The library is neither a target nor
Project 'global_planner' tried to find library '-lpthread'. The library isneither a target nor built/installed properly. Did you compile project'costmap_2d'? Did you find_package() it before the s...
2019-07-31 14:33:06
1699
1
原创 c++ 打印显示一个非常大的随机数值
写了一个union去485串口读取读取sensor数据union Data{ unsigned char byte[2]; int sensor_data;};这样用:Data data2;data2.byte[0] = buf[7];data2.byte[1] = buf[6];std::cout<<"data is "<<d...
2019-07-19 14:08:50
199
原创 txt读写文件
std::ofstream myout("/home/fff/tf_pose_z.txt");float a,b;myout<<a<<a<<b<<std::endl;myout.close();FILE * pFile_;const char * pFileName="/home/fff/tf_pose_z.tx...
2019-07-10 19:26:22
92
原创 从tf获取机器人位置
tf::Stamped<tf::Pose> ident; tf::Stamped<tf::Transform> robot_pose; ident.setIdentity(); ident.frame_id_ = "base_link"; ident.stamp_ = scan->header.stamp; //ros::Tim...
2019-07-10 17:39:35
1178
原创 ndt 算法学习
https://blog.csdn.net/u013351270/article/details/69391135http://ghx0x0.github.io/2014/12/30/NDT-match/一文读懂自动驾驶中常用的定位算法之NDT点云配准算法(1)——Paper Readinghttps://blog.csdn.net/qq_23225073/article/det...
2019-06-26 10:48:37
3144
原创 rviz缓存多帧数据 怎么消除
用rosbag录了一段数据,在rviz上显示。rviz打开之前的一个配置.rviz后,突然就缓存多帧数据了,之前还好好的。把所有程序都关掉,然后重启roscore,还是缓存多帧数据,于是重启电脑,也还是不行。于是重新打开rviz,重新添加topic,这样不会缓存多帧数据,然后又打开之前的.rviz配置,就不会缓存多帧数据了。不知道原理是什么,作为暂时的解决方法吧。还有一种方法,先放ba...
2019-06-24 19:28:35
1309
6
原创 ubuntu linux打印系统时间
time_t tt = time(NULL);//这句返回的只是一个时间戳 tm* t= localtime(&tt); printf("%d-%02d-%02d %02d:%02d:%02d\n", t->tm_year + 1900, t->tm_mon + 1,...
2019-05-17 10:37:15
2641
原创 ffmpeg 取消打印信息
ffmpeg在默认状态下会打印info信息,如下[libx264 @ 0x1f74840] frame I:237 Avg QP:21.69 size: 17064[libx264 @ 0x1f74840] frame P:493 Avg QP:21.56 size: 760[libx264 @ 0x1f74840] frame B:453 Avg QP:26.71 ...
2019-05-14 11:26:58
5142
原创 计算程序运行时间 ubuntu linux
#include <time.h>clock_t start, finish;double duration;start = clock();////finish = clock();duration = (double)(finish - start) / CLOCKS_PER_SEC;
2019-04-19 13:43:36
1344
原创 nfs 服务器搭建 windows系统 ubuntu系统
windows系统:参考博客:https://blog.csdn.net/lzhitwh/article/details/80172561https://www.cnblogs.com/liyuan3210/p/6377178.htmlnfs server下载地址:https://pan.baidu.com/s/1vKPIyVRM0wf4TA4TwWP0rA下完后直接安装...
2019-04-18 14:14:29
424
原创 No handlers could be found for logger rosout
在 http://ais.informatik.uni-freiburg.de/slamevaluation/datasets.php 上下载数据集,用python转成rosbag包的形式,遇到问题:No handlers could be found for logger rosout解决方法:在转换文件(.py)的开头加上:import loggingloggi...
2019-04-03 16:52:25
5870
3
原创 ffmpeg x264 linux 安装
(在https://blog.csdn.net/season_hangzhou/article/details/24399371 的安装基础上,做了一些修改。)一、环境准备ffmpeg下载:http://www.ffmpeg.org/download.htmlx264下载:http://www.videolan.org/developers/x264.htmlyasm下载:htt...
2019-03-28 09:34:25
1211
原创 error: /usr/local/x264/lib/libx264.a(opencl-8.o): undefined reference to symbol 'dlclose@@GLIBC
调用x264库的时候报错解决方法:重新编译x264step1: 进入x264目录下./configure --prefix=/usr/local/x264 --enable-shared --enable-static --enable-yasm --extra-libs=-ld --disable-opencl重要的是--disable-opencl这个参数step2:m...
2019-03-22 18:44:48
1522
原创 realsense d435 sdk 驱动安装 重装
根据官网教程执行https://github.com/IntelRealSense/librealsense/blob/development/doc/installation.md遇到错误:Patched kernels modules were created successfullyReplacing videodev :Applying the patched modul...
2019-02-18 13:24:18
2266
5
原创 mapinfo11 安装报错
安装mapinfo11一开始就报错:The installation of hotfix for Microsoft .NET framework 4 client profile (KB2484832) has failed" . Setup will now exit. 原因:Microsoft .NET framework 4在电脑上已经安装了。 解决方法:1. 使用...
2019-02-13 10:10:31
6420
原创 easybcd 加载ubuntu启动项 加载不了
安装ubuntu后,使用easyBCD2.3 加载ubuntu启动项,但是linux/BSD这一栏是灰色的,添加不了。但是改用easybcd2.2就可以添加了
2019-02-12 16:20:44
8160
6
原创 qt 中 q_foreach 与 realsenseD435中的 foreach冲突
原文:https://blog.csdn.net/Pabebe/article/details/85290311https://github.com/IntelRealSense/librealsense/issues/2923 realsenseD435 qt报错:/usr/local/include/librealsense2/hpp/rs_frame.hpp:876: err...
2019-02-11 15:06:42
869
5
转载 ROS 教程之 vision: 摄像头标定camera calibration
https://blog.csdn.net/heyijia0327/article/details/43538695
2019-01-31 11:26:58
1996
原创 ubuntu16.04安装Adobe Flash Player插件
https://blog.csdn.net/szuerhnw/article/details/53082217
2019-01-23 15:06:36
2044
原创 启发式算法
http://www.bubuko.com/infodetail-2265325.html启发式算法(heuristic algorithm)是相对于最优化算法提出的。一个问题的最优算法求得该问题每个实例的最优解。启发式算法可以这样定义:一个基于直观或经验构造的算法,在可接受的花费(指计算时间和空间)下给出待解决组合优化问题每一个实例的一个可行解,该可行解与最优解的偏离程度一般不能被预计。现阶...
2019-01-23 10:12:28
497
原创 error: #error This file requires compiler and library support for the ISO C++ 2011 standard.
error: #error This file requires compiler and library support for the ISO C++ 2011 standard. SET( CMAKE_CXX_FLAGS "-std=c++11 -O3")
2019-01-18 21:59:24
4566
原创 count count_if 函数
原文:https://blog.csdn.net/sinat_24310873/article/details/53364185 1)count(first,last,value):first是容器的首迭代器,last是容器的末迭代器,value是询问的元素,整个函数返回int型。count函数的功能是:统计容器中等于value元素的个数。2)count_if(first,last,co...
2019-01-17 17:02:36
1257
EasyBCD-v2.2.zip
2020-06-30
Generalized-ICP
2019-01-09
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人