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
18
20
21namespace apollo {
22namespace prediction {
23
24void ScenarioManager::Run(ContainerManager* container_manager) {
25 auto environment_features =
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
35const Scenario ScenarioManager::scenario() const { return current_scenario_; }
36
37} // namespace prediction
38} // namespace apollo
static EnvironmentFeatures ExtractEnvironmentFeatures(ContainerManager *container_manager)
Extract features for scenario analysis
static std::shared_ptr< ScenarioFeatures > Analyze(const EnvironmentFeatures &environment_features)
const Scenario scenario() const
Get scenario analysis result
void Run(ContainerManager *container_manager)
Run scenario analysis
class register implement
Definition arena_queue.h:37