Commit e8ea100 1 parent 413805a commit e8ea100 Copy full SHA for e8ea100
File tree 1 file changed +3
-4
lines changed
evaluator/perception_online_evaluator/src/metrics
1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -110,10 +110,9 @@ void DetectionCounter::initializeDetectionMap()
110
110
++i) {
111
111
for (const auto & range : getRanges ()) {
112
112
std::string range_str = range.toString ();
113
- if (time_series_counts_.find (i) == time_series_counts_.end ()) {
114
- time_series_counts_[i][range_str] = std::vector<rclcpp::Time>();
115
- seen_uuids_[i][range_str] = std::set<std::string>();
116
- } else if (time_series_counts_[i].find (range_str) == time_series_counts_[i].end ()) {
113
+ if (
114
+ time_series_counts_[i].find (range_str) == time_series_counts_[i].end () ||
115
+ time_series_counts_.find (i) == time_series_counts_.end ()) {
117
116
time_series_counts_[i][range_str] = std::vector<rclcpp::Time>();
118
117
seen_uuids_[i][range_str] = std::set<std::string>();
119
118
}
You can’t perform that action at this time.
0 commit comments