当前位置:网站首页>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.
边栏推荐
- PCBA方案设计——厨房语音秤芯片方案
- SPSS-unary regression practice
- dotnet 使用 lz4net 压缩 Stream 或文件
- LayaBox---TypeScript---结构
- Three ways to set a specific device UWP XAML view
- OD-Model【6】:YOLOv2
- 基于 Milvus 和 ResNet50 的图像搜索(部署及应用)
- Dotnet using WMI software acquisition system installation
- [21 days learning challenge - kernel notes] (2), based in the device tree
- Common methods of js's new Function()
猜你喜欢

PMP证书在哪些行业有用?

如何最简单、通俗地理解爬虫的Scrapy框架?

如何为Web3.0世界启动完美的DAO

2、字符集-编码-解码

PRIMAL: Pathfinding via Reinforcement and Imitation Multi-Agent Learning 代码解析

如何一键重装Win11系统 一键重装系统方法

C language knowledge (1) - overview of C language, data types

国际项目管理师PMP证书,值得考嘛?

ue unreal 虚幻 高分辨率无缩放 编辑器字太小 调整编辑器整体缩放

【uiautomation】微信好友列表获取(存储到txt中)
随机推荐
《剑指offer》刷题分类
零基础都能拿捏的七夕浪漫代码,快去表白或去制造惊喜吧
milvus配置相关
立方度量(Cubic Metric)
DSPE-PEG-Aldehyde, DSPE-PEG-CHO, Phospholipid-Polyethylene Glycol-Aldehyde A hydrophobic 18-carbon phospholipid
DGL安装教程
驱动点云格式修改带来的效率提升
[2022 Hangzhou Electric Power Multi-School 5 1012 Questions Buy Figurines] Application of STL
LayaBox---TypeScript---举例
Android 面试——如何写一个又好又快的日志库?
[21 days learning challenge - kernel notes] (2), based in the device tree
STM32MP157A驱动开发 | 01- 板载LED作为系统心跳指示灯
AI/ML无线通信
webmine网页挖矿木马分析与处置
路由中的meta、params传参的一些问题(可传不可传,为空,搭配,点击传递多次参数报错)
【QT】回调函数的实现
[21天学习挑战赛——内核笔记](二)——设备树基础
【2022牛客多校5 A题 Don‘t Starve】DP
拼多多开放平台订单信息查询接口【pdd.order.basic.list.get订单基础信息列表查询接口(根据成交时间)】代码对接教程
boostrap多选PID查找端口 window