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
"
23
#include "
modules/perception/radar_detection/interface/base_tracker.h
"
24
#include "
modules/perception/radar_detection/lib/tracker/common/radar_track_manager.h
"
25
#include "
modules/perception/radar_detection/lib/tracker/matcher/hm_matcher.h
"
26
27
namespace
apollo
{
28
namespace
perception {
29
namespace
radar {
30
31
class
ContiArsTracker
:
public
BaseTracker
{
32
public
:
33
ContiArsTracker
();
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
71
DISALLOW_COPY_AND_ASSIGN
(
ContiArsTracker
);
72
};
73
74
}
// namespace radar
75
}
// namespace perception
76
}
// namespace apollo
apollo::perception::radar::BaseTracker
Definition
base_tracker.h:33
apollo::perception::radar::ContiArsTracker
Definition
conti_ars_tracker.h:31
apollo::perception::radar::ContiArsTracker::~ContiArsTracker
virtual ~ContiArsTracker()
Definition
conti_ars_tracker.cc:35
apollo::perception::radar::ContiArsTracker::Init
bool Init(const TrackerInitOptions &options) override
Init ContiArsTracker config
Definition
conti_ars_tracker.cc:41
apollo::perception::radar::ContiArsTracker::ContiArsTracker
ContiArsTracker()
Definition
conti_ars_tracker.cc:30
apollo::perception::radar::ContiArsTracker::Track
bool Track(const base::Frame &detected_frame, const TrackerOptions &options, base::FramePtr tracked_frame) override
Tracking objects.
Definition
conti_ars_tracker.cc:77
apollo::perception::radar::RadarTrackManager
Definition
radar_track_manager.h:28
macros.h
DISALLOW_COPY_AND_ASSIGN
#define DISALLOW_COPY_AND_ASSIGN(classname)
Definition
macros.h:48
hm_matcher.h
apollo::perception::base::FramePtr
std::shared_ptr< Frame > FramePtr
Definition
frame.h:60
apollo
class register implement
Definition
arena_queue.h:37
base_tracker.h
radar_track_manager.h
apollo::perception::base::Frame
Definition
frame.h:32
apollo::perception::radar::TrackerInitOptions
Definition
base_tracker.h:29
apollo::perception::radar::TrackerOptions
Definition
base_tracker.h:31
modules
perception
radar_detection
lib
tracker
conti_ars_tracker
conti_ars_tracker.h