Apollo
10.0
自动驾驶开放平台
postprocessor_submodule.h
浏览该文件的文档.
1
/******************************************************************************
2
* Copyright 2019 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
21
#include <memory>
22
#include <string>
23
24
#include "modules/common_msgs/chassis_msgs/chassis.pb.h"
25
#include "modules/common_msgs/control_msgs/control_cmd.pb.h"
26
#include "modules/common_msgs/control_msgs/pad_msg.pb.h"
27
#include "modules/common_msgs/localization_msgs/localization.pb.h"
28
#include "modules/common_msgs/planning_msgs/planning.pb.h"
29
#include "modules/control/control_component/proto/preprocessor.pb.h"
30
31
#include "
cyber/class_loader/class_loader.h
"
32
#include "
cyber/component/component.h
"
33
#include "
cyber/component/timer_component.h
"
34
#include "
modules/common/monitor_log/monitor_log_buffer.h
"
35
#include "
modules/common/util/util.h
"
36
#include "
modules/control/control_component/controller_task_base/control_task.h
"
37
38
namespace
apollo
{
39
namespace
control {
40
class
PostprocessorSubmodule
final :
public
cyber::Component
<ControlCommand> {
41
public
:
46
std::string
Name
()
const
;
47
52
bool
Init
()
override
;
53
61
bool
Proc
(
const
std::shared_ptr<ControlCommand>& control_command)
override
;
62
63
private
:
64
std::shared_ptr<cyber::Writer<ControlCommand>> postprocessor_writer_;
65
};
66
67
CYBER_REGISTER_COMPONENT
(
PostprocessorSubmodule
)
68
69
}
// namespace control
70
}
// namespace apollo
class_loader.h
apollo::control::PostprocessorSubmodule
Definition
postprocessor_submodule.h:40
apollo::control::PostprocessorSubmodule::Proc
bool Proc(const std::shared_ptr< ControlCommand > &control_command) override
Definition
postprocessor_submodule.cc:49
apollo::control::PostprocessorSubmodule::Init
bool Init() override
Initialize the submodule
Definition
postprocessor_submodule.cc:42
apollo::control::PostprocessorSubmodule::Name
std::string Name() const
Get name of the node
Definition
postprocessor_submodule.cc:38
apollo::cyber::Component
Definition
component.h:60
component.h
CYBER_REGISTER_COMPONENT
#define CYBER_REGISTER_COMPONENT(name)
Definition
component.h:656
control_task.h
Defines the Controller base class.
util.h
Some util functions.
monitor_log_buffer.h
The class of MonitorLogBuffer
apollo
class register implement
Definition
arena_queue.h:37
timer_component.h
modules
control
control_component
submodules
postprocessor_submodule.h