Skip to content

Commit b619a88

Browse files
authored
[bug fix] remove redundant _range_image.resize (#124)
bug fix according to #123
1 parent d59df70 commit b619a88

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

ros2_ouster/include/ros2_ouster/processors/image_processor.hpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,6 @@ class ImageProcessor : public ros2_ouster::DataProcessorInterface
9393
_range_image.step = _width;
9494
_range_image.encoding = "mono8";
9595
_range_image.header.frame_id = _frame;
96-
_range_image.data.resize(_width * _height);
9796
_range_image.data.resize(
9897
_width * _height * _bit_depth /
9998
(8 * sizeof(*_range_image.data.data())));

0 commit comments

Comments
 (0)