Skip to content

Commit 54670dd

Browse files
committed
fix: copy input field to output
Signed-off-by: badai-nguyen <dai.nguyen@tier4.jp>
1 parent 8b72dbc commit 54670dd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

perception/ground_segmentation/src/scan_ground_filter_nodelet.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -610,7 +610,7 @@ void ScanGroundFilterComponent::faster_filter(
610610
output.row_step = no_ground_indices.indices.size() * input->point_step;
611611
output.data.resize(output.row_step);
612612
output.width = no_ground_indices.indices.size();
613-
output.fields.assign(input->fields.begin(), input->fields.begin() + 4);
613+
output.fields = input->fields;
614614
output.is_dense = true;
615615
output.height = input->height;
616616
output.is_bigendian = input->is_bigendian;

0 commit comments

Comments
 (0)