当前位置:网站首页>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.
边栏推荐
- matlab drawing
- JWT actively checks whether the Token has expired
- 开发deepstram的自定义插件,使用gst-dseaxmple插件进行扩充,实现deepstream图像输出前的预处理,实现图像自定义绘制图(精四)
- mdk5.14无法烧录
- 【2022杭电多校5 1012题 Buy Figurines】STL的运用
- 【QT】回调函数的实现
- NFT宝典:你需要知道NFT的术语和定义
- PRIMAL: Pathfinding via Reinforcement and Imitation Multi-Agent Learning Code Analysis
- 27.降维
- dotnet 启动 JIT 多核心编译提升启动性能
猜你喜欢
88.(cesium之家)cesium聚合图
【QT】回调函数的实现
Hands-on Deep Learning_NiN
动手学深度学习_NiN
LayaBox---TypeScript---Problems encountered at first contact
大势所趋之下的nft拍卖,未来艺术品的新赋能
NFT宝典:你需要知道NFT的术语和定义
PRIMAL: Pathfinding via Reinforcement and Imitation Multi-Agent Learning 代码解析
stm32mp157系统移植 | 移植ST官方5.10内核到小熊派开发板
SPSS-unary regression practice
随机推荐
【Programming Ideas】
boostrap多选PID查找端口 window
Arduino 电机测速
【2022杭电多校5 1003 Slipper】多个超级源点+最短路
matlab 画图
Chapter7 : Network-Driven Drug Discovery
3、IO流之字节流和字符流
JWT主动校验Token是否过期
LayaBox---TypeScript---structure
Altium Designer 19.1.18 - 画多边形铜皮挖空时,针对光标胡乱捕获的解决方法
立即升级!WPS Office 出现 0day 高危安全漏洞:可完全接管系统,官方推出紧急更新
LayaBox---TypeScript---结构
88. (the home of cesium) cesium polymerization figure
Three ways to set a specific device UWP XAML view
Zynq Fpga图像处理之AXI接口应用——axi_lite接口使用
dotnet 使用 lz4net 压缩 Stream 或文件
【2022牛客多校5 A题 Don‘t Starve】DP
传奇服务器需要什么配置?传奇服务器租用价格表
AtCoder Beginner Contest 262 D - I Hate Non-integer Number
数电快速入门(二)(复合逻辑运算和逻辑代数的基本定律的介绍)