30 #include <fastcdr/Cdr.h> 32 #include <fastcdr/exceptions/BadParamException.h> 37 #define std_msgs_msg_Time_max_cdr_typesize 8ULL; 38 #define sensor_msgs_msg_NavSatStatus_max_cdr_typesize 4ULL; 39 #define std_msgs_msg_Header_max_cdr_typesize 268ULL; 40 #define sensor_msgs_msg_NavSatFix_max_cdr_typesize 369ULL; 42 #define std_msgs_msg_Time_max_key_cdr_typesize 0ULL; 43 #define sensor_msgs_msg_NavSatStatus_max_key_cdr_typesize 0ULL; 44 #define std_msgs_msg_Header_max_key_cdr_typesize 0ULL; 45 #define sensor_msgs_msg_NavSatFix_max_key_cdr_typesize 0ULL; 60 memset(&m_position_covariance, 0, (9) * 8);
62 m_position_covariance_type = 0;
84 m_header = std::move(x.m_header);
85 m_status = std::move(x.m_status);
86 m_latitude = x.m_latitude;
87 m_longitude = x.m_longitude;
88 m_altitude = x.m_altitude;
89 m_position_covariance = std::move(x.m_position_covariance);
90 m_position_covariance_type = x.m_position_covariance_type;
110 m_header = std::move(x.m_header);
111 m_status = std::move(x.m_status);
112 m_latitude = x.m_latitude;
113 m_longitude = x.m_longitude;
114 m_altitude = x.m_altitude;
115 m_position_covariance = std::move(x.m_position_covariance);
116 m_position_covariance_type = x.m_position_covariance_type;
130 return !(*
this == x);
134 size_t current_alignment)
136 static_cast<void>(current_alignment);
142 size_t current_alignment)
144 size_t initial_alignment = current_alignment;
147 current_alignment += 8 + eprosima::fastcdr::Cdr::alignment(current_alignment, 8);
148 current_alignment += 8 + eprosima::fastcdr::Cdr::alignment(current_alignment, 8);
149 current_alignment += 8 + eprosima::fastcdr::Cdr::alignment(current_alignment, 8);
150 current_alignment += ((9) * 8) + eprosima::fastcdr::Cdr::alignment(current_alignment, 8);
151 current_alignment += 1 + eprosima::fastcdr::Cdr::alignment(current_alignment, 1);
153 return current_alignment - initial_alignment;
157 eprosima::fastcdr::Cdr& scdr)
const 164 scdr << m_position_covariance;
165 scdr << m_position_covariance_type;
169 eprosima::fastcdr::Cdr& dcdr)
176 dcdr >> m_position_covariance;
177 dcdr >> m_position_covariance_type;
197 m_header = std::move(_header);
235 m_status = std::move(_status);
263 m_latitude = _latitude;
291 m_longitude = _longitude;
319 m_altitude = _altitude;
347 m_position_covariance = _position_covariance;
357 m_position_covariance = std::move(_position_covariance);
366 return m_position_covariance;
375 return m_position_covariance;
382 uint8_t _position_covariance_type)
384 m_position_covariance_type = _position_covariance_type;
393 return m_position_covariance_type;
402 return m_position_covariance_type;
406 size_t current_alignment)
408 static_cast<void>(current_alignment);
418 eprosima::fastcdr::Cdr& scdr)
const eProsima_user_DllExport bool operator==(const NavSatFix &x) const
Comparison operator.
#define sensor_msgs_msg_NavSatFix_max_cdr_typesize
static eProsima_user_DllExport bool isKeyDefined()
This function tells you if the Key has been defined for this type.
uint8_t m_position_covariance_type
eProsima_user_DllExport const sensor_msgs::msg::sensor_msgs__NavSatFix__double_array_9 & position_covariance() const
This function returns a constant reference to member position_covariance.
This class represents the structure NavSatFix defined by the user in the IDL file.
eProsima_user_DllExport void serializeKey(eprosima::fastcdr::Cdr &cdr) const
This function serializes the key members of an object using CDR serialization.
sensor_msgs::msg::NavSatStatus m_status
eProsima_user_DllExport const std_msgs::msg::Header & header() const
This function returns a constant reference to member header.
std_msgs::msg::Header m_header
eProsima_user_DllExport const sensor_msgs::msg::NavSatStatus & status() const
This function returns a constant reference to member status.
static eProsima_user_DllExport size_t getKeyMaxCdrSerializedSize(size_t current_alignment=0)
This function returns the maximum serialized size of the Key of an object depending on the buffer ali...
eProsima_user_DllExport void deserialize(eprosima::fastcdr::Cdr &cdr)
This function deserializes an object using CDR serialization.
std::array< double, 9 > sensor_msgs__NavSatFix__double_array_9
This class represents the structure NavSatStatus defined by the user in the IDL file.
eProsima_user_DllExport void header(const std_msgs::msg::Header &_header)
This function copies the value in member header.
eProsima_user_DllExport void status(const sensor_msgs::msg::NavSatStatus &_status)
This function copies the value in member status.
eProsima_user_DllExport ~NavSatFix()
Default destructor.
static eProsima_user_DllExport size_t getCdrSerializedSize(const sensor_msgs::msg::NavSatFix &data, size_t current_alignment=0)
This function returns the serialized size of a data depending on the buffer alignment.
eProsima_user_DllExport double latitude() const
This function returns the value of member latitude.
eProsima_user_DllExport NavSatFix & operator=(const NavSatFix &x)
Copy assignment.
eProsima_user_DllExport NavSatFix()
Default constructor.
static eProsima_user_DllExport size_t getCdrSerializedSize(const sensor_msgs::msg::NavSatStatus &data, size_t current_alignment=0)
This function returns the serialized size of a data depending on the buffer alignment.
eProsima_user_DllExport uint8_t position_covariance_type() const
This function returns the value of member position_covariance_type.
eProsima_user_DllExport void serialize(eprosima::fastcdr::Cdr &cdr) const
This function serializes an object using CDR serialization.
eProsima_user_DllExport double altitude() const
This function returns the value of member altitude.
#define sensor_msgs_msg_NavSatFix_max_key_cdr_typesize
eProsima_user_DllExport bool operator!=(const NavSatFix &x) const
Comparison operator.
sensor_msgs::msg::sensor_msgs__NavSatFix__double_array_9 m_position_covariance
static eProsima_user_DllExport size_t getMaxCdrSerializedSize(size_t current_alignment=0)
This function returns the maximum serialized size of an object depending on the buffer alignment...
eProsima_user_DllExport double longitude() const
This function returns the value of member longitude.