Skip to content

Commit 7ef86ca

Browse files
committed
(tmp) change perception header times
tmp perception
1 parent 6743182 commit 7ef86ca

File tree

7 files changed

+8
-4
lines changed

7 files changed

+8
-4
lines changed

perception/detected_object_feature_remover/src/detected_object_feature_remover.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ void DetectedObjectFeatureRemover::objectCallback(
3030
{
3131
DetectedObjects output;
3232
convert(*input, output);
33+
output.header.stamp = this->now();
3334
pub_->publish(output);
3435
}
3536

perception/detected_object_validation/src/object_lanelet_filter.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,7 @@ void ObjectLaneletFilterNode::objectCallback(
115115
}
116116
++index;
117117
}
118+
output_object_msg.header.stamp = this->now();
118119
object_pub_->publish(output_object_msg);
119120
}
120121

perception/detected_object_validation/src/obstacle_pointcloud_based_validator.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -343,7 +343,7 @@ void ObstaclePointCloudBasedValidator::onObjectsAndObstaclePointCloud(
343343
removed_objects.objects.push_back(object);
344344
}
345345
}
346-
346+
output.header.stamp = this->now();
347347
objects_pub_->publish(output);
348348
if (debugger_) {
349349
debugger_->publishRemovedObjects(removed_objects);

perception/detection_by_tracker/src/detection_by_tracker_core.cpp

+2-1
Original file line numberDiff line numberDiff line change
@@ -219,6 +219,7 @@ void DetectionByTracker::onObjects(
219219
!available_trackers ||
220220
!object_recognition_utils::transformObjects(
221221
objects, input_msg->header.frame_id, tf_buffer_, transformed_objects)) {
222+
detected_objects.header.stamp = this->now();
222223
objects_pub_->publish(detected_objects);
223224
return;
224225
}
@@ -248,7 +249,7 @@ void DetectionByTracker::onObjects(
248249
for (const auto & divided_object : divided_objects.feature_objects) {
249250
detected_objects.objects.push_back(divided_object.object);
250251
}
251-
252+
detected_objects.header.stamp = this->now();
252253
objects_pub_->publish(detected_objects);
253254
}
254255

perception/lidar_centerpoint/src/node.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ void LidarCenterPointNode::pointCloudCallback(
160160
output_msg.objects = iou_bev_nms_.apply(raw_objects);
161161

162162
detection_class_remapper_.mapClasses(output_msg);
163-
163+
output_msg.header.stamp = this->now();
164164
if (objects_sub_count > 0) {
165165
objects_pub_->publish(output_msg);
166166
}

perception/map_based_prediction/src/map_based_prediction_node.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1106,7 +1106,7 @@ void MapBasedPredictionNode::objectsCallback(const TrackedObjects::ConstSharedPt
11061106
}
11071107
}
11081108
}
1109-
1109+
output.header.stamp = this->now();
11101110
// Publish Results
11111111
pub_objects_->publish(output);
11121112
pub_debug_markers_->publish(debug_markers);

perception/occupancy_grid_map_outlier_filter/src/occupancy_grid_map_outlier_filter_nodelet.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -304,6 +304,7 @@ void OccupancyGridMapOutlierFilterComponent::onOccupancyGridMapAndPointCloud2(
304304
ogm_frame_filtered_pc, *tf2_, base_link_frame_, *base_link_frame_filtered_pc_ptr)) {
305305
return;
306306
}
307+
base_link_frame_filtered_pc_ptr->header.stamp = this->now();
307308
pointcloud_pub_->publish(std::move(base_link_frame_filtered_pc_ptr));
308309
}
309310
if (debugger_ptr_) {

0 commit comments

Comments
 (0)