Apollo
10.0
自动驾驶开放平台
cyclist_keep_lane_evaluator.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
22
#pragma once
23
24
#include <string>
25
26
#include "
modules/prediction/evaluator/evaluator.h
"
27
28
#include "
modules/prediction/container/obstacles/obstacles_container.h
"
29
34
namespace
apollo
{
35
namespace
prediction {
36
37
class
CyclistKeepLaneEvaluator
:
public
Evaluator
{
38
public
:
42
CyclistKeepLaneEvaluator
();
43
47
virtual
~CyclistKeepLaneEvaluator
() =
default
;
48
53
bool
Evaluate
(
Obstacle
* obstacle_ptr,
54
ObstaclesContainer
* obstacles_container)
override
;
55
59
std::string
GetName
()
override
{
return
"CYCLIST_KEEP_LANE_EVALUATOR"
; }
60
61
private
:
62
double
ComputeProbability(
const
std::string& curr_lane_id,
63
const
LaneSequence
& lane_sequence);
64
};
65
66
}
// namespace prediction
67
}
// namespace apollo
apollo::prediction::CyclistKeepLaneEvaluator
Definition
cyclist_keep_lane_evaluator.h:37
apollo::prediction::CyclistKeepLaneEvaluator::Evaluate
bool Evaluate(Obstacle *obstacle_ptr, ObstaclesContainer *obstacles_container) override
Override Evaluate
Definition
cyclist_keep_lane_evaluator.cc:26
apollo::prediction::CyclistKeepLaneEvaluator::CyclistKeepLaneEvaluator
CyclistKeepLaneEvaluator()
Constructor
Definition
cyclist_keep_lane_evaluator.cc:22
apollo::prediction::CyclistKeepLaneEvaluator::~CyclistKeepLaneEvaluator
virtual ~CyclistKeepLaneEvaluator()=default
Destructor
apollo::prediction::CyclistKeepLaneEvaluator::GetName
std::string GetName() override
Get the name of evaluator.
Definition
cyclist_keep_lane_evaluator.h:59
apollo::prediction::Evaluator
Definition
evaluator.h:40
apollo::prediction::Obstacle
Prediction obstacle.
Definition
obstacle.h:52
apollo::prediction::ObstaclesContainer
Definition
obstacles_container.h:39
apollo
class register implement
Definition
arena_queue.h:37
obstacles_container.h
Obstacles container
evaluator.h
Define the data container base class
apollo::prediction::LaneSequence
Definition
lane_graph.proto:60
modules
prediction
evaluator
cyclist
cyclist_keep_lane_evaluator.h