Apollo 10.0
自动驾驶开放平台
localization_estimate.h
浏览该文件的文档.
1/******************************************************************************
2 * Copyright 2023 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
17#pragma once
18
19#include <algorithm>
20#include <cstring>
21#include <memory>
22#include <string>
23
25
26#include "cyber/proto/simple.pb.h"
27#include "modules/common_msgs/localization_msgs/localization.pb.h"
28#include "modules/common_msgs/transform_msgs/transform.pb.h"
29#include "cyber/cyber.h"
31
32#if __has_include("nav_msgs/msg/odometry.hpp")
33#include "nav_msgs/msg/odometry.hpp"
34#define ENABLE_ROS_MSG
35#endif
36
37#ifdef ENABLE_ROS_MSG
38using InputMsg = nav_msgs::msg::Odometry;
39#else
41#endif
42
45
46using LocalizationMsgPtr = std::shared_ptr<LocalizationMsg>;
47using TransformMsgPtr = std::shared_ptr<TransformMsg>;
48using InputMsgPtr = std::shared_ptr<InputMsg>;
49
50namespace apollo {
51namespace cyber {
52
55 InputTypes<InputMsgPtr>,
56 OutputTypes<LocalizationMsgPtr, TransformMsgPtr>> {
57 public:
60
70};
71
74
75} // namespace cyber
76} // namespace apollo
virtual bool ConvertMsg(InputTypes< InputMsgPtr > &, OutputTypes< LocalizationMsgPtr, TransformMsgPtr > &)
convert the message between ros and apollo
#define CYBER_PLUGIN_MANAGER_REGISTER_PLUGIN(name, base)
std::shared_ptr< LocalizationMsg > LocalizationMsgPtr
std::shared_ptr< InputMsg > InputMsgPtr
std::shared_ptr< TransformMsg > TransformMsgPtr
class register implement
Definition arena_queue.h:37