Apollo 10.0
自动驾驶开放平台
control_task_agent.h
浏览该文件的文档.
1/******************************************************************************
2 * Copyright 2017 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 <memory>
25#include <vector>
26
27#include "modules/common_msgs/control_msgs/control_cmd.pb.h"
28#include "modules/common_msgs/planning_msgs/planning.pb.h"
29#include "modules/control/control_component/proto/pipeline.pb.h"
30
35
40namespace apollo {
41namespace control {
42
49 public:
55 common::Status Init(std::shared_ptr<DependencyInjector> injector,
56 const ControlPipeline &control_pipeline);
57
68 const localization::LocalizationEstimate *localization,
69 const canbus::Chassis *chassis, const planning::ADCTrajectory *trajectory,
71
77
78 private:
79 std::vector<std::shared_ptr<ControlTask>> controller_list_;
80 std::shared_ptr<DependencyInjector> injector_ = nullptr;
81};
82
83} // namespace control
84} // namespace apollo
A general class to denote the return status of an API call.
Definition status.h:43
manage all controllers declared in control config file.
common::Status Reset()
reset ControlTaskAgent
common::Status Init(std::shared_ptr< DependencyInjector > injector, const ControlPipeline &control_pipeline)
initialize ControlTaskAgent
common::Status ComputeControlCommand(const localization::LocalizationEstimate *localization, const canbus::Chassis *chassis, const planning::ADCTrajectory *trajectory, control::ControlCommand *cmd)
compute control command based on current vehicle status and target trajectory
Defines the Controller base class.
Defines the Factory class.
class register implement
Definition arena_queue.h:37