diff --git a/workspace_python/ros2_ws/src/python_workspace/python_workspace/zed_camera_node.py b/workspace_python/ros2_ws/src/python_workspace/python_workspace/zed_camera_node.py index 1af61b0..c36fa5d 100644 --- a/workspace_python/ros2_ws/src/python_workspace/python_workspace/zed_camera_node.py +++ b/workspace_python/ros2_ws/src/python_workspace/python_workspace/zed_camera_node.py @@ -106,10 +106,10 @@ def preprocess_image(self, image): image_input = ImageInput() image_input.header = Header() - image_input.header.frame_id = 'static_image' # fix with velocity.... + image_input.header.frame_id = 'static_image' # fix image_input.raw_image = raw_img_msg image_input.preprocessed_image = preprocessed_img_msg - image_input.velocity = 0 + image_input.velocity = self.velocity[0] self.input_image_publisher.publish(image_input) toc = time.perf_counter_ns() self.get_logger().info(f"Velocity retrieved: {self.velocity[0]}")