当前位置:网站首页>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.
边栏推荐
- LayaBox---knowledge point
- unity2D横版游戏教程8-音效
- PRIMAL: Pathfinding via Reinforcement and Imitation Multi-Agent Learning 代码解析
- mdk5.14无法烧录
- ue unreal 虚幻 高分辨率无缩放 编辑器字太小 调整编辑器整体缩放
- dotnet enables JIT multi-core compilation to improve startup performance
- laravel whereDoesntHave
- Android 面试——如何写一个又好又快的日志库?
- LayaBox---TypeScript---结构
- 中大型商业银行堡垒机升级改造方案!必看!
猜你喜欢
随机推荐
如何最简单、通俗地理解爬虫的Scrapy框架?
1319_STM32F103串口BootLoader移植
Three ways to set a specific device UWP XAML view
立方度量(Cubic Metric)
SPSS-unary regression practice
Zynq Fpga图像处理之AXI接口应用——axi_lite接口使用
mdk5.14无法烧录
国内的PMP证书含金量到底如何
visual studio 2015 warning MSB3246
dotnet compress Stream or file using lz4net
Yolov7:Trainable bag-of-freebies sets new state-of-the-art for real-time objectdetectors
搬走地下空间开发利用“绊脚石” 中地数码取得地下空间透明化技术突破
bracket matching
数电快速入门(五)(编码器的介绍以及通用编码器74LS148和74LS147的介绍)
[21天学习挑战赛——内核笔记](二)——设备树基础
Spss-一元回归实操
DSPE-PEG-Aldehyde, DSPE-PEG-CHO, Phospholipid-Polyethylene Glycol-Aldehyde A hydrophobic 18-carbon phospholipid
unity2D横版游戏教程8-音效
unity2D横版游戏教程9-对话框dialog
Ramnit感染型病毒分析与处置









