Apollo  6.0
Open source self driving car software
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 
27 #include "modules/canbus/proto/chassis.pb.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 
70 
71 } // namespace control
72 } // namespace apollo
bool Init() override
Initialize the submodule.
bool Proc(const std::shared_ptr< ControlCommand > &control_command) override
PlanningContext is the runtime context in planning. It is persistent across multiple frames...
Definition: atomic_hash_map.h:25
CYBER_REGISTER_COMPONENT(PreprocessorSubmodule)
Definition: postprocessor_submodule.h:41
Defines the Controller base class.
std::string Name() const
Get name of the node.
The class of MonitorLogBuffer.
Some util functions.
The Component can process up to four channels of messages. The message type is specified when the com...
Definition: component.h:58