Apollo
11.0
自动驾驶开放平台
junction_scenario_features.cc
浏览该文件的文档.
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
#include "
modules/prediction/scenario/scenario_features/junction_scenario_features.h
"
18
19
namespace
apollo
{
20
namespace
prediction {
21
22
JunctionScenarioFeatures::JunctionScenarioFeatures
() {
23
scenario_
.set_type(
Scenario::JUNCTION
);
24
}
25
26
JunctionScenarioFeatures::~JunctionScenarioFeatures
() {}
27
28
void
JunctionScenarioFeatures::BuildJunctionScenarioFeatures
(
29
const
EnvironmentFeatures
& environment_features) {
30
// ACHECK(environment_features.has_front_junction());
31
scenario_
.set_junction_id(environment_features.
GetFrontJunction
().first);
32
}
33
34
}
// namespace prediction
35
}
// namespace apollo
apollo::prediction::EnvironmentFeatures
Definition
environment_features.h:29
apollo::prediction::EnvironmentFeatures::GetFrontJunction
std::pair< std::string, double > GetFrontJunction() const
Definition
environment_features.cc:130
apollo::prediction::JunctionScenarioFeatures::JunctionScenarioFeatures
JunctionScenarioFeatures()
Definition
junction_scenario_features.cc:22
apollo::prediction::JunctionScenarioFeatures::BuildJunctionScenarioFeatures
void BuildJunctionScenarioFeatures(const EnvironmentFeatures &environment_features)
Definition
junction_scenario_features.cc:28
apollo::prediction::JunctionScenarioFeatures::~JunctionScenarioFeatures
virtual ~JunctionScenarioFeatures()
Definition
junction_scenario_features.cc:26
apollo::prediction::ScenarioFeatures::scenario_
Scenario scenario_
Definition
scenario_features.h:37
junction_scenario_features.h
apollo
class register implement
Definition
arena_queue.h:37
apollo::prediction::Scenario::JUNCTION
@ JUNCTION
Definition
scenario.proto:11
modules
prediction
scenario
scenario_features
junction_scenario_features.cc