Skip to content

Commit ca813ce

Browse files
committed
Remove deprecated point fields
1 parent f780ee5 commit ca813ce

File tree

2 files changed

+3
-15
lines changed

2 files changed

+3
-15
lines changed

include/continuous_clustering/ros/ros_utils.hpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,6 @@ struct PointCloud2Iterators
4444
// ground point segmentation
4545
std::optional<sensor_msgs::PointCloud2Iterator<uint8_t>> iter_gp_label_out;
4646
std::optional<sensor_msgs::PointCloud2Iterator<uint8_t>> iter_dbg_gp_label_out;
47-
std::optional<sensor_msgs::PointCloud2Iterator<int32_t>> iter_dbg_c_n_left_out;
48-
std::optional<sensor_msgs::PointCloud2Iterator<int32_t>> iter_dbg_c_n_right_out;
4947
std::optional<sensor_msgs::PointCloud2Iterator<float>> iter_height_over_ground_out;
5048

5149
// continuous clustering

src/ros/ros_utils.cpp

Lines changed: 3 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -111,15 +111,15 @@ PointCloud2Iterators prepareMessageAndCreateIterators(sensor_msgs::PointCloud2&
111111
msg.is_bigendian = false;
112112
msg.is_dense = false;
113113

114-
int up_to_field = 27;
114+
int up_to_field = 25;
115115
if (fill_fields_up_to_stage == RAW_POINT)
116116
up_to_field = 8;
117117
else if (fill_fields_up_to_stage == RANGE_IMAGE_GENERATION)
118118
up_to_field = 15;
119119
else if (fill_fields_up_to_stage == GROUND_POINT_SEGMENTATION)
120-
up_to_field = 20;
120+
up_to_field = 18;
121121
else if (fill_fields_up_to_stage == CONTINUOUS_CLUSTERING)
122-
up_to_field = 27;
122+
up_to_field = 25;
123123

124124
sensor_msgs::PointCloud2Modifier output_modifier(msg);
125125
output_modifier.setPointCloud2Fields(up_to_field,
@@ -174,12 +174,6 @@ PointCloud2Iterators prepareMessageAndCreateIterators(sensor_msgs::PointCloud2&
174174
"debug_ground_point_label",
175175
1,
176176
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,
183177
"height_over_ground",
184178
1,
185179
sensor_msgs::PointField::FLOAT32,
@@ -227,8 +221,6 @@ PointCloud2Iterators prepareMessageAndCreateIterators(sensor_msgs::PointCloud2&
227221
return iterators;
228222
iterators.iter_gp_label_out = {msg, "ground_point_label"};
229223
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"};
232224
iterators.iter_height_over_ground_out = {msg, "height_over_ground"};
233225
if (fill_fields_up_to_stage == GROUND_POINT_SEGMENTATION)
234226
return iterators;
@@ -278,8 +270,6 @@ void addPointToMessage(PointCloud2Iterators& container,
278270
// ground point segmentation
279271
*(*container.iter_gp_label_out + data_index_message) = point.ground_point_label;
280272
*(*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;
283273
*(*container.iter_height_over_ground_out + data_index_message) = point.height_over_ground;
284274
if (fill_fields_up_to_stage == GROUND_POINT_SEGMENTATION)
285275
return;

0 commit comments

Comments
 (0)