Apollo 11.0
自动驾驶开放平台
evaluator_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
22#pragma once
23
24#include <memory>
25#include <string>
26
28
32
33namespace apollo {
34namespace prediction {
35
37 : public cyber::Component<ADCTrajectoryContainer,
38 SubmoduleOutput> {
39 public:
44
49 std::string Name() const;
50
55 bool Init() override;
56
61 bool Proc(
62 const std::shared_ptr<ADCTrajectoryContainer>& adc_trajectory_container,
63 const std::shared_ptr<SubmoduleOutput>&) override;
64
65 private:
66 std::shared_ptr<cyber::Writer<SubmoduleOutput>> evaluator_writer_;
67
68 std::unique_ptr<EvaluatorManager> evaluator_manager_;
69};
70
72
73} // namespace prediction
74} // namespace apollo
std::string Name() const
Get name of the node
bool Proc(const std::shared_ptr< ADCTrajectoryContainer > &adc_trajectory_container, const std::shared_ptr< SubmoduleOutput > &) override
Data callback upon receiving a prediction container output.
bool Init() override
Initialize the node
#define CYBER_REGISTER_COMPONENT(name)
Definition component.h:657
class register implement
Definition arena_queue.h:37
Obstacles container
Use evaluator manager to manage all evaluators
Output information of prediction container submodule