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
138 const std_msgs::msg::Header& _header);
145 std_msgs::msg::Header&& _header);
201 const std::string& _distortion_model);
208 std::string&& _distortion_model);
226 const std::vector<double>& _D);
233 std::vector<double>&& _D);
251 const std::array<double, 9>& _k);
258 std::array<double, 9>&& _k);
276 const std::array<double, 9>& _r);
283 std::array<double, 9>&& _r);
301 const std::array<double, 12>& _p);
308 std::array<double, 12>&& _p);
326 uint32_t _binning_x);
345 uint32_t _binning_y);
409 eprosima::fastcdr::Cdr& cdr)
const;
416 eprosima::fastcdr::Cdr& cdr);
438 eprosima::fastcdr::Cdr& cdr)
const;
446 std::array<double, 9>
m_k;
447 std::array<double, 9>
m_r;
448 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()
判断是否为此类型定义了 Key。
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(获取成员变量 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(获取成员变量 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.()(比较运算符重载:判断两个 CameraInfo 对象是否相等)
eProsima_user_DllExport CameraInfo(uint32_t height=0, uint32_t width=0, double fov=0.0)
默认构造函数,初始化相机的基本参数。
eProsima_user_DllExport bool operator!=(const CameraInfo &x) const
Comparison operator.(比较运算符重载:判断两个 CameraInfo 对象是否不相等)
std::vector< double > m_d
eProsima_user_DllExport uint32_t binning_y() const
This function returns the value of member binning_y(获取成员变量 binning_y 的值)
eProsima_user_DllExport const std::array< double, 12 > & p() const
This function returns a constant reference to member p(将新值移动到成员变量 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.(使用 CDR 序列化一个对象)
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(获取 header 的常量引用)
eProsima_user_DllExport void serializeKey(eprosima::fastcdr::Cdr &cdr) const
This function serializes the key members of an object using CDR serialization.(使用 CDR 序列化对象的 Key 成员)
eProsima_user_DllExport const std::vector< double > & D() const
This function returns a constant reference to member D(获取成员变量 D 的常量引用)
eProsima_user_DllExport uint32_t binning_x() const
This function returns the value of member binning_x(设置成员变量 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 o...
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 b...
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(获取成员变量 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.