fix: 修复打砖块游戏碰撞穿透bug,添加渐进提速机制
This commit is contained in:
@@ -26,8 +26,7 @@ if _version_not_supported:
|
||||
|
||||
|
||||
class SensorPushStub(object):
|
||||
"""传感器数据推送服务 —— Rust 端作为 gRPC client 推送实时帧
|
||||
"""
|
||||
"""Missing associated documentation comment in .proto file."""
|
||||
|
||||
def __init__(self, channel):
|
||||
"""Constructor.
|
||||
@@ -35,16 +34,15 @@ class SensorPushStub(object):
|
||||
Args:
|
||||
channel: A grpc.Channel.
|
||||
"""
|
||||
self.Upload = channel.stream_unary(
|
||||
self.Upload = channel.stream_stream(
|
||||
'/sensor_stream.SensorPush/Upload',
|
||||
request_serializer=sensor__stream__pb2.SensorFrame.SerializeToString,
|
||||
response_deserializer=sensor__stream__pb2.UploadResponse.FromString,
|
||||
response_deserializer=sensor__stream__pb2.PztAngleResponse.FromString,
|
||||
_registered_method=True)
|
||||
|
||||
|
||||
class SensorPushServicer(object):
|
||||
"""传感器数据推送服务 —— Rust 端作为 gRPC client 推送实时帧
|
||||
"""
|
||||
"""Missing associated documentation comment in .proto file."""
|
||||
|
||||
def Upload(self, request_iterator, context):
|
||||
"""Missing associated documentation comment in .proto file."""
|
||||
@@ -55,10 +53,10 @@ class SensorPushServicer(object):
|
||||
|
||||
def add_SensorPushServicer_to_server(servicer, server):
|
||||
rpc_method_handlers = {
|
||||
'Upload': grpc.stream_unary_rpc_method_handler(
|
||||
'Upload': grpc.stream_stream_rpc_method_handler(
|
||||
servicer.Upload,
|
||||
request_deserializer=sensor__stream__pb2.SensorFrame.FromString,
|
||||
response_serializer=sensor__stream__pb2.UploadResponse.SerializeToString,
|
||||
response_serializer=sensor__stream__pb2.PztAngleResponse.SerializeToString,
|
||||
),
|
||||
}
|
||||
generic_handler = grpc.method_handlers_generic_handler(
|
||||
@@ -69,8 +67,7 @@ def add_SensorPushServicer_to_server(servicer, server):
|
||||
|
||||
# This class is part of an EXPERIMENTAL API.
|
||||
class SensorPush(object):
|
||||
"""传感器数据推送服务 —— Rust 端作为 gRPC client 推送实时帧
|
||||
"""
|
||||
"""Missing associated documentation comment in .proto file."""
|
||||
|
||||
@staticmethod
|
||||
def Upload(request_iterator,
|
||||
@@ -83,12 +80,12 @@ class SensorPush(object):
|
||||
wait_for_ready=None,
|
||||
timeout=None,
|
||||
metadata=None):
|
||||
return grpc.experimental.stream_unary(
|
||||
return grpc.experimental.stream_stream(
|
||||
request_iterator,
|
||||
target,
|
||||
'/sensor_stream.SensorPush/Upload',
|
||||
sensor__stream__pb2.SensorFrame.SerializeToString,
|
||||
sensor__stream__pb2.UploadResponse.FromString,
|
||||
sensor__stream__pb2.PztAngleResponse.FromString,
|
||||
options,
|
||||
channel_credentials,
|
||||
insecure,
|
||||
@@ -101,8 +98,7 @@ class SensorPush(object):
|
||||
|
||||
|
||||
class ExportProcessorStub(object):
|
||||
"""导出后处理服务 —— Rust 导出 CSV 后将路径发给 Python 做梯度过滤
|
||||
"""
|
||||
"""Missing associated documentation comment in .proto file."""
|
||||
|
||||
def __init__(self, channel):
|
||||
"""Constructor.
|
||||
@@ -118,8 +114,7 @@ class ExportProcessorStub(object):
|
||||
|
||||
|
||||
class ExportProcessorServicer(object):
|
||||
"""导出后处理服务 —— Rust 导出 CSV 后将路径发给 Python 做梯度过滤
|
||||
"""
|
||||
"""Missing associated documentation comment in .proto file."""
|
||||
|
||||
def ProcessFile(self, request, context):
|
||||
"""Missing associated documentation comment in .proto file."""
|
||||
@@ -144,8 +139,7 @@ def add_ExportProcessorServicer_to_server(servicer, server):
|
||||
|
||||
# This class is part of an EXPERIMENTAL API.
|
||||
class ExportProcessor(object):
|
||||
"""导出后处理服务 —— Rust 导出 CSV 后将路径发给 Python 做梯度过滤
|
||||
"""
|
||||
"""Missing associated documentation comment in .proto file."""
|
||||
|
||||
@staticmethod
|
||||
def ProcessFile(request,
|
||||
|
||||
Reference in New Issue
Block a user