From 7d4e87f25ecfdf00008bdea57a7289729541ec21 Mon Sep 17 00:00:00 2001 From: linbo <1034003879@qq.com> Date: Wed, 27 Aug 2025 16:47:47 +0800 Subject: [PATCH] update --- cmvr/camera_client.py | 4 ++-- cmvr/models.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/cmvr/camera_client.py b/cmvr/camera_client.py index 26bea1a..76f51df 100644 --- a/cmvr/camera_client.py +++ b/cmvr/camera_client.py @@ -6,7 +6,7 @@ from typing import Tuple from .enums import CMVRErrorCode from .models import CameraState -from .models import Rs2Intrinsics +from .models import CameraIntrinsics class CameraClient: """相机客户端""" @@ -121,7 +121,7 @@ class CameraClient: protobuf_intrinsics = response.intrinsics # 构造 Python 数据类对象(字段名称完全对应) - python_intrinsics = Rs2Intrinsics( + python_intrinsics = CameraIntrinsics( cx=protobuf_intrinsics.cx, cy=protobuf_intrinsics.cy, fx=protobuf_intrinsics.fx, diff --git a/cmvr/models.py b/cmvr/models.py index 26d8ffb..8bb938d 100644 --- a/cmvr/models.py +++ b/cmvr/models.py @@ -32,7 +32,7 @@ class CameraState: fps: int = 0 @dataclass class CameraIntrinsics: - """相机内参(与Protobuf Rs2Intrinsics对齐)""" + """相机内参(与Protobuf CameraIntrinsics对齐)""" cx: float = 0.0 # 对应Protobuf tag=1 cy: float = 0.0 # 对应Protobuf tag=2 fx: float = 0.0 # 对应Protobuf tag=3