[sensor_msgs] Fix row_step when resizing organized PointCloud2 - #340
[sensor_msgs] Fix row_step when resizing organized PointCloud2#3401visio wants to merge 1 commit into
Conversation
Signed-off-by: xmc <1802974410@qq.com>
|
Tick the box to add this pull request to the merge queue (same as
|
|
Pulls: #340 |
|
Pulls: #340 |
Fixes #320
PointCloud2Modifier::resize(width, height) reused the flat resize(size)
path, then updated width and height without recomputing row_step. This
left row_step equal to the total data size instead of one row's byte size.
Set row_step to width * point_step and add a regression test covering a
non-square organized cloud and its backing data size.
Validation: