Apollo
10.0
自动驾驶开放平台
cost_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
17
#pragma once
18
19
#include <string>
20
21
#include "
modules/prediction/evaluator/evaluator.h
"
22
23
#include "
modules/prediction/container/obstacles/obstacles_container.h
"
24
25
namespace
apollo
{
26
namespace
prediction {
27
28
class
CostEvaluator
:
public
Evaluator
{
29
public
:
33
CostEvaluator
();
34
38
virtual
~CostEvaluator
() =
default
;
39
45
bool
Evaluate
(
Obstacle
* obstacle_ptr,
46
ObstaclesContainer
* obstacles_container)
override
;
47
51
std::string
GetName
()
override
{
return
"COST_EVALUATOR"
; }
52
53
private
:
54
double
ComputeProbability(
const
double
obstacle_length,
55
const
double
obstacle_width,
56
const
LaneSequence
& lane_sequence);
57
58
double
FrontLateralDistanceCost(
const
double
obstacle_length,
59
const
double
obstacle_width,
60
const
LaneSequence
& lane_sequence);
61
};
62
63
}
// namespace prediction
64
}
// namespace apollo
apollo::prediction::CostEvaluator
Definition
cost_evaluator.h:28
apollo::prediction::CostEvaluator::CostEvaluator
CostEvaluator()
Constructor
Definition
cost_evaluator.cc:23
apollo::prediction::CostEvaluator::Evaluate
bool Evaluate(Obstacle *obstacle_ptr, ObstaclesContainer *obstacles_container) override
Override Evaluate
Definition
cost_evaluator.cc:27
apollo::prediction::CostEvaluator::~CostEvaluator
virtual ~CostEvaluator()=default
Destructor
apollo::prediction::CostEvaluator::GetName
std::string GetName() override
Get the name of evaluator.
Definition
cost_evaluator.h:51
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
vehicle
cost_evaluator.h