Commit 9f3633d 1 parent 453d41c commit 9f3633d Copy full SHA for 9f3633d
File tree 1 file changed +2
-2
lines changed
perception/map_based_prediction/src
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -1360,15 +1360,15 @@ void MapBasedPredictionNode::removeOldObjectsHistory(
1360
1360
const double latest_object_time = rclcpp::Time (object_data.back ().header .stamp ).seconds ();
1361
1361
1362
1362
// Delete Old Objects
1363
- if (current_time - latest_object_time > 2.0 ) {
1363
+ if (current_time - latest_object_time > object_buffer_time_length_ ) {
1364
1364
invalid_object_id.push_back (object_id);
1365
1365
continue ;
1366
1366
}
1367
1367
1368
1368
// Delete old information
1369
1369
while (!object_data.empty ()) {
1370
1370
const double post_object_time = rclcpp::Time (object_data.front ().header .stamp ).seconds ();
1371
- if (current_time - post_object_time > 2.0 ) {
1371
+ if (current_time - post_object_time > object_buffer_time_length_ ) {
1372
1372
// Delete Old Position
1373
1373
object_data.pop_front ();
1374
1374
} else {
You can’t perform that action at this time.
0 commit comments