From 33413eab2928f324b6c2253c198479d979ec9921 Mon Sep 17 00:00:00 2001 From: havoc420ubuntu <2993167370@qq.com> Date: Wed, 14 May 2025 11:57:15 +0000 Subject: [PATCH] =?UTF-8?q?=F0=9F=A7=AA=20add=20rgb-camera=20height=20get?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- test/ros2/rgb-camera/{location-1.py => location.py} | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) rename test/ros2/rgb-camera/{location-1.py => location.py} (97%) diff --git a/test/ros2/rgb-camera/location-1.py b/test/ros2/rgb-camera/location.py similarity index 97% rename from test/ros2/rgb-camera/location-1.py rename to test/ros2/rgb-camera/location.py index 7dcc1b9..8822672 100644 --- a/test/ros2/rgb-camera/location-1.py +++ b/test/ros2/rgb-camera/location.py @@ -33,7 +33,7 @@ class CameraHeightMonitor(Node): # 查询从world坐标系到RGB_camera_link的变换 # 根据您的系统,可能需要修改坐标系名称 transform = self.tf_buffer.lookup_transform( - 'world', # 目标坐标系(通常是世界坐标系) + 'vodom', # 目标坐标系(通常是世界坐标系) 'RGB_camera_link', # 源坐标系(相机坐标系) rclpy.time.Time()) # 获取最新的变换