Apollo
10.0
自动驾驶开放平台
common_type.h
浏览该文件的文档.
1
/******************************************************************************
2
* Copyright 2024 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
#ifndef CYBER_TRANSPORT_RTPS_COMMON_TYPE_H
17
#define CYBER_TRANSPORT_RTPS_COMMON_TYPE_H
18
19
#include <functional>
20
#include <memory>
21
#include <string>
22
23
#include "
cyber/transport/message/message_info.h
"
24
namespace
apollo
{
25
namespace
cyber {
26
namespace
transport {
27
namespace
rtps {
28
using
subsciber_callback
=
29
std::function<void(
const
std::shared_ptr<std::string>& msg_str,
30
uint64_t channel_id,
const
MessageInfo
& msg_info)>;
31
}
// namespace rtps
32
}
// namespace transport
33
}
// namespace cyber
34
}
// namespace apollo
35
36
#endif
// CYBER_TRANSPORT_RTPS_COMMON_TYPE_H
apollo::cyber::transport::MessageInfo
Definition
message_info.h:30
message_info.h
apollo::cyber::transport::rtps::subsciber_callback
std::function< void(const std::shared_ptr< std::string > &msg_str, uint64_t channel_id, const MessageInfo &msg_info)> subsciber_callback
Definition
common_type.h:30
apollo
class register implement
Definition
arena_queue.h:37
cyber
transport
common
common_type.h