Apollo 10.0
自动驾驶开放平台
mrf_track_object_distance.h
浏览该文件的文档.
1/******************************************************************************
2 * Copyright 2023 The Apollo Authors. All Rights Reserved.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 *****************************************************************************/
16#pragma once
17
18#include <map>
19#include <string>
20#include <vector>
21
26
27namespace apollo {
28namespace perception {
29namespace radar4d {
30
32
34
36 public:
39
47 bool Init(const MrfTrackObjectDistanceInitOptions& options =
49
57 float ComputeDistance(const TrackedObjectConstPtr& object,
58 const MrfTrackDataConstPtr& track) const;
59
65 std::string Name() const { return "MrfTrackObjectDistance"; }
66
67 protected:
68 std::map<std::string, std::vector<float>> foreground_weight_table_;
69 std::map<std::string, std::vector<float>> background_weight_table_;
70
71 static const std::vector<float> kForegroundDefaultWeight;
72 static const std::vector<float> kBackgroundDefaultWeight;
73
75}; // class MrfTrackObjectDistance
76
77} // namespace radar4d
78} // namespace perception
79} // namespace apollo
std::map< std::string, std::vector< float > > foreground_weight_table_
bool Init(const MrfTrackObjectDistanceInitOptions &options=MrfTrackObjectDistanceInitOptions())
Init mrf track object distance
std::map< std::string, std::vector< float > > background_weight_table_
float ComputeDistance(const TrackedObjectConstPtr &object, const MrfTrackDataConstPtr &track) const
Compute object track distance
std::shared_ptr< const TrackedObject > TrackedObjectConstPtr
std::shared_ptr< const MrfTrackData > MrfTrackDataConstPtr
class register implement
Definition arena_queue.h:37