ros-drivers/ros2_ouster_drivers

_range_image resize twice?

jonbakerfish opened this issue · 3 comments

_range_image.data.resize(_width * _height);
_range_image.data.resize(
_width * _height * _bit_depth /
(8 * sizeof(*_range_image.data.data())));

It seems that the first resize is useless.

Agreed. I’m not sure how that got in there. Can you submit a PR to remove? Happy to merge (I’m just on the go on vacation)

Hi @SteveMacenski , just create a PR #124 . Plz have a look :)

Thanks!