Apollo
6.0
Open source self driving car software
modules
perception
lidar
lib
interface
base_ground_detector.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
18
#include <string>
19
20
#include "
cyber/common/macros.h
"
21
#include "
modules/perception/lib/registerer/registerer.h
"
22
#include "
modules/perception/lidar/common/lidar_frame.h
"
23
24
namespace
apollo
{
25
namespace
perception {
26
namespace
lidar {
27
28
struct
GroundDetectorInitOptions
{};
29
30
struct
GroundDetectorOptions
{};
31
32
class
BaseGroundDetector
{
33
public
:
34
BaseGroundDetector
() =
default
;
35
36
virtual
~
BaseGroundDetector
() =
default
;
37
38
virtual
bool
Init
(
const
GroundDetectorInitOptions
& options =
39
GroundDetectorInitOptions
()) = 0;
40
41
// @brief: detect ground points from point cloud.
42
// @param [in]: options
43
// @param [in/out]: frame
44
// non_ground_indices should be filled, required,
45
// label field of point cloud can be filled, optional,
46
virtual
bool
Detect(
const
GroundDetectorOptions
& options,
47
LidarFrame
* frame) = 0;
48
49
virtual
std::string Name()
const
= 0;
50
51
private
:
52
DISALLOW_COPY_AND_ASSIGN
(
BaseGroundDetector
);
53
};
// class BaseGroundDetector
54
55
PERCEPTION_REGISTER_REGISTERER
(
BaseGroundDetector
);
56
#define PERCEPTION_REGISTER_GROUNDDETECTOR(name) \
57
PERCEPTION_REGISTER_CLASS(BaseGroundDetector, name)
58
59
}
// namespace lidar
60
}
// namespace perception
61
}
// namespace apollo
apollo
PlanningContext is the runtime context in planning. It is persistent across multiple frames...
Definition:
atomic_hash_map.h:25
registerer.h
DISALLOW_COPY_AND_ASSIGN
#define DISALLOW_COPY_AND_ASSIGN(classname)
Definition:
macros.h:48
macros.h
apollo::perception::lidar::GroundDetectorInitOptions
Definition:
base_ground_detector.h:28
apollo::perception::lidar::GroundDetectorOptions
Definition:
base_ground_detector.h:30
apollo::perception::lidar::BaseGroundDetector
Definition:
base_ground_detector.h:32
apollo::cyber::Init
bool Init(const char *binary_name)
apollo::perception::lidar::PERCEPTION_REGISTER_REGISTERER
PERCEPTION_REGISTER_REGISTERER(BaseOneShotTypeFusion)
apollo::perception::lidar::LidarFrame
Definition:
lidar_frame.h:33
lidar_frame.h
Generated by
1.8.13