Apollo  6.0
Open source self driving car software
base_multi_target_tracker.h
Go to the documentation of this file.
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 #include <string>
18 
19 #include "cyber/common/macros.h"
22 
23 namespace apollo {
24 namespace perception {
25 namespace lidar {
26 
28 
30 
32  public:
33  BaseMultiTargetTracker() = default;
34 
35  virtual ~BaseMultiTargetTracker() = default;
36 
37  virtual bool Init(const MultiTargetTrackerInitOptions& options =
39 
40  // @brief: track segmented objects, and estimate motion
41  // @param [in]: options
42  // @param [in/out]: tracked object
43  // tracked objects should be filled, required,
44  virtual bool Track(const MultiTargetTrackerOptions& options,
45  LidarFrame* frame) = 0;
46 
47  virtual std::string Name() const = 0;
48 
49  private:
51 }; // class BaseMultiTargetTracker
52 
54 #define PERCEPTION_REGISTER_MULTITARGET_TRACKER(name) \
55  PERCEPTION_REGISTER_CLASS(BaseMultiTargetTracker, name)
56 
57 } // namespace lidar
58 } // namespace perception
59 } // namespace apollo
PlanningContext is the runtime context in planning. It is persistent across multiple frames...
Definition: atomic_hash_map.h:25
Definition: base_multi_target_tracker.h:27
Definition: base_multi_target_tracker.h:31
#define DISALLOW_COPY_AND_ASSIGN(classname)
Definition: macros.h:48
Definition: base_multi_target_tracker.h:29
bool Init(const char *binary_name)
PERCEPTION_REGISTER_REGISTERER(BaseOneShotTypeFusion)
Definition: lidar_frame.h:33