This class represents the structure RegionOfInterest defined by the user in the IDL file. More...
#include <RegionOfInterest.h>
Public Member Functions | |
eProsima_user_DllExport void | deserialize (eprosima::fastcdr::Cdr &cdr) |
This function deserializes an object using CDR serialization. More... | |
eProsima_user_DllExport void | do_rectify (bool _do_rectify) |
This function sets a value in member do_rectify. More... | |
eProsima_user_DllExport bool | do_rectify () const |
This function returns the value of member do_rectify. More... | |
eProsima_user_DllExport bool & | do_rectify () |
This function returns a reference to member do_rectify. More... | |
eProsima_user_DllExport void | height (uint32_t _height) |
This function sets a value in member height. More... | |
eProsima_user_DllExport uint32_t | height () const |
This function returns the value of member height. More... | |
eProsima_user_DllExport uint32_t & | height () |
This function returns a reference to member height. More... | |
eProsima_user_DllExport bool | operator!= (const RegionOfInterest &x) const |
Comparison operator. More... | |
eProsima_user_DllExport RegionOfInterest & | operator= (const RegionOfInterest &x) |
Copy assignment. More... | |
eProsima_user_DllExport RegionOfInterest & | operator= (RegionOfInterest &&x) noexcept |
Move assignment. More... | |
eProsima_user_DllExport bool | operator== (const RegionOfInterest &x) const |
Comparison operator. More... | |
eProsima_user_DllExport | RegionOfInterest () |
Default constructor. More... | |
eProsima_user_DllExport | RegionOfInterest (const RegionOfInterest &x) |
Copy constructor. More... | |
eProsima_user_DllExport | RegionOfInterest (RegionOfInterest &&x) noexcept |
Move constructor. More... | |
eProsima_user_DllExport void | serialize (eprosima::fastcdr::Cdr &cdr) const |
This function serializes an object using CDR serialization. More... | |
eProsima_user_DllExport void | serializeKey (eprosima::fastcdr::Cdr &cdr) const |
This function serializes the key members of an object using CDR serialization. More... | |
eProsima_user_DllExport void | width (uint32_t _width) |
This function sets a value in member width. More... | |
eProsima_user_DllExport uint32_t | width () const |
This function returns the value of member width. More... | |
eProsima_user_DllExport uint32_t & | width () |
This function returns a reference to member width. More... | |
eProsima_user_DllExport void | x_offset (uint32_t _x_offset) |
This function sets a value in member x_offset. More... | |
eProsima_user_DllExport uint32_t | x_offset () const |
This function returns the value of member x_offset. More... | |
eProsima_user_DllExport uint32_t & | x_offset () |
This function returns a reference to member x_offset. More... | |
eProsima_user_DllExport void | y_offset (uint32_t _y_offset) |
This function sets a value in member y_offset. More... | |
eProsima_user_DllExport uint32_t | y_offset () const |
This function returns the value of member y_offset. More... | |
eProsima_user_DllExport uint32_t & | y_offset () |
This function returns a reference to member y_offset. More... | |
eProsima_user_DllExport | ~RegionOfInterest () |
Default destructor. More... | |
Static Public Member Functions | |
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. More... | |
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 alignment. More... | |
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. More... | |
static eProsima_user_DllExport bool | isKeyDefined () |
This function tells you if the Key has been defined for this type. More... | |
Private Attributes | |
bool | m_do_rectify |
uint32_t | m_height |
uint32_t | m_width |
uint32_t | m_x_offset |
uint32_t | m_y_offset |
This class represents the structure RegionOfInterest defined by the user in the IDL file.
Definition at line 70 of file RegionOfInterest.h.
sensor_msgs::msg::RegionOfInterest::RegionOfInterest | ( | ) |
Default constructor.
Definition at line 40 of file RegionOfInterest.cpp.
sensor_msgs::msg::RegionOfInterest::~RegionOfInterest | ( | ) |
Default destructor.
Definition at line 54 of file RegionOfInterest.cpp.
sensor_msgs::msg::RegionOfInterest::RegionOfInterest | ( | const RegionOfInterest & | x | ) |
Copy constructor.
x | Reference to the object sensor_msgs::msg::RegionOfInterest that will be copied. |
Definition at line 58 of file RegionOfInterest.cpp.
References m_do_rectify, m_height, m_width, m_x_offset, and m_y_offset.
|
noexcept |
Move constructor.
x | Reference to the object sensor_msgs::msg::RegionOfInterest that will be copied. |
Definition at line 68 of file RegionOfInterest.cpp.
void sensor_msgs::msg::RegionOfInterest::deserialize | ( | eprosima::fastcdr::Cdr & | cdr | ) |
This function deserializes an object using CDR serialization.
cdr | CDR serialization object. |
Definition at line 146 of file RegionOfInterest.cpp.
Referenced by sensor_msgs::msg::RegionOfInterestPubSubType::deserialize().
void sensor_msgs::msg::RegionOfInterest::do_rectify | ( | bool | _do_rectify | ) |
This function sets a value in member do_rectify.
_do_rectify | New value for member do_rectify |
Definition at line 272 of file RegionOfInterest.cpp.
Referenced by carla::ros2::CarlaDepthCameraPublisher::SetInfoRegionOfInterest(), carla::ros2::CarlaSSCameraPublisher::SetInfoRegionOfInterest(), carla::ros2::CarlaOpticalFlowCameraPublisher::SetInfoRegionOfInterest(), carla::ros2::CarlaISCameraPublisher::SetInfoRegionOfInterest(), carla::ros2::CarlaRGBCameraPublisher::SetInfoRegionOfInterest(), carla::ros2::CarlaNormalsCameraPublisher::SetInfoRegionOfInterest(), and carla::ros2::CarlaDVSCameraPublisher::SetInfoRegionOfInterest().
bool sensor_msgs::msg::RegionOfInterest::do_rectify | ( | ) | const |
This function returns the value of member do_rectify.
Definition at line 282 of file RegionOfInterest.cpp.
bool & sensor_msgs::msg::RegionOfInterest::do_rectify | ( | ) |
This function returns a reference to member do_rectify.
Definition at line 291 of file RegionOfInterest.cpp.
|
static |
This function returns the serialized size of a data depending on the buffer alignment.
data | Data which is calculated its serialized size. |
current_alignment | Buffer alignment. |
Definition at line 121 of file RegionOfInterest.cpp.
Referenced by sensor_msgs::msg::CameraInfo::getCdrSerializedSize(), and sensor_msgs::msg::RegionOfInterestPubSubType::getSerializedSizeProvider().
|
static |
This function returns the maximum serialized size of the Key of an object depending on the buffer alignment.
current_alignment | Buffer alignment. |
Definition at line 296 of file RegionOfInterest.cpp.
References sensor_msgs_msg_RegionOfInterest_max_key_cdr_typesize.
Referenced by sensor_msgs::msg::RegionOfInterestPubSubType::getKey(), and sensor_msgs::msg::RegionOfInterestPubSubType::RegionOfInterestPubSubType().
|
static |
This function returns the maximum serialized size of an object depending on the buffer alignment.
current_alignment | Buffer alignment. |
Definition at line 114 of file RegionOfInterest.cpp.
References sensor_msgs_msg_RegionOfInterest_max_cdr_typesize.
Referenced by sensor_msgs::msg::RegionOfInterestPubSubType::RegionOfInterestPubSubType().
void sensor_msgs::msg::RegionOfInterest::height | ( | uint32_t | _height | ) |
This function sets a value in member height.
_height | New value for member height |
Definition at line 216 of file RegionOfInterest.cpp.
Referenced by carla::ros2::CarlaDepthCameraPublisher::SetInfoRegionOfInterest(), carla::ros2::CarlaSSCameraPublisher::SetInfoRegionOfInterest(), carla::ros2::CarlaOpticalFlowCameraPublisher::SetInfoRegionOfInterest(), carla::ros2::CarlaISCameraPublisher::SetInfoRegionOfInterest(), carla::ros2::CarlaRGBCameraPublisher::SetInfoRegionOfInterest(), carla::ros2::CarlaNormalsCameraPublisher::SetInfoRegionOfInterest(), and carla::ros2::CarlaDVSCameraPublisher::SetInfoRegionOfInterest().
uint32_t sensor_msgs::msg::RegionOfInterest::height | ( | ) | const |
This function returns the value of member height.
Definition at line 226 of file RegionOfInterest.cpp.
uint32_t & sensor_msgs::msg::RegionOfInterest::height | ( | ) |
This function returns a reference to member height.
Definition at line 235 of file RegionOfInterest.cpp.
|
static |
This function tells you if the Key has been defined for this type.
Definition at line 303 of file RegionOfInterest.cpp.
Referenced by sensor_msgs::msg::RegionOfInterestPubSubType::RegionOfInterestPubSubType().
bool sensor_msgs::msg::RegionOfInterest::operator!= | ( | const RegionOfInterest & | x | ) | const |
Comparison operator.
x | sensor_msgs::msg::RegionOfInterest object to compare. |
Definition at line 108 of file RegionOfInterest.cpp.
sensor_msgs::msg::RegionOfInterest & sensor_msgs::msg::RegionOfInterest::operator= | ( | const RegionOfInterest & | x | ) |
Copy assignment.
x | Reference to the object sensor_msgs::msg::RegionOfInterest that will be copied. |
Definition at line 78 of file RegionOfInterest.cpp.
References m_do_rectify, m_height, m_width, m_x_offset, and m_y_offset.
|
noexcept |
Move assignment.
x | Reference to the object sensor_msgs::msg::RegionOfInterest that will be copied. |
Definition at line 90 of file RegionOfInterest.cpp.
References m_x_offset.
bool sensor_msgs::msg::RegionOfInterest::operator== | ( | const RegionOfInterest & | x | ) | const |
Comparison operator.
x | sensor_msgs::msg::RegionOfInterest object to compare. |
Definition at line 102 of file RegionOfInterest.cpp.
References m_do_rectify, m_height, m_width, m_x_offset, and m_y_offset.
void sensor_msgs::msg::RegionOfInterest::serialize | ( | eprosima::fastcdr::Cdr & | cdr | ) | const |
This function serializes an object using CDR serialization.
cdr | CDR serialization object. |
Definition at line 136 of file RegionOfInterest.cpp.
Referenced by sensor_msgs::msg::RegionOfInterestPubSubType::serialize().
void sensor_msgs::msg::RegionOfInterest::serializeKey | ( | eprosima::fastcdr::Cdr & | cdr | ) | const |
This function serializes the key members of an object using CDR serialization.
cdr | CDR serialization object. |
Definition at line 308 of file RegionOfInterest.cpp.
Referenced by sensor_msgs::msg::RegionOfInterestPubSubType::getKey().
void sensor_msgs::msg::RegionOfInterest::width | ( | uint32_t | _width | ) |
This function sets a value in member width.
_width | New value for member width |
Definition at line 244 of file RegionOfInterest.cpp.
Referenced by carla::ros2::CarlaDepthCameraPublisher::SetInfoRegionOfInterest(), carla::ros2::CarlaSSCameraPublisher::SetInfoRegionOfInterest(), carla::ros2::CarlaOpticalFlowCameraPublisher::SetInfoRegionOfInterest(), carla::ros2::CarlaISCameraPublisher::SetInfoRegionOfInterest(), carla::ros2::CarlaRGBCameraPublisher::SetInfoRegionOfInterest(), carla::ros2::CarlaNormalsCameraPublisher::SetInfoRegionOfInterest(), and carla::ros2::CarlaDVSCameraPublisher::SetInfoRegionOfInterest().
uint32_t sensor_msgs::msg::RegionOfInterest::width | ( | ) | const |
This function returns the value of member width.
Definition at line 254 of file RegionOfInterest.cpp.
uint32_t & sensor_msgs::msg::RegionOfInterest::width | ( | ) |
This function returns a reference to member width.
Definition at line 263 of file RegionOfInterest.cpp.
void sensor_msgs::msg::RegionOfInterest::x_offset | ( | uint32_t | _x_offset | ) |
This function sets a value in member x_offset.
_x_offset | New value for member x_offset |
Definition at line 160 of file RegionOfInterest.cpp.
Referenced by carla::ros2::CarlaDepthCameraPublisher::SetInfoRegionOfInterest(), carla::ros2::CarlaSSCameraPublisher::SetInfoRegionOfInterest(), carla::ros2::CarlaOpticalFlowCameraPublisher::SetInfoRegionOfInterest(), carla::ros2::CarlaISCameraPublisher::SetInfoRegionOfInterest(), carla::ros2::CarlaRGBCameraPublisher::SetInfoRegionOfInterest(), carla::ros2::CarlaNormalsCameraPublisher::SetInfoRegionOfInterest(), and carla::ros2::CarlaDVSCameraPublisher::SetInfoRegionOfInterest().
uint32_t sensor_msgs::msg::RegionOfInterest::x_offset | ( | ) | const |
This function returns the value of member x_offset.
Definition at line 170 of file RegionOfInterest.cpp.
uint32_t & sensor_msgs::msg::RegionOfInterest::x_offset | ( | ) |
This function returns a reference to member x_offset.
Definition at line 179 of file RegionOfInterest.cpp.
void sensor_msgs::msg::RegionOfInterest::y_offset | ( | uint32_t | _y_offset | ) |
This function sets a value in member y_offset.
_y_offset | New value for member y_offset |
Definition at line 188 of file RegionOfInterest.cpp.
Referenced by carla::ros2::CarlaDepthCameraPublisher::SetInfoRegionOfInterest(), carla::ros2::CarlaSSCameraPublisher::SetInfoRegionOfInterest(), carla::ros2::CarlaOpticalFlowCameraPublisher::SetInfoRegionOfInterest(), carla::ros2::CarlaISCameraPublisher::SetInfoRegionOfInterest(), carla::ros2::CarlaRGBCameraPublisher::SetInfoRegionOfInterest(), carla::ros2::CarlaNormalsCameraPublisher::SetInfoRegionOfInterest(), and carla::ros2::CarlaDVSCameraPublisher::SetInfoRegionOfInterest().
uint32_t sensor_msgs::msg::RegionOfInterest::y_offset | ( | ) | const |
This function returns the value of member y_offset.
Definition at line 198 of file RegionOfInterest.cpp.
uint32_t & sensor_msgs::msg::RegionOfInterest::y_offset | ( | ) |
This function returns a reference to member y_offset.
Definition at line 207 of file RegionOfInterest.cpp.
|
private |
Definition at line 281 of file RegionOfInterest.h.
Referenced by operator=(), operator==(), and RegionOfInterest().
|
private |
Definition at line 279 of file RegionOfInterest.h.
Referenced by operator=(), operator==(), and RegionOfInterest().
|
private |
Definition at line 280 of file RegionOfInterest.h.
Referenced by operator=(), operator==(), and RegionOfInterest().
|
private |
Definition at line 277 of file RegionOfInterest.h.
Referenced by operator=(), operator==(), and RegionOfInterest().
|
private |
Definition at line 278 of file RegionOfInterest.h.
Referenced by operator=(), operator==(), and RegionOfInterest().