摘要: 一、简介 Google Logging(glog)是一个实现应用程序级日志记录的C++98库。该库提供了基于C++风格流和各种辅助宏的日志API 二、安装 1、源码安装 待写 2、apt安装(有点问题,尽量用源码安装) sudo apt install libgoogle-glog-dev 阅读全文
posted @ 2022-05-28 13:41 chenjian688 阅读(1404) 评论(0) 推荐(0) 编辑
摘要: 一、简介 Protobuf全称是Google Protocol Buffer,是一种高效轻便的结构化数据存储方式,可用于(数据)通信协议、数据存储等。 二、提前须知 protobuf3携带的编译器已经支持proto2语法和proto3语法。如果proto文件没有添加syntax版本说明, 用这个版本 阅读全文
posted @ 2022-05-13 23:22 chenjian688 阅读(1866) 评论(0) 推荐(0) 编辑
摘要: 一、轨迹文件解析 csv文件每一行存储一个点的数据,轨迹是最左车道的边界线 x y s dx dy 二、环境车数据解析 类似双层vector数组,std::vector<std::vector<double>> sensor_fusion vehicle.id=sensor_fusion[i][0] 阅读全文
posted @ 2022-05-07 11:53 chenjian688 阅读(35) 评论(0) 推荐(0) 编辑
摘要: 一、总结 系统自带的内核版本过低,解决办法升级内核。 二、apt 安装新内核 安装内核也可以自己去官网下载内核https://kernel.ubuntu.com/~kernel-ppa/mainline/,但是一般不确定是否和自己的系统版本适配,有可能安装过程中出现依赖的问题。所以建议用apt 查询 阅读全文
posted @ 2022-04-28 13:48 chenjian688 阅读(1594) 评论(0) 推荐(0) 编辑
摘要: 一、安装前的准备 1.关闭secure boot 2.安装lightdm,lightdm是显示管理器,主要管理登录界面。这个和NVIDIA驱动更适配,减少安装驱动后进不去系统的风险。 sudo apt install lightdm 二、使用命令行安装NVIDIA驱动程序 打开终端(可用快捷键:Ct 阅读全文
posted @ 2022-04-28 13:31 chenjian688 阅读(1705) 评论(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 阅读(107) 评论(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 阅读(89) 评论(0) 推荐(0) 编辑
摘要: 1. 浮点数介绍 _Float32 a, _Float64 b; 实际上float类型存储数据的间隔不是等间距的,而是在0的附近间距小,在远离0的位置间距大。虽然表示的数范围大,但是超过一定范围内就不准了,精度是有限制的。 float32 确保7位有效数,(包含整数位和小数位,从左向右数,整数部分为 阅读全文
posted @ 2022-01-24 21:02 chenjian688 阅读(733) 评论(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 阅读(1107) 评论(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 阅读(2267) 评论(0) 推荐(0) 编辑