22#ifndef _FAST_DDS_GENERATED_SENSOR_MSGS_MSG_CAMERAINFO_H_
23#define _FAST_DDS_GENERATED_SENSOR_MSGS_MSG_CAMERAINFO_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(CAMERAINFO_SOURCE)
50#define CAMERAINFO_DllAPI __declspec( dllexport )
52#define CAMERAINFO_DllAPI __declspec( dllimport )
55#define CAMERAINFO_DllAPI
58#define CAMERAINFO_DllAPI
197 const std::string& _distortion_model);
204 std::string&& _distortion_model);
222 const std::vector<double>& _D);
229 std::vector<double>&& _D);
247 const std::array<double, 9>& _k);
254 std::array<double, 9>&& _k);
272 const std::array<double, 9>& _r);
279 std::array<double, 9>&& _r);
297 const std::array<double, 12>& _p);
304 std::array<double, 12>&& _p);
322 uint32_t _binning_x);
341 uint32_t _binning_y);
388 size_t current_alignment = 0);
398 size_t current_alignment = 0);
405 eprosima::fastcdr::Cdr& cdr)
const;
412 eprosima::fastcdr::Cdr& cdr);
421 size_t current_alignment = 0);
433 eprosima::fastcdr::Cdr& cdr)
const;
441 std::array<double, 9>
m_k;
442 std::array<double, 9>
m_r;
443 std::array<double, 12>
m_p;
#define eProsima_user_DllExport
This class represents the structure CameraInfo defined by the user in the IDL file.
std::array< double, 12 > m_p
std_msgs::msg::Header m_header
static eProsima_user_DllExport bool isKeyDefined()
This function tells you if the Key has been defined for this type
std::array< double, 9 > m_r
eProsima_user_DllExport const std::array< double, 9 > & r() const
This function returns a constant reference to member r
std::string m_distortion_model
eProsima_user_DllExport const sensor_msgs::msg::RegionOfInterest & roi() const
This function returns a constant reference to member roi
eProsima_user_DllExport void deserialize(eprosima::fastcdr::Cdr &cdr)
This function deserializes an object using CDR serialization.
eProsima_user_DllExport bool operator==(const CameraInfo &x) const
Comparison operator.
eProsima_user_DllExport CameraInfo(uint32_t height=0, uint32_t width=0, double fov=0.0)
Default constructor.
eProsima_user_DllExport bool operator!=(const CameraInfo &x) const
Comparison operator.
std::vector< double > m_d
eProsima_user_DllExport uint32_t binning_y() const
This function returns the value of member binning_y
eProsima_user_DllExport const std::array< double, 12 > & p() const
This function returns a constant reference to member p
eProsima_user_DllExport uint32_t width() const
This function returns the value of member width
eProsima_user_DllExport void serialize(eprosima::fastcdr::Cdr &cdr) const
This function serializes an object using CDR serialization.
eProsima_user_DllExport CameraInfo & operator=(const CameraInfo &x)
Copy assignment.
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 const std::vector< double > & D() const
This function returns a constant reference to member D
eProsima_user_DllExport uint32_t binning_x() const
This function returns the value of member binning_x
eProsima_user_DllExport uint32_t height() const
This function returns the value of member height
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...
sensor_msgs::msg::RegionOfInterest m_roi
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.
std::array< double, 9 > m_k
eProsima_user_DllExport const std::string & distortion_model() const
This function returns a constant reference to member distortion_model
eProsima_user_DllExport ~CameraInfo()
Default destructor.
eProsima_user_DllExport const std::array< double, 9 > & k() const
This function returns a constant reference to member k
static eProsima_user_DllExport size_t getCdrSerializedSize(const sensor_msgs::msg::CameraInfo &data, size_t current_alignment=0)
This function returns the serialized size of a data depending on the buffer alignment.
This class represents the structure RegionOfInterest defined by the user in the IDL file.