#include <control_task.h>
◆ ControlTask()
apollo::control::ControlTask::ControlTask |
( |
| ) |
|
|
default |
◆ ~ControlTask()
virtual apollo::control::ControlTask::~ControlTask |
( |
| ) |
|
|
virtualdefault |
◆ ComputeControlCommand()
◆ Init()
◆ LoadCalibrationTable()
bool apollo::control::ControlTask::LoadCalibrationTable |
( |
calibration_table * |
calibration_table_conf | ) |
|
|
inlineprotected |
在文件 control_task.h 第 106 行定义.
106 {
107 std::string calibration_table_path = FLAGS_calibration_table_file;
108
110 calibration_table_conf)) {
111 AERROR <<
"Load calibration table failed!";
112 return false;
113 }
114 AINFO <<
"Load the calibraiton table file successfully, file path: "
115 << calibration_table_path;
116 return true;
117 }
bool GetProtoFromFile(const std::string &file_name, google::protobuf::Message *message)
Parses the content of the file specified by the file_name as a representation of protobufs,...
◆ LoadConfig()
template<typename T >
bool apollo::control::ControlTask::LoadConfig |
( |
T * |
config | ) |
|
|
protected |
在文件 control_task.h 第 121 行定义.
121 {
122 int status;
123 std::string class_name =
124 abi::__cxa_demangle(typeid(*this).name(), 0, 0, &status);
125
126 std::string config_path_ =
129 "conf/controller_conf.pb.txt");
130
132 AERROR <<
"Load config of " << class_name <<
" failed!";
133 return false;
134 }
135 AINFO <<
"Load the [" << class_name
136 << "] config file successfully, file path: " << config_path_;
137 return true;
138}
ControlTask()=default
constructor
std::string GetPluginConfPath(const std::string &class_name, const std::string &conf_name)
get plugin configuration file location
static PluginManager * Instance()
get singleton instance of PluginManager
◆ Name()
virtual std::string apollo::control::ControlTask::Name |
( |
| ) |
const |
|
pure virtual |
◆ Reset()
◆ Stop()
virtual void apollo::control::ControlTask::Stop |
( |
| ) |
|
|
pure virtual |
该类的文档由以下文件生成: