- 博客(37)
- 资源 (7)
- 收藏
- 关注
原创 C++ vector数组求最大值——max_element()
需要引入max_element()返回的是vector的迭代器,可以使用auto或者vector::iterator(假设vector中的元素是int类型)接收。max_element()的输入参数为需要求最大值的区间的起始迭代器和终止迭代器。求最大值的索引求最大值。
2024-02-06 09:54:12
1941
原创 自动查找并安装依赖库
注意:该语句会推荐许多解决方案,如果对当前方案不满意,输入n它会继续推荐下一个。因此,一般的原则是它第一个会推荐不安装某些库,输入n,他会推荐卸载某些库,继续不接受,直到他推荐安装某些库,并且不卸载任何库,多执行几次基本就可以了。
2023-03-29 14:15:19
277
原创 ubuntu 安装QGIS
2.安装QGIS签名密钥,以便信任并安装QGIS资源库中的软件。将下面的文本复制到终端后,Enter后再ctrl+c。3.创建qgis.sources。5.开始安装QGIS。
2023-03-29 14:06:23
2114
原创 ReadTimeoutError: HTTPSConnectionPool(host=‘files.pythonhosted.org‘, port=443): Read timed out.
ubuntu库安装
2022-12-21 12:23:14
275
原创 E: 有未能满足的依赖关系。请尝试不指明软件包的名字来运行“apt --fix-broken install”(也可以指定一个解决办法)。
ubuntu库安装
2022-12-21 11:31:06
1011
原创 自动驾驶轨迹预测论文阅读(三)Social GAN: Socially Acceptable Trajectories with Generative Adversarial Networks
自动驾驶轨迹预测论文阅读——生成对抗网络
2022-09-01 11:27:18
1633
原创 自动驾驶轨迹预测论文阅读(二)TPNet: Trajectory Proposal Network for Motion Prediction
自动驾驶轨迹预测论文阅读
2022-08-24 18:32:58
4226
4
原创 自动驾驶轨迹预测论文阅读(一)Deep Learning-based Vehicle Behaviour Prediction For Autonomous Driving Applications
自动驾驶轨迹预测论文阅读—— Deep Learning-based Vehicle Behaviour Prediction For Autonomous Driving Applications: A Review
2022-07-06 19:43:13
2450
原创 MATLAB角度转换
由于matlab中的反三角函数(如atan(delta_Y/ delta_X)),其返回值为[-pi/2,pi/2],而我们在实际使用中需要角度范围为[0,2*pi],因此提供一个角度转换代码供大家参考。此为一段学习总结,如有问题,欢迎讨论!...
2022-07-04 16:27:42
3518
原创 Trucksim+Prescan+Simulink联合仿真笔记(Carsim同理)
作者整理了一些自己在使用Trucksim+Prescan+Simulink联合仿真过程中的经验,供初学者参考。
2022-05-14 14:41:35
7908
13
原创 ubuntu18.04 无法外接显示屏
由于ubunutu18.04安装完成后遇到了卡死问题,所以根据这篇教程进行了修改:使用sudo gedit /etc/default/grub将grub中的quiet splash修改为了quiet splash nomodeset。但是就是这个问题导致无法链接外接显示屏。因此在能够正常开机以后,再将quiet splash nomodeset修改为quiet splash,重启之后就能连接显示屏了。...
2022-02-11 16:53:53
2453
2
原创 解决Pycharm的Available Packages为空问题
在学习的时候发现添加PyTorch后无法添加matplotlib库,Avalilable Packages中为空,现将解决方案记录一下。1.从settings中找到Pyhon Interpreter2. 点击Manage Repositories添加下列网址:http://pypi.douban.com/simple/http://mirrors.aliyun.com/pypi/simple/https://repo.continuum.io/pkgs/free/ht.
2022-01-15 16:12:07
24240
11
原创 Qt运行时无法找到 错误:cannot open shared object file: No such file or directory
对so文件进行测试,运行时出现错误:cannot open shared object file: No such file or directory文件明明存在但是却找不到是由于当前目录并不在查找范围内,因此显示无法找到解决方法:执行export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:. 最后的 . 表示把当前目录加入到动态链接库查找的目录中去重新运行成功!上述方法设置是临时的 另外一种方法:sudo vi /etc/ld.so.co
2021-09-13 20:35:10
4947
原创 fatal error: glog/logging.h: 没有那个文件或目录
系统版本:ubuntu18.04ROS版本:melodiccatkin_make报错:In file included from /home/用户名/桌面/AutonomousMining/src/pnc/src/file.cc:17:0:/home/用户名/桌面/AutonomousMining/src/pnc/include/file.h:37:10: fatal error: glog/logging.h: 没有那个文件或目录 #include <glog/logging.h.
2021-09-05 18:36:04
5276
原创 Cmake报错-Could not find a package configuration file provided by...
catkin_make报错:CMake Error at /opt/ros/melodic/share/catkin/cmake/catkinConfig.cmake:83 (find_package): Could not find a package configuration file provided by "serial" with any of the following names: serialConfig.cmake serial-config.cmake
2021-09-05 17:24:35
3726
1
原创 (成功)ROS安装过程中如何解决 rosdep update 命令出现错误——安装记录
系统:ubuntu18.04ros:ros-melodic大部分解决办法转载自:https://zhuanlan.zhihu.com/p/3920827311.sudo rosdep init报错(切换为手机热点init成功!)ERROR: Rosdep experienced an error: ('The read operation timed out',)Please go to the rosdep page [1] and file a bug report with the
2021-08-18 12:37:36
25835
19
原创 Thinkpad T14 Ubuntu16.04下双屏显示解决笔记(未解决,仅为记录)——切换成18.04吧,一点问题没有(笑哭)
英伟达驱动下载地址显卡:NVIDIA GeForce MX330显存类型:2GB GDDR5选择如下版本驱动:
2021-07-06 13:31:23
3768
1
原创 Could not find a package configuration file provided by “cv_bridge“
CMake Error at /usr/share/catkin/cmake/catkinConfig.cmake:75 (find_package): Could not find a package configuration file provided by "cv_bridge" with any of the following names: cv_bridgeConfig.cmake cv_bridge-config.cmake Add the installa.
2021-06-30 15:59:31
3401
原创 Ubuntu16.04无法连接WIFI解决方法
电脑型号:Thinkpad T14-Intel i7网卡版本:Intel WIFI6 AX201操作系统:Win10安装操作系统:Ubuntu16.04首先说感谢这篇文章,帮我解决了问题。再贴几个其他的解决方案:1.Ubuntu16.04以太网连接教程2.Ubuntu内核升级方法3.Ubuntu16.04无法连接Wifi解决方案...
2021-06-29 15:30:27
985
原创 Thinkpad T14解除bitlocker
想给Thinkpad解除bitlocker,但是网上的教程《Win10如何关闭bitlocker》并不适用于我的电脑,因为我的电脑没有“关闭BitLocker”这个选项于是我选择通过CMD命令进行解除,参考《通过CMD命令行删除bitlocker》开始我的电脑C盘,D盘都是加密的,因此需要先解锁D盘,通过命令(注意加上末尾的冒号):manage-bde -off D:然后再通过命令解除C盘:manage-bde -off C:...
2021-06-28 17:18:44
6233
2
原创 数组列表初始化问题——C++学习小计
本篇内容为学习小计,内容来自《C++ primer plus》第六版。C++11中的列表初始化新增功能:1.数组
2021-06-19 16:32:29
340
原创 C++命名规则
1.在名称中只能使用字母字符、数字和下划线(_);2.名称的第一个字符不能是数字;3.区分大写字符与小写字符;4.不能将C++guan'jian'zi'yong'z
2021-06-18 15:25:48
640
1
原创 c语言程序求e的值
#include<stdio.h>int main(void){ int i,n; double item,sum=1.0; printf("输入一个正整数:"); scanf("%d",&n); for(i=1;i<=n;i++){ item=1; for(int j=1;j<=i;j++){ item=item*j; } sum=sum+1.0/item; } printf("e=%lf\n",sum); retu.
2021-06-15 15:18:16
4815
3
转载 rand()函数产生指定范围内的随机整数的方法
“模除+加法”的方法因为,对于任意数,0<=rand()%(n-m+1)<=n-m因此,0+m<=rand()%(n-m+1)+m<=n-m+m因此,如要产生[m,n]范围内的随机数num,可用:int num=rand()%(n-m+1)+m;其中的rand()%(n-m+1)+m算是一个公式,记录一下方便以后查阅。比如产生10~30的随机整数:srand((int)time(0));int a = rand() % (21)+10;...
2021-06-15 14:53:03
6050
原创 c语言学习-switch分支结构
注意 switch(c)中的c可以使int、long、char、unsigned int等,但是不能是float类型。
2021-06-11 16:23:27
431
1
原创 MATLAB/Simulink S-function学习心得
最近在学习自动驾驶仿真,其中组合导航单元需要使用串口通信,要将数据信息进行处理,使用到了1.S-function简介
2021-06-09 11:34:46
2037
1
原创 int main()与void main()区别?
在学习C语言的过程中,会习惯性的将int main()写为void main(),但是在使用void main()时若添加上return 0,会出现警告(Dev-C++):gain\rate.c [Warning] 'return' with a value, in function returning void [enabled by default]...
2021-06-09 10:38:59
4015
Ubuntu内核文件——5.2.16
2021-07-06
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人