CARLA
 
载入中...
搜索中...
未找到
NavSatFixPubSubTypes.h
浏览该文件的文档.
1// Copyright 2016 Proyectos y Sistemas de Mantenimiento SL (eProsima).
2//
3// Licensed under the Apache License, Version 2.0 (the "License");
4// you may not use this file except in compliance with the License.
5// You may obtain a copy of the License at
6//
7// http://www.apache.org/licenses/LICENSE-2.0
8//
9// Unless required by applicable law or agreed to in writing, software
10// distributed under the License is distributed on an "AS IS" BASIS,
11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12// See the License for the specific language governing permissions and
13// limitations under the License.
14
15/*!
16 * @file NavSatFixPubSubTypes.h
17 * This header file contains the declaration of the serialization functions.
18 *
19 * This file was generated by the tool fastcdrgen.
20 */
21
22#ifndef _FAST_DDS_GENERATED_SENSOR_MSGS_MSG_NAVSATFIX_PUBSUBTYPES_H_
23#define _FAST_DDS_GENERATED_SENSOR_MSGS_MSG_NAVSATFIX_PUBSUBTYPES_H_
24
25#include <fastdds/dds/topic/TopicDataType.hpp>
26#include <fastrtps/utils/md5.h>
27
28#include "NavSatFix.h"
29
30#include "HeaderPubSubTypes.h"
32
33#if !defined(GEN_API_VER) || (GEN_API_VER != 1)
34#error \
35 Generated NavSatFix is not compatible with current installed Fast DDS. Please, regenerate it with fastddsgen.
36#endif // GEN_API_VER
37
38namespace sensor_msgs
39{
40 namespace msg
41 {
42 typedef std::array<double, 9> sensor_msgs__NavSatFix__double_array_9;
43
44 /*!
45 * @brief This class represents the TopicDataType of the type NavSatFix defined by the user in the IDL file.
46 * @ingroup NAVSATFIX
47 */
48 class NavSatFixPubSubType : public eprosima::fastdds::dds::TopicDataType
49 {
50 public:
51
52 typedef NavSatFix type;
53
55
57
59 void* data,
60 eprosima::fastrtps::rtps::SerializedPayload_t* payload) override;
61
63 eprosima::fastrtps::rtps::SerializedPayload_t* payload,
64 void* data) override;
65
66 eProsima_user_DllExport virtual std::function<uint32_t()> getSerializedSizeProvider(
67 void* data) override;
68
70 void* data,
71 eprosima::fastrtps::rtps::InstanceHandle_t* ihandle,
72 bool force_md5 = false) override;
73
74 eProsima_user_DllExport virtual void* createData() override;
75
77 void* data) override;
78
79 #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED
80 eProsima_user_DllExport inline bool is_bounded() const override
81 {
82 return false;
83 }
84
85 #endif // TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED
86
87 #ifdef TOPIC_DATA_TYPE_API_HAS_IS_PLAIN
88 eProsima_user_DllExport inline bool is_plain() const override
89 {
90 return false;
91 }
92
93 #endif // TOPIC_DATA_TYPE_API_HAS_IS_PLAIN
94
95 #ifdef TOPIC_DATA_TYPE_API_HAS_CONSTRUCT_SAMPLE
96 eProsima_user_DllExport inline bool construct_sample(
97 void* memory) const override
98 {
99 (void)memory;
100 return false;
101 }
102
103 #endif // TOPIC_DATA_TYPE_API_HAS_CONSTRUCT_SAMPLE
104 MD5 m_md5;
105 unsigned char* m_keyBuffer;
106 };
107 }
108}
109
110#endif // _FAST_DDS_GENERATED_SENSOR_MSGS_MSG_NAVSATFIX_PUBSUBTYPES_H_
#define eProsima_user_DllExport
Definition CameraInfo.h:44
This class represents the TopicDataType of the type NavSatFix defined by the user in the IDL file.
virtual eProsima_user_DllExport bool serialize(void *data, eprosima::fastrtps::rtps::SerializedPayload_t *payload) override
virtual eProsima_user_DllExport bool deserialize(eprosima::fastrtps::rtps::SerializedPayload_t *payload, void *data) override
virtual eProsima_user_DllExport bool getKey(void *data, eprosima::fastrtps::rtps::InstanceHandle_t *ihandle, bool force_md5=false) override
virtual eProsima_user_DllExport void * createData() override
virtual eProsima_user_DllExport void deleteData(void *data) override
virtual eProsima_user_DllExport ~NavSatFixPubSubType() override
virtual eProsima_user_DllExport std::function< uint32_t()> getSerializedSizeProvider(void *data) override
This class represents the structure NavSatFix defined by the user in the IDL file.
Definition NavSatFix.h:79
std::array< double, 9 > sensor_msgs__NavSatFix__double_array_9
Definition NavSatFix.h:73