Apollo 11.0
自动驾驶开放平台
conti_ars_tracker.h
浏览该文件的文档.
1/******************************************************************************
2 * Copyright 2018 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 <memory>
19#include <string>
20#include <vector>
21
22#include "cyber/common/macros.h"
26
27namespace apollo {
28namespace perception {
29namespace radar {
30
32 public:
34 virtual ~ContiArsTracker();
35
43 bool Init(const TrackerInitOptions &options) override;
44
54 bool Track(const base::Frame &detected_frame, const TrackerOptions &options,
55 base::FramePtr tracked_frame) override;
56
57 private:
58 std::shared_ptr<BaseMatcher> matcher_ = nullptr;
59 RadarTrackManager *track_manager_ = nullptr;
60 static double s_tracking_time_win_;
61 void TrackObjects(const base::Frame &radar_frame);
62 void UpdateAssignedTracks(const base::Frame &radar_frame,
63 std::vector<TrackObjectPair> assignments);
64 void UpdateUnassignedTracks(const base::Frame &radar_frame,
65 const std::vector<size_t> &unassigned_tracks);
66 void DeleteLostTracks();
67 void CreateNewTracks(const base::Frame &radar_frame,
68 const std::vector<size_t> &unassigned_objects);
69 void CollectTrackedFrame(base::FramePtr tracked_frame);
70
72};
73
74} // namespace radar
75} // namespace perception
76} // namespace apollo
bool Init(const TrackerInitOptions &options) override
Init ContiArsTracker config
bool Track(const base::Frame &detected_frame, const TrackerOptions &options, base::FramePtr tracked_frame) override
Tracking objects.
#define DISALLOW_COPY_AND_ASSIGN(classname)
Definition macros.h:48
std::shared_ptr< Frame > FramePtr
Definition frame.h:60
class register implement
Definition arena_queue.h:37