CARLA
Public Member Functions | Static Public Member Functions | Private Attributes | List of all members
sensor_msgs::msg::RegionOfInterest Class Reference

This class represents the structure RegionOfInterest defined by the user in the IDL file. More...

#include <RegionOfInterest.h>

+ Collaboration diagram for sensor_msgs::msg::RegionOfInterest:

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 RegionOfInterestoperator= (const RegionOfInterest &x)
 Copy assignment. More...
 
eProsima_user_DllExport RegionOfInterestoperator= (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
 

Detailed Description

This class represents the structure RegionOfInterest defined by the user in the IDL file.

Definition at line 70 of file RegionOfInterest.h.

Constructor & Destructor Documentation

◆ RegionOfInterest() [1/3]

sensor_msgs::msg::RegionOfInterest::RegionOfInterest ( )

Default constructor.

Definition at line 40 of file RegionOfInterest.cpp.

◆ ~RegionOfInterest()

sensor_msgs::msg::RegionOfInterest::~RegionOfInterest ( )

Default destructor.

Definition at line 54 of file RegionOfInterest.cpp.

◆ RegionOfInterest() [2/3]

sensor_msgs::msg::RegionOfInterest::RegionOfInterest ( const RegionOfInterest x)

Copy constructor.

Parameters
xReference 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.

◆ RegionOfInterest() [3/3]

sensor_msgs::msg::RegionOfInterest::RegionOfInterest ( RegionOfInterest &&  x)
noexcept

Move constructor.

Parameters
xReference to the object sensor_msgs::msg::RegionOfInterest that will be copied.

Definition at line 68 of file RegionOfInterest.cpp.

Member Function Documentation

◆ deserialize()

void sensor_msgs::msg::RegionOfInterest::deserialize ( eprosima::fastcdr::Cdr &  cdr)

This function deserializes an object using CDR serialization.

Parameters
cdrCDR serialization object.

Definition at line 146 of file RegionOfInterest.cpp.

Referenced by sensor_msgs::msg::RegionOfInterestPubSubType::deserialize().

+ Here is the caller graph for this function:

◆ do_rectify() [1/3]

void sensor_msgs::msg::RegionOfInterest::do_rectify ( bool  _do_rectify)

◆ do_rectify() [2/3]

bool sensor_msgs::msg::RegionOfInterest::do_rectify ( ) const

This function returns the value of member do_rectify.

Returns
Value of member do_rectify

Definition at line 282 of file RegionOfInterest.cpp.

◆ do_rectify() [3/3]

bool & sensor_msgs::msg::RegionOfInterest::do_rectify ( )

This function returns a reference to member do_rectify.

Returns
Reference to member do_rectify

Definition at line 291 of file RegionOfInterest.cpp.

◆ getCdrSerializedSize()

size_t sensor_msgs::msg::RegionOfInterest::getCdrSerializedSize ( const sensor_msgs::msg::RegionOfInterest data,
size_t  current_alignment = 0 
)
static

This function returns the serialized size of a data depending on the buffer alignment.

Parameters
dataData which is calculated its serialized size.
current_alignmentBuffer alignment.
Returns
Serialized size.

Definition at line 121 of file RegionOfInterest.cpp.

Referenced by sensor_msgs::msg::CameraInfo::getCdrSerializedSize(), and sensor_msgs::msg::RegionOfInterestPubSubType::getSerializedSizeProvider().

+ Here is the caller graph for this function:

◆ getKeyMaxCdrSerializedSize()

size_t sensor_msgs::msg::RegionOfInterest::getKeyMaxCdrSerializedSize ( size_t  current_alignment = 0)
static

This function returns the maximum serialized size of the Key of an object depending on the buffer alignment.

Parameters
current_alignmentBuffer alignment.
Returns
Maximum serialized size.

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().

+ Here is the caller graph for this function:

◆ getMaxCdrSerializedSize()

size_t sensor_msgs::msg::RegionOfInterest::getMaxCdrSerializedSize ( size_t  current_alignment = 0)
static

This function returns the maximum serialized size of an object depending on the buffer alignment.

Parameters
current_alignmentBuffer alignment.
Returns
Maximum serialized size.

Definition at line 114 of file RegionOfInterest.cpp.

References sensor_msgs_msg_RegionOfInterest_max_cdr_typesize.

Referenced by sensor_msgs::msg::RegionOfInterestPubSubType::RegionOfInterestPubSubType().

+ Here is the caller graph for this function:

◆ height() [1/3]

void sensor_msgs::msg::RegionOfInterest::height ( uint32_t  _height)

◆ height() [2/3]

uint32_t sensor_msgs::msg::RegionOfInterest::height ( ) const

This function returns the value of member height.

Returns
Value of member height

Definition at line 226 of file RegionOfInterest.cpp.

◆ height() [3/3]

uint32_t & sensor_msgs::msg::RegionOfInterest::height ( )

This function returns a reference to member height.

Returns
Reference to member height

Definition at line 235 of file RegionOfInterest.cpp.

◆ isKeyDefined()

bool sensor_msgs::msg::RegionOfInterest::isKeyDefined ( )
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().

+ Here is the caller graph for this function:

◆ operator!=()

bool sensor_msgs::msg::RegionOfInterest::operator!= ( const RegionOfInterest x) const

Comparison operator.

Parameters
xsensor_msgs::msg::RegionOfInterest object to compare.

Definition at line 108 of file RegionOfInterest.cpp.

◆ operator=() [1/2]

sensor_msgs::msg::RegionOfInterest & sensor_msgs::msg::RegionOfInterest::operator= ( const RegionOfInterest x)

Copy assignment.

Parameters
xReference 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.

◆ operator=() [2/2]

sensor_msgs::msg::RegionOfInterest & sensor_msgs::msg::RegionOfInterest::operator= ( RegionOfInterest &&  x)
noexcept

Move assignment.

Parameters
xReference to the object sensor_msgs::msg::RegionOfInterest that will be copied.

Definition at line 90 of file RegionOfInterest.cpp.

References m_x_offset.

◆ operator==()

bool sensor_msgs::msg::RegionOfInterest::operator== ( const RegionOfInterest x) const

Comparison operator.

Parameters
xsensor_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.

◆ serialize()

void sensor_msgs::msg::RegionOfInterest::serialize ( eprosima::fastcdr::Cdr &  cdr) const

This function serializes an object using CDR serialization.

Parameters
cdrCDR serialization object.

Definition at line 136 of file RegionOfInterest.cpp.

Referenced by sensor_msgs::msg::RegionOfInterestPubSubType::serialize().

+ Here is the caller graph for this function:

◆ serializeKey()

void sensor_msgs::msg::RegionOfInterest::serializeKey ( eprosima::fastcdr::Cdr &  cdr) const

This function serializes the key members of an object using CDR serialization.

Parameters
cdrCDR serialization object.

Definition at line 308 of file RegionOfInterest.cpp.

Referenced by sensor_msgs::msg::RegionOfInterestPubSubType::getKey().

+ Here is the caller graph for this function:

◆ width() [1/3]

void sensor_msgs::msg::RegionOfInterest::width ( uint32_t  _width)

◆ width() [2/3]

uint32_t sensor_msgs::msg::RegionOfInterest::width ( ) const

This function returns the value of member width.

Returns
Value of member width

Definition at line 254 of file RegionOfInterest.cpp.

◆ width() [3/3]

uint32_t & sensor_msgs::msg::RegionOfInterest::width ( )

This function returns a reference to member width.

Returns
Reference to member width

Definition at line 263 of file RegionOfInterest.cpp.

◆ x_offset() [1/3]

void sensor_msgs::msg::RegionOfInterest::x_offset ( uint32_t  _x_offset)

◆ x_offset() [2/3]

uint32_t sensor_msgs::msg::RegionOfInterest::x_offset ( ) const

This function returns the value of member x_offset.

Returns
Value of member x_offset

Definition at line 170 of file RegionOfInterest.cpp.

◆ x_offset() [3/3]

uint32_t & sensor_msgs::msg::RegionOfInterest::x_offset ( )

This function returns a reference to member x_offset.

Returns
Reference to member x_offset

Definition at line 179 of file RegionOfInterest.cpp.

◆ y_offset() [1/3]

void sensor_msgs::msg::RegionOfInterest::y_offset ( uint32_t  _y_offset)

◆ y_offset() [2/3]

uint32_t sensor_msgs::msg::RegionOfInterest::y_offset ( ) const

This function returns the value of member y_offset.

Returns
Value of member y_offset

Definition at line 198 of file RegionOfInterest.cpp.

◆ y_offset() [3/3]

uint32_t & sensor_msgs::msg::RegionOfInterest::y_offset ( )

This function returns a reference to member y_offset.

Returns
Reference to member y_offset

Definition at line 207 of file RegionOfInterest.cpp.

Member Data Documentation

◆ m_do_rectify

bool sensor_msgs::msg::RegionOfInterest::m_do_rectify
private

Definition at line 281 of file RegionOfInterest.h.

Referenced by operator=(), operator==(), and RegionOfInterest().

◆ m_height

uint32_t sensor_msgs::msg::RegionOfInterest::m_height
private

Definition at line 279 of file RegionOfInterest.h.

Referenced by operator=(), operator==(), and RegionOfInterest().

◆ m_width

uint32_t sensor_msgs::msg::RegionOfInterest::m_width
private

Definition at line 280 of file RegionOfInterest.h.

Referenced by operator=(), operator==(), and RegionOfInterest().

◆ m_x_offset

uint32_t sensor_msgs::msg::RegionOfInterest::m_x_offset
private

Definition at line 277 of file RegionOfInterest.h.

Referenced by operator=(), operator==(), and RegionOfInterest().

◆ m_y_offset

uint32_t sensor_msgs::msg::RegionOfInterest::m_y_offset
private

Definition at line 278 of file RegionOfInterest.h.

Referenced by operator=(), operator==(), and RegionOfInterest().


The documentation for this class was generated from the following files: