当前位置:网站首页>Driving point cloud format changes bring efficiency improvement
Driving point cloud format changes bring efficiency improvement
2022-08-04 21:32:00 【moneymyone】
Efficiency gains from driving point cloud format modification
背景:
The original custom point cloud structure is being read、传输、Decoding the entire time period is very time consuming,Therefore, the point cloud structure is upgraded,Improve overall runtime.
protobuf字段类型介绍
| .proto Type | Notes | C++ Type |
|---|---|---|
| double | double | |
| float | float | |
| int32 | Uses variable-length encoding. Inefficient for encoding negative numbers – if your field is likely to have negative values, use sint32 instead. | int32 |
| int64 | Uses variable-length encoding. Inefficient for encoding negative numbers – if your field is likely to have negative values, use sint64 instead. | int64 |
| uint32 | Uses variable-length encoding. | uint32 |
| uint64 | Uses variable-length encoding. | uint64 |
| sint32 | Uses variable-length encoding. Signed int value. These more efficiently encode negative numbers than regular int32s. | int32 |
| sint64 | Uses variable-length encoding. Signed int value. These more efficiently encode negative numbers than regular int64s. | int64 |
| fixed32 | Always four bytes. More efficient than uint32 if values are often greater than 228. | uint32 |
| fixed64 | Always eight bytes. More efficient than uint64 if values are often greater than 256. | uint64 |
| sfixed32 | Always four bytes. | int32 |
| sfixed64 | Always eight bytes. | int64 |
| bool | bool | |
| string | A string must always contain UTF-8 encoded text. | string |
| bytes | May contain any arbitrary sequence of bytes. | string |
修改前:
message PointXYZI {
optional float x = 1 [default = nan];
optional float y = 2 [default = nan];
optional float z = 3 [default = nan];
optional uint32 intensity = 4 [default = 0];
}
message PointCloud {
repeated PointXYZIT point = 1;
}
修改后:
message PointXYZI2 {
repeate float x_array = 1 [default = nan];
repeate float y_array = 2 [default = nan];
repeate float z_array = 3 [default = nan];
optional bytes intensity_array = 4 [default = 0];
}
message PointCloud {
optional PointXYZI2 point_array = 1;
}
修改点:
- PointXYZIconsists of repeated data structures,Change to repeated points.
意义在于:
- Originally, reading and writing requires multiple reading and writing of this structure,Now instead direct one-time storage points,Store all points in this struct.
- 而且将intensityand other parameters are changedbytes,Analyzed later,Reduced overall point cloud package size,减少传输时间.
protobuf修改字段为bytes需要考虑一些问题:
- Computer major and minor sequence problems;Different systems will be different,read outbytes会不同.If other languages callC++的库,Not parsed through its own language,能解决问题?
- Multilingual compatibility issues,解析问题
- Field alignment issues
Currently taking time to analyze:

经验:
- By reducing the field type,提高传输速率,空间换时间;
- Write-once replaces write-many,解决时间,This part of the time saved accounts for the most part.
边栏推荐
猜你喜欢

3. Byte stream and character stream of IO stream

【2022牛客多校5 A题 Don‘t Starve】DP

【线性代数02】AX=b的2种解释和矩阵乘法的5种视角
![[2022 Hangzhou Electric Power Multi-School 5 1012 Questions Buy Figurines] Application of STL](/img/fe/1dd9418800366ee25067e154936e3b.png)
[2022 Hangzhou Electric Power Multi-School 5 1012 Questions Buy Figurines] Application of STL

使用堡塔应用管理器配置laravel队列方法

ROS播包可视化

LayaBox---TypeScript---Problems encountered at first contact

buu web

8 年产品经验,我总结了这些持续高效研发实践经验 · 协同篇

mdk5.14无法烧录
随机推荐
OD-Model [6]: YOLOv2
经验分享|盘点企业进行知识管理时的困惑类型
matlab drawing
如何根据“前序遍历,中序遍历”,“中序遍历,后序遍历”构建按二叉树
3、IO流之字节流和字符流
jekyll adds a flowchart to the blog
【ubuntu20.04安装MySQL以及MySQL-workbench可视化工具】
LayaBox---知识点
[21天学习挑战赛——内核笔记](二)——设备树基础
SPSS-System Clustering Hand Calculation Practice
路由中的meta、params传参的一些问题(可传不可传,为空,搭配,点击传递多次参数报错)
Arduino 电机测速
How to understand the crawler's Scrapy framework in the simplest and most popular way?
知识分享|如何设计有效的帮助中心,不妨来看看以下几点
国内的PMP证书含金量到底如何
In action: 10 ways to implement delayed tasks, with code!
Zynq Fpga图像处理之AXI接口应用——axi_lite接口使用
DGL安装教程
Pinduoduo open platform order information query interface [pdd.order.basic.list.get order basic information list query interface (according to transaction time)] code docking tutorial
buu web