From b619a88c7a4deb94196afb07fa28ad368f08fe06 Mon Sep 17 00:00:00 2001 From: Jon Date: Tue, 3 Jan 2023 03:27:34 +0800 Subject: [PATCH] [bug fix] remove redundant _range_image.resize (#124) bug fix according to https://github.com/ros-drivers/ros2_ouster_drivers/issues/123 --- ros2_ouster/include/ros2_ouster/processors/image_processor.hpp | 1 - 1 file changed, 1 deletion(-) diff --git a/ros2_ouster/include/ros2_ouster/processors/image_processor.hpp b/ros2_ouster/include/ros2_ouster/processors/image_processor.hpp index 3fc0049..38d4d12 100644 --- a/ros2_ouster/include/ros2_ouster/processors/image_processor.hpp +++ b/ros2_ouster/include/ros2_ouster/processors/image_processor.hpp @@ -93,7 +93,6 @@ class ImageProcessor : public ros2_ouster::DataProcessorInterface _range_image.step = _width; _range_image.encoding = "mono8"; _range_image.header.frame_id = _frame; - _range_image.data.resize(_width * _height); _range_image.data.resize( _width * _height * _bit_depth / (8 * sizeof(*_range_image.data.data())));