fix: 修复打砖块游戏碰撞穿透bug,添加渐进提速机制
This commit is contained in:
@@ -2,17 +2,14 @@ syntax = "proto3";
|
||||
|
||||
package sensor_stream;
|
||||
|
||||
// 传感器数据推送服务 —— Rust 端作为 gRPC client 推送实时帧
|
||||
service SensorPush {
|
||||
rpc Upload (stream SensorFrame) returns (UploadResponse);
|
||||
rpc Upload(stream SensorFrame) returns (stream PztAngleResponse);
|
||||
}
|
||||
|
||||
// 导出后处理服务 —— Rust 导出 CSV 后将路径发给 Python 做梯度过滤
|
||||
service ExportProcessor {
|
||||
rpc ProcessFile (ProcessRequest) returns (ProcessResponse);
|
||||
rpc ProcessFile(ProcessRequest) returns (ProcessResponse);
|
||||
}
|
||||
|
||||
// 一帧传感器数据
|
||||
message SensorFrame {
|
||||
uint64 seq = 1;
|
||||
uint64 timestamp_ms = 2;
|
||||
@@ -23,27 +20,27 @@ message SensorFrame {
|
||||
uint32 dts_ms = 7;
|
||||
}
|
||||
|
||||
// 上传确认响应
|
||||
message UploadResponse {
|
||||
bool ok = 1;
|
||||
uint64 frames_received = 2;
|
||||
string message = 3;
|
||||
message PztAngleResponse {
|
||||
uint64 seq = 1;
|
||||
uint64 timestamp_ms = 2;
|
||||
float angle = 3;
|
||||
uint32 dts_ms = 4;
|
||||
bool ok = 5;
|
||||
string message = 6;
|
||||
}
|
||||
|
||||
// 导出处理请求
|
||||
message ProcessRequest {
|
||||
string csv_path = 1; // 导出的 CSV 文件路径
|
||||
bool save_as_xlsx = 2; // 是否以 xlsx 保存(删除源 CSV)
|
||||
string csv_path = 1;
|
||||
bool save_as_xlsx = 2;
|
||||
}
|
||||
|
||||
// 导出处理响应
|
||||
message ProcessResponse {
|
||||
bool ok = 1;
|
||||
string output_path = 2; // 输出文件路径
|
||||
uint32 groups_used = 3; // 分组数
|
||||
double mean_value = 4; // 均值
|
||||
double threshold = 5; // 梯度阈值
|
||||
uint32 rows_total = 6; // 原始行数
|
||||
uint32 rows_kept = 7; // 保留行数
|
||||
string output_path = 2;
|
||||
uint32 groups_used = 3;
|
||||
double mean_value = 4;
|
||||
double threshold = 5;
|
||||
uint32 rows_total = 6;
|
||||
uint32 rows_kept = 7;
|
||||
string message = 8;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user