摘要: 一、安装前的准备 1.关闭secure boot 2.安装lightdm,lightdm是显示管理器,主要管理登录界面。这个和NVIDIA驱动更适配,减少安装驱动后进不去系统的风险。 sudo apt install lightdm 二、使用命令行安装NVIDIA驱动程序 打开终端(可用快捷键:Ct 阅读全文
posted @ 2022-04-28 13:31 chenjian688 阅读(2438) 评论(0) 推荐(0)
摘要: git clone https://github.com/Microsoft/vcpkg.git ./vcpkg/bootstrap-vcpkg.sh vcpkg install [packages to install] 阅读全文
posted @ 2022-03-25 00:33 chenjian688 阅读(133) 评论(0) 推荐(0)
摘要: 1、x,y,yaw为笛卡尔坐标系 #include <vector> #include <iostream> #include <cmath> typedef struct Point { double x; double y; double z; double yaw; double speed; 阅读全文
posted @ 2022-03-01 17:12 chenjian688 阅读(119) 评论(0) 推荐(0)
摘要: 1. 浮点数介绍 _Float32 a, _Float64 b; 实际上float类型存储数据的间隔不是等间距的,而是在0的附近间距小,在远离0的位置间距大。虽然表示的数范围大,但是超过一定范围内就不准了,精度是有限制的。 float32 确保7位有效数,(包含整数位和小数位,从左向右数,整数部分为 阅读全文
posted @ 2022-01-24 21:02 chenjian688 阅读(992) 评论(0) 推荐(0)
摘要: 一、官网下载文件 https://pytorch.org/get-started/locally/ 选择下载Stable(1.10.1) C++ CPU(cxx 11 ABI) 解压.zip压缩包,将libtorch移动到存放第三方库的位置 二、使用 2.1 创建torch_ws文件夹,然后创建如下 阅读全文
posted @ 2022-01-24 14:24 chenjian688 阅读(1697) 评论(0) 推荐(0)
摘要: 一、简介 该项目是对nanomg的可伸缩性协议库的重写,并添加了重要的新功能,同时保留了与原始协议库的兼容性。 二、安装及卸载 # 1、源码安装 git clone https://github.com/nanomsg/nng.git -b v1.5.2 mkdir build cd build c 阅读全文
posted @ 2022-01-09 10:48 chenjian688 阅读(2677) 评论(0) 推荐(0)
摘要: 一、简介 在ros中启动节点,我们经常需要传入外部参数。一般我们使用roslaunch 定义参数,或者直接读取json文件。其实在ros中用yaml文件传参才是最方便的。 二、使用方法 2.1 安装(安装ros,一般会自动安装这个库) sudo apt install libyaml-cpp-dev 阅读全文
posted @ 2022-01-07 23:32 chenjian688 阅读(2144) 评论(0) 推荐(0)
摘要: sudo apt install retext 阅读全文
posted @ 2022-01-06 14:24 chenjian688 阅读(77) 评论(0) 推荐(0)
摘要: 一、ros节点名 ros节点名可以包含a-z、A-Z、数字0-9、下划线_,且必须以字母开头。节点启动后,ros会自动在节点名前加/,表明是全局命名空间下的节点,节点名具有系统唯一性。 ros::init(argc, argv, "pos_node"); 二、话题名 ros::NodeHandle 阅读全文
posted @ 2021-12-30 14:29 chenjian688 阅读(306) 评论(0) 推荐(0)
摘要: 一、help pip -h #查看pip功能 pip freeze >requirements.txt #生成将当前环境的依赖库列表 阅读全文
posted @ 2021-12-27 13:55 chenjian688 阅读(39) 评论(0) 推荐(0)