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()) # 获取最新的变换