当前位置:网站首页>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.
边栏推荐
猜你喜欢

【2022杭电多校5 1003 Slipper】多个超级源点+最短路

模拟对抗之红队免杀开发实践

【SQL之降龙十八掌】01——亢龙有悔:入门10题

Configure laravel queue method using fort app manager

【线性代数03】消元法展示以及AX=b的4种解情况

STM32MP157A驱动开发 | 01- 板载LED作为系统心跳指示灯

Ramnit感染型病毒分析与处置

数电快速入门(四)(组合逻辑电路的分析以及设计的介绍)
![[2022 Hangzhou Electric Multi-School 5 1003 Slipper] Multiple Super Source Points + Shortest Path](/img/78/054329dec6a6faea5e9d583b6a8da5.png)
[2022 Hangzhou Electric Multi-School 5 1003 Slipper] Multiple Super Source Points + Shortest Path

强网杯2022——WEB
随机推荐
unity2D横版游戏教程8-音效
LeetCode: 406. 根据身高重建队列
用Tesseract开发一个你自己的文字识别应用
Ramnit感染型病毒分析与处置
Codeforces Round #811 (Div. 3)
mdk5.14无法烧录
88.(cesium之家)cesium聚合图
【2022杭电多校5 1003 Slipper】多个超级源点+最短路
国际项目管理师PMP证书,值得考嘛?
PowerCLi import license to vCenter 7
动手学深度学习_NiN
热力学相关的两个定律
AtCoder Beginner Contest 262 D - I Hate Non-integer Number
visual studio 2015 warning MSB3246
数电快速入门(五)(编码器的介绍以及通用编码器74LS148和74LS147的介绍)
Named routes, the role of name in components
LayaBox---TypeScript---举例
In action: 10 ways to implement delayed tasks, with code!
js的new Function()常用方法
LayaBox---TypeScript---structure