22#ifndef _FAST_DDS_GENERATED_SENSOR_MSGS_MSG_POINTCLOUD2_H_
23#define _FAST_DDS_GENERATED_SENSOR_MSGS_MSG_POINTCLOUD2_H_
28#include <fastrtps/utils/fixed_size_string.hpp>
38#if defined(EPROSIMA_USER_DLL_EXPORT)
39#define eProsima_user_DllExport __declspec( dllexport )
41#define eProsima_user_DllExport
44#define eProsima_user_DllExport
48#if defined(EPROSIMA_USER_DLL_EXPORT)
49#if defined(PointCloud2_SOURCE)
50#define PointCloud2_DllAPI __declspec( dllexport )
52#define PointCloud2_DllAPI __declspec( dllimport )
55#define PointCloud2_DllAPI
58#define PointCloud2_DllAPI
197 const std::vector<sensor_msgs::msg::PointField>& _fields);
204 std::vector<sensor_msgs::msg::PointField>&& _fields);
241 uint32_t _point_step);
279 const std::vector<uint8_t>& _data);
286 std::vector<uint8_t>&& _data);
325 size_t current_alignment = 0);
335 size_t current_alignment = 0);
342 eprosima::fastcdr::Cdr& cdr)
const;
349 eprosima::fastcdr::Cdr& cdr);
358 size_t current_alignment = 0);
370 eprosima::fastcdr::Cdr& cdr)
const;
376 std::vector<sensor_msgs::msg::PointField>
m_fields;
#define eProsima_user_DllExport
This class represents the structure PointCloud2 defined by the user in the IDL file.
std_msgs::msg::Header m_header
eProsima_user_DllExport bool operator==(const PointCloud2 &x) const
Comparison operator.
eProsima_user_DllExport const std::vector< uint8_t > & data() const
This function returns a constant reference to member data
static eProsima_user_DllExport bool isKeyDefined()
This function tells you if the Key has been defined for this type
eProsima_user_DllExport bool is_bigendian() const
This function returns the value of member is_bigendian
std::vector< sensor_msgs::msg::PointField > m_fields
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 const std::vector< sensor_msgs::msg::PointField > & fields() const
This function returns a constant reference to member fields
eProsima_user_DllExport uint32_t width() const
This function returns the value of member width
eProsima_user_DllExport void deserialize(eprosima::fastcdr::Cdr &cdr)
This function deserializes an object using CDR serialization.
eProsima_user_DllExport void serialize(eprosima::fastcdr::Cdr &cdr) const
This function serializes an object using CDR serialization.
eProsima_user_DllExport PointCloud2()
Default constructor.
eProsima_user_DllExport bool operator!=(const PointCloud2 &x) const
Comparison operator.
eProsima_user_DllExport const std_msgs::msg::Header & header() const
This function returns a constant reference to member header
eProsima_user_DllExport void serializeKey(eprosima::fastcdr::Cdr &cdr) const
This function serializes the key members of an object using CDR serialization.
eProsima_user_DllExport uint32_t row_step() const
This function returns the value of member row_step
std::vector< uint8_t > m_data
eProsima_user_DllExport uint32_t point_step() const
This function returns the value of member point_step
static eProsima_user_DllExport size_t getCdrSerializedSize(const sensor_msgs::msg::PointCloud2 &data, size_t current_alignment=0)
This function returns the serialized size of a data depending on the buffer alignment.
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 bool is_dense() const
This function returns the value of member is_dense
eProsima_user_DllExport ~PointCloud2()
Default destructor.
eProsima_user_DllExport uint32_t height() const
This function returns the value of member height
eProsima_user_DllExport PointCloud2 & operator=(const PointCloud2 &x)
Copy assignment.