Apollo 11.0
自动驾驶开放平台
mlf_shape_filter.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 <string>
19
22
23namespace apollo {
24namespace perception {
25namespace lidar {
26
28 public:
29 MlfShapeFilter() = default;
30 virtual ~MlfShapeFilter() = default;
38 bool Init(
39 const MlfFilterInitOptions& options = MlfFilterInitOptions()) override;
47 void UpdateWithObject(const MlfFilterOptions& options,
48 const MlfTrackDataConstPtr& track_data,
49 TrackedObjectPtr new_object) override;
57 void UpdateWithoutObject(const MlfFilterOptions& options, double timestamp,
58 MlfTrackDataPtr track_data) override;
64 std::string Name() const override { return "MlfShapeFilter"; }
65
66 protected:
70}; // class MlfShapeFilter
71
72} // namespace lidar
73} // namespace perception
74} // namespace apollo
std::string Name() const override
Get class name
void UpdateWithObject(const MlfFilterOptions &options, const MlfTrackDataConstPtr &track_data, TrackedObjectPtr new_object) override
Updating shape filter with object
algorithm::ConvexHull2D< base::PointDCloud, base::PolygonDType > hull_
bool Init(const MlfFilterInitOptions &options=MlfFilterInitOptions()) override
Init mlf filter
void UpdateWithoutObject(const MlfFilterOptions &options, double timestamp, MlfTrackDataPtr track_data) override
Updating shape filter without object
std::shared_ptr< const MlfTrackData > MlfTrackDataConstPtr
std::shared_ptr< MlfTrackData > MlfTrackDataPtr
std::shared_ptr< TrackedObject > TrackedObjectPtr
class register implement
Definition arena_queue.h:37