@@ -111,15 +111,15 @@ PointCloud2Iterators prepareMessageAndCreateIterators(sensor_msgs::PointCloud2&
111
111
msg.is_bigendian = false ;
112
112
msg.is_dense = false ;
113
113
114
- int up_to_field = 27 ;
114
+ int up_to_field = 25 ;
115
115
if (fill_fields_up_to_stage == RAW_POINT)
116
116
up_to_field = 8 ;
117
117
else if (fill_fields_up_to_stage == RANGE_IMAGE_GENERATION)
118
118
up_to_field = 15 ;
119
119
else if (fill_fields_up_to_stage == GROUND_POINT_SEGMENTATION)
120
- up_to_field = 20 ;
120
+ up_to_field = 18 ;
121
121
else if (fill_fields_up_to_stage == CONTINUOUS_CLUSTERING)
122
- up_to_field = 27 ;
122
+ up_to_field = 25 ;
123
123
124
124
sensor_msgs::PointCloud2Modifier output_modifier (msg);
125
125
output_modifier.setPointCloud2Fields (up_to_field,
@@ -174,12 +174,6 @@ PointCloud2Iterators prepareMessageAndCreateIterators(sensor_msgs::PointCloud2&
174
174
" debug_ground_point_label" ,
175
175
1 ,
176
176
sensor_msgs::PointField::UINT8,
177
- " debug_local_column_index_of_left_ground_neighbor" ,
178
- 1 ,
179
- sensor_msgs::PointField::INT32,
180
- " debug_local_column_index_of_right_ground_neighbor" ,
181
- 1 ,
182
- sensor_msgs::PointField::INT32,
183
177
" height_over_ground" ,
184
178
1 ,
185
179
sensor_msgs::PointField::FLOAT32,
@@ -227,8 +221,6 @@ PointCloud2Iterators prepareMessageAndCreateIterators(sensor_msgs::PointCloud2&
227
221
return iterators;
228
222
iterators.iter_gp_label_out = {msg, " ground_point_label" };
229
223
iterators.iter_dbg_gp_label_out = {msg, " debug_ground_point_label" };
230
- iterators.iter_dbg_c_n_left_out = {msg, " debug_local_column_index_of_left_ground_neighbor" };
231
- iterators.iter_dbg_c_n_right_out = {msg, " debug_local_column_index_of_right_ground_neighbor" };
232
224
iterators.iter_height_over_ground_out = {msg, " height_over_ground" };
233
225
if (fill_fields_up_to_stage == GROUND_POINT_SEGMENTATION)
234
226
return iterators;
@@ -278,8 +270,6 @@ void addPointToMessage(PointCloud2Iterators& container,
278
270
// ground point segmentation
279
271
*(*container.iter_gp_label_out + data_index_message) = point.ground_point_label ;
280
272
*(*container.iter_dbg_gp_label_out + data_index_message) = point.debug_ground_point_label ;
281
- *(*container.iter_dbg_c_n_left_out + data_index_message) = point.local_column_index_of_left_ground_neighbor ;
282
- *(*container.iter_dbg_c_n_right_out + data_index_message) = point.local_column_index_of_right_ground_neighbor ;
283
273
*(*container.iter_height_over_ground_out + data_index_message) = point.height_over_ground ;
284
274
if (fill_fields_up_to_stage == GROUND_POINT_SEGMENTATION)
285
275
return ;
0 commit comments