CARLA
ImuPubSubTypes.h
Go to the documentation of this file.
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 ImuPubSubTypes.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_IMU_PUBSUBTYPES_H_
23 #define _FAST_DDS_GENERATED_SENSOR_MSGS_MSG_IMU_PUBSUBTYPES_H_
24 
25 #include <fastdds/dds/topic/TopicDataType.hpp>
26 #include <fastrtps/utils/md5.h>
27 
28 #include "Imu.h"
29 
30 #include "Vector3PubSubTypes.h"
31 #include "QuaternionPubSubTypes.h"
32 #include "HeaderPubSubTypes.h"
33 
34 #if !defined(GEN_API_VER) || (GEN_API_VER != 1)
35 #error \
36  Generated Imu is not compatible with current installed Fast DDS. Please, regenerate it with fastddsgen.
37 #endif // GEN_API_VER
38 
39 namespace sensor_msgs
40 {
41  namespace msg
42  {
43  typedef std::array<double, 9> sensor_msgs__Imu__double_array_9;
44 
45  /*!
46  * @brief This class represents the TopicDataType of the type Imu defined by the user in the IDL file.
47  * @ingroup IMU
48  */
49  class ImuPubSubType : public eprosima::fastdds::dds::TopicDataType
50  {
51  public:
52 
53  typedef Imu type;
54 
56 
57  eProsima_user_DllExport virtual ~ImuPubSubType() override;
58 
60  void* data,
62 
65  void* data) override;
66 
67  eProsima_user_DllExport virtual std::function<uint32_t()> getSerializedSizeProvider(
68  void* data) override;
69 
70  eProsima_user_DllExport virtual bool getKey(
71  void* data,
73  bool force_md5 = false) override;
74 
75  eProsima_user_DllExport virtual void* createData() override;
76 
78  void* data) override;
79 
80  #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED
81  eProsima_user_DllExport inline bool is_bounded() const override
82  {
83  return false;
84  }
85 
86  #endif // TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED
87 
88  #ifdef TOPIC_DATA_TYPE_API_HAS_IS_PLAIN
89  eProsima_user_DllExport inline bool is_plain() const override
90  {
91  return false;
92  }
93 
94  #endif // TOPIC_DATA_TYPE_API_HAS_IS_PLAIN
95 
96  #ifdef TOPIC_DATA_TYPE_API_HAS_CONSTRUCT_SAMPLE
97  eProsima_user_DllExport inline bool construct_sample(
98  void* memory) const override
99  {
100  (void)memory;
101  return false;
102  }
103 
104  #endif // TOPIC_DATA_TYPE_API_HAS_CONSTRUCT_SAMPLE
105  MD5 m_md5;
106  unsigned char* m_keyBuffer;
107  };
108  }
109 }
110 
111 #endif // _FAST_DDS_GENERATED_SENSOR_MSGS_MSG_IMU_PUBSUBTYPES_H_
virtual eProsima_user_DllExport void * createData() override
eprosima::fastrtps::rtps::InstanceHandle_t InstanceHandle_t
virtual eProsima_user_DllExport void deleteData(void *data) override
#define eProsima_user_DllExport
Definition: CameraInfo.h:44
This class represents the structure Imu defined by the user in the IDL file.
Definition: Imu.h:75
virtual eProsima_user_DllExport std::function< uint32_t()> getSerializedSizeProvider(void *data) override
eProsima_user_DllExport ImuPubSubType()
eprosima::fastrtps::rtps::SerializedPayload_t SerializedPayload_t
virtual eProsima_user_DllExport ~ImuPubSubType() override
std::array< double, 9 > sensor_msgs__Imu__double_array_9
Definition: Imu.h:70
virtual eProsima_user_DllExport bool serialize(void *data, eprosima::fastrtps::rtps::SerializedPayload_t *payload) override
virtual eProsima_user_DllExport bool getKey(void *data, eprosima::fastrtps::rtps::InstanceHandle_t *ihandle, bool force_md5=false) override
This class represents the TopicDataType of the type Imu defined by the user in the IDL file...
virtual eProsima_user_DllExport bool deserialize(eprosima::fastrtps::rtps::SerializedPayload_t *payload, void *data) override