Apollo
11.0
自动驾驶开放平台
scenario_manager.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_manager.h
"
18
19
#include "
modules/prediction/common/prediction_gflags.h
"
20
21
namespace
apollo
{
22
namespace
prediction {
23
24
void
ScenarioManager::Run
(
ContainerManager
* container_manager) {
25
auto
environment_features =
26
FeatureExtractor::ExtractEnvironmentFeatures
(container_manager);
27
28
auto
ptr_scenario_features =
ScenarioAnalyzer::Analyze
(environment_features);
29
30
current_scenario_ = ptr_scenario_features->scenario();
31
32
// TODO(all) other functionalities including lane, junction filters
33
}
34
35
const
Scenario
ScenarioManager::scenario
()
const
{
return
current_scenario_; }
36
37
}
// namespace prediction
38
}
// namespace apollo
apollo::prediction::ContainerManager
Definition
container_manager.h:40
apollo::prediction::FeatureExtractor::ExtractEnvironmentFeatures
static EnvironmentFeatures ExtractEnvironmentFeatures(ContainerManager *container_manager)
Extract features for scenario analysis
Definition
feature_extractor.cc:31
apollo::prediction::ScenarioAnalyzer::Analyze
static std::shared_ptr< ScenarioFeatures > Analyze(const EnvironmentFeatures &environment_features)
Definition
scenario_analyzer.cc:26
apollo::prediction::ScenarioManager::scenario
const Scenario scenario() const
Get scenario analysis result
Definition
scenario_manager.cc:35
apollo::prediction::ScenarioManager::Run
void Run(ContainerManager *container_manager)
Run scenario analysis
Definition
scenario_manager.cc:24
apollo
class register implement
Definition
arena_queue.h:37
scenario_manager.h
prediction_gflags.h
apollo::prediction::Scenario
Definition
scenario.proto:5
modules
prediction
scenario
scenario_manager.cc