Apollo
6.0
Open source self driving car software
modules
control
submodules
postprocessor_submodule.h
Go to the documentation of this file.
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 "
cyber/class_loader/class_loader.h
"
25
#include "
cyber/component/component.h
"
26
#include "
cyber/component/timer_component.h
"
27
#include "modules/canbus/proto/chassis.pb.h"
28
#include "
modules/common/monitor_log/monitor_log_buffer.h
"
29
#include "
modules/common/util/util.h
"
30
#include "
modules/control/controller/controller.h
"
31
#include "modules/control/proto/control_cmd.pb.h"
32
#include "modules/control/proto/control_common_conf.pb.h"
33
#include "modules/control/proto/control_conf.pb.h"
34
#include "modules/control/proto/pad_msg.pb.h"
35
#include "modules/control/proto/preprocessor.pb.h"
36
#include "modules/localization/proto/localization.pb.h"
37
#include "modules/planning/proto/planning.pb.h"
38
39
namespace
apollo
{
40
namespace
control {
41
class
PostprocessorSubmodule
final :
public
cyber::Component
<ControlCommand> {
42
public
:
47
std::string
Name
()
const
;
48
53
bool
Init
()
override
;
54
62
bool
Proc
(
const
std::shared_ptr<ControlCommand>& control_command)
override
;
63
64
private
:
65
std::shared_ptr<cyber::Writer<ControlCommand>> postprocessor_writer_;
66
ControlCommonConf control_common_conf_;
67
};
68
69
CYBER_REGISTER_COMPONENT
(
PostprocessorSubmodule
)
70
71
}
// namespace control
72
}
// namespace apollo
apollo::control::PostprocessorSubmodule::Init
bool Init() override
Initialize the submodule.
apollo::control::PostprocessorSubmodule::Proc
bool Proc(const std::shared_ptr< ControlCommand > &control_command) override
apollo
PlanningContext is the runtime context in planning. It is persistent across multiple frames...
Definition:
atomic_hash_map.h:25
timer_component.h
apollo::control::CYBER_REGISTER_COMPONENT
CYBER_REGISTER_COMPONENT(PreprocessorSubmodule)
apollo::control::PostprocessorSubmodule
Definition:
postprocessor_submodule.h:41
controller.h
Defines the Controller base class.
class_loader.h
apollo::control::PostprocessorSubmodule::Name
std::string Name() const
Get name of the node.
monitor_log_buffer.h
The class of MonitorLogBuffer.
component.h
util.h
Some util functions.
apollo::cyber::Component
The Component can process up to four channels of messages. The message type is specified when the com...
Definition:
component.h:58
Generated by
1.8.13