30 #include <fastcdr/Cdr.h> 32 #include <fastcdr/exceptions/BadParamException.h> 37 #define sensor_msgs_msg_RegionOfInterest_max_cdr_typesize 17ULL; 38 #define sensor_msgs_msg_RegionOfInterest_max_key_cdr_typesize 0ULL; 71 m_x_offset = x.m_x_offset;
72 m_y_offset = x.m_y_offset;
73 m_height = x.m_height;
75 m_do_rectify = x.m_do_rectify;
94 m_y_offset = x.m_y_offset;
95 m_height = x.m_height;
97 m_do_rectify = x.m_do_rectify;
111 return !(*
this == x);
115 size_t current_alignment)
117 static_cast<void>(current_alignment);
123 size_t current_alignment)
126 size_t initial_alignment = current_alignment;
127 current_alignment += 4 + eprosima::fastcdr::Cdr::alignment(current_alignment, 4);
128 current_alignment += 4 + eprosima::fastcdr::Cdr::alignment(current_alignment, 4);
129 current_alignment += 4 + eprosima::fastcdr::Cdr::alignment(current_alignment, 4);
130 current_alignment += 4 + eprosima::fastcdr::Cdr::alignment(current_alignment, 4);
131 current_alignment += 1 + eprosima::fastcdr::Cdr::alignment(current_alignment, 1);
133 return current_alignment - initial_alignment;
137 eprosima::fastcdr::Cdr& scdr)
const 143 scdr << m_do_rectify;
147 eprosima::fastcdr::Cdr& dcdr)
153 dcdr >> m_do_rectify;
163 m_x_offset = _x_offset;
191 m_y_offset = _y_offset;
275 m_do_rectify = _do_rectify;
297 size_t current_alignment)
299 static_cast<void>(current_alignment);
309 eprosima::fastcdr::Cdr& scdr)
const
eProsima_user_DllExport bool do_rectify() const
This function returns the value of member do_rectify.
eProsima_user_DllExport void deserialize(eprosima::fastcdr::Cdr &cdr)
This function deserializes an object using CDR serialization.
eProsima_user_DllExport bool operator==(const RegionOfInterest &x) const
Comparison operator.
eProsima_user_DllExport uint32_t height() const
This function returns the value of member height.
eProsima_user_DllExport uint32_t x_offset() const
This function returns the value of member x_offset.
static eProsima_user_DllExport size_t getCdrSerializedSize(const sensor_msgs::msg::RegionOfInterest &data, size_t current_alignment=0)
This function returns the serialized size of a data depending on the buffer alignment.
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 RegionOfInterest & operator=(const RegionOfInterest &x)
Copy assignment.
eProsima_user_DllExport uint32_t y_offset() const
This function returns the value of member y_offset.
#define sensor_msgs_msg_RegionOfInterest_max_key_cdr_typesize
eProsima_user_DllExport ~RegionOfInterest()
Default destructor.
eProsima_user_DllExport void serializeKey(eprosima::fastcdr::Cdr &cdr) const
This function serializes the key members of an object using CDR serialization.
This class represents the structure RegionOfInterest defined by the user in the IDL file...
#define sensor_msgs_msg_RegionOfInterest_max_cdr_typesize
eProsima_user_DllExport RegionOfInterest()
Default constructor.
static eProsima_user_DllExport bool isKeyDefined()
This function tells you if the Key has been defined for this type.
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...
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 bool operator!=(const RegionOfInterest &x) const
Comparison operator.