This class represents the structure CameraInfo defined by the user in the IDL file. More...
#include <CameraInfo.h>
Public Member Functions | |
eProsima_user_DllExport void | binning_x (uint32_t _binning_x) |
This function sets a value in member binning_x. More... | |
eProsima_user_DllExport uint32_t | binning_x () const |
This function returns the value of member binning_x. More... | |
eProsima_user_DllExport uint32_t & | binning_x () |
This function returns a reference to member binning_x. More... | |
eProsima_user_DllExport void | binning_y (uint32_t _binning_y) |
This function sets a value in member binning_y. More... | |
eProsima_user_DllExport uint32_t | binning_y () const |
This function returns the value of member binning_y. More... | |
eProsima_user_DllExport uint32_t & | binning_y () |
This function returns a reference to member binning_y. More... | |
eProsima_user_DllExport | CameraInfo (uint32_t height=0, uint32_t width=0, double fov=0.0) |
Default constructor. More... | |
eProsima_user_DllExport | CameraInfo (const CameraInfo &x) |
Copy constructor. More... | |
eProsima_user_DllExport | CameraInfo (CameraInfo &&x) noexcept |
Move constructor. More... | |
eProsima_user_DllExport void | D (const std::vector< double > &_D) |
This function copies the value in member D. More... | |
eProsima_user_DllExport void | D (std::vector< double > &&_D) |
This function moves the value in member D. More... | |
eProsima_user_DllExport const std::vector< double > & | D () const |
This function returns a constant reference to member D. More... | |
eProsima_user_DllExport std::vector< double > & | D () |
This function returns a reference to member D. More... | |
eProsima_user_DllExport void | deserialize (eprosima::fastcdr::Cdr &cdr) |
This function deserializes an object using CDR serialization. More... | |
eProsima_user_DllExport void | distortion_model (const std::string &_distortion_model) |
This function copies the value in member distortion_model. More... | |
eProsima_user_DllExport void | distortion_model (std::string &&_distortion_model) |
This function moves the value in member distortion_model. More... | |
eProsima_user_DllExport const std::string & | distortion_model () const |
This function returns a constant reference to member distortion_model. More... | |
eProsima_user_DllExport std::string & | distortion_model () |
This function returns a reference to member distortion_model. More... | |
eProsima_user_DllExport void | header (const std_msgs::msg::Header &_header) |
This function copies the value in member header. More... | |
eProsima_user_DllExport void | header (std_msgs::msg::Header &&_header) |
This function moves the value in member header. More... | |
eProsima_user_DllExport const std_msgs::msg::Header & | header () const |
This function returns a constant reference to member header. More... | |
eProsima_user_DllExport std_msgs::msg::Header & | header () |
This function returns a reference to member header. 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 void | k (const std::array< double, 9 > &_k) |
This function copies the value in member K. More... | |
eProsima_user_DllExport void | k (std::array< double, 9 > &&_k) |
This function moves the value in member k. More... | |
eProsima_user_DllExport const std::array< double, 9 > & | k () const |
This function returns a constant reference to member k. More... | |
eProsima_user_DllExport std::array< double, 9 > & | k () |
This function returns a reference to member k. More... | |
eProsima_user_DllExport bool | operator!= (const CameraInfo &x) const |
Comparison operator. More... | |
eProsima_user_DllExport CameraInfo & | operator= (const CameraInfo &x) |
Copy assignment. More... | |
eProsima_user_DllExport CameraInfo & | operator= (CameraInfo &&x) noexcept |
Move assignment. More... | |
eProsima_user_DllExport bool | operator== (const CameraInfo &x) const |
Comparison operator. More... | |
eProsima_user_DllExport void | p (const std::array< double, 12 > &_p) |
This function copies the value in member p. More... | |
eProsima_user_DllExport void | p (std::array< double, 12 > &&_p) |
This function moves the value in member p. More... | |
eProsima_user_DllExport const std::array< double, 12 > & | p () const |
This function returns a constant reference to member p. More... | |
eProsima_user_DllExport std::array< double, 12 > & | p () |
This function returns a reference to member p. More... | |
eProsima_user_DllExport void | r (const std::array< double, 9 > &_r) |
This function copies the value in member r. More... | |
eProsima_user_DllExport void | r (std::array< double, 9 > &&_r) |
This function moves the value in member r. More... | |
eProsima_user_DllExport const std::array< double, 9 > & | r () const |
This function returns a constant reference to member r. More... | |
eProsima_user_DllExport std::array< double, 9 > & | r () |
This function returns a reference to member r. More... | |
eProsima_user_DllExport void | roi (const sensor_msgs::msg::RegionOfInterest &_roi) |
This function copies the value in member roi. More... | |
eProsima_user_DllExport void | roi (sensor_msgs::msg::RegionOfInterest &&_roi) |
This function moves the value in member roi. More... | |
eProsima_user_DllExport const sensor_msgs::msg::RegionOfInterest & | roi () const |
This function returns a constant reference to member roi. More... | |
eProsima_user_DllExport sensor_msgs::msg::RegionOfInterest & | roi () |
This function returns a reference to member roi. 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 | ~CameraInfo () |
Default destructor. More... | |
Static Public Member Functions | |
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. 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 | |
uint32_t | m_binning_x |
uint32_t | m_binning_y |
std::vector< double > | m_d |
std::string | m_distortion_model |
std_msgs::msg::Header | m_header |
uint32_t | m_height |
std::array< double, 9 > | m_k |
std::array< double, 12 > | m_p |
std::array< double, 9 > | m_r |
sensor_msgs::msg::RegionOfInterest | m_roi |
uint32_t | m_width |
This class represents the structure CameraInfo defined by the user in the IDL file.
Definition at line 73 of file CameraInfo.h.
sensor_msgs::msg::CameraInfo::CameraInfo | ( | uint32_t | height = 0 , |
uint32_t | width = 0 , |
||
double | fov = 0.0 |
||
) |
Default constructor.
Definition at line 47 of file CameraInfo.cpp.
References m_binning_x, m_binning_y, m_d, m_distortion_model, m_height, m_k, m_p, m_r, and m_width.
sensor_msgs::msg::CameraInfo::~CameraInfo | ( | ) |
Default destructor.
Definition at line 68 of file CameraInfo.cpp.
sensor_msgs::msg::CameraInfo::CameraInfo | ( | const CameraInfo & | x | ) |
Copy constructor.
x | Reference to the object sensor_msgs::msg::CameraInfo that will be copied. |
Definition at line 72 of file CameraInfo.cpp.
References m_binning_x, m_binning_y, m_d, m_distortion_model, m_header, m_height, m_k, m_p, m_r, m_roi, and m_width.
|
noexcept |
Move constructor.
x | Reference to the object sensor_msgs::msg::CameraInfo that will be copied. |
Definition at line 88 of file CameraInfo.cpp.
References m_binning_x, m_binning_y, m_d, m_distortion_model, m_header, m_height, m_k, m_p, m_r, m_roi, and m_width.
void sensor_msgs::msg::CameraInfo::binning_x | ( | uint32_t | _binning_x | ) |
This function sets a value in member binning_x.
_binning_x | New value for member binning_x |
Definition at line 522 of file CameraInfo.cpp.
References m_binning_x.
uint32_t sensor_msgs::msg::CameraInfo::binning_x | ( | ) | const |
This function returns the value of member binning_x.
Definition at line 532 of file CameraInfo.cpp.
References m_binning_x.
uint32_t & sensor_msgs::msg::CameraInfo::binning_x | ( | ) |
This function returns a reference to member binning_x.
Definition at line 541 of file CameraInfo.cpp.
References m_binning_x.
void sensor_msgs::msg::CameraInfo::binning_y | ( | uint32_t | _binning_y | ) |
This function sets a value in member binning_y.
_binning_y | New value for member binning_y |
Definition at line 550 of file CameraInfo.cpp.
References m_binning_y.
uint32_t sensor_msgs::msg::CameraInfo::binning_y | ( | ) | const |
This function returns the value of member binning_y.
Definition at line 560 of file CameraInfo.cpp.
References m_binning_y.
uint32_t & sensor_msgs::msg::CameraInfo::binning_y | ( | ) |
This function returns a reference to member binning_y.
Definition at line 569 of file CameraInfo.cpp.
References m_binning_y.
void sensor_msgs::msg::CameraInfo::D | ( | const std::vector< double > & | _D | ) |
This function copies the value in member D.
_D | New value to be copied in member D |
Definition at line 371 of file CameraInfo.cpp.
References m_d.
Referenced by getCdrSerializedSize().
void sensor_msgs::msg::CameraInfo::D | ( | std::vector< double > && | _D | ) |
This function moves the value in member D.
_D | New value to be moved in member D |
Definition at line 381 of file CameraInfo.cpp.
References m_d.
const std::vector< double > & sensor_msgs::msg::CameraInfo::D | ( | ) | const |
This function returns a constant reference to member D.
Definition at line 391 of file CameraInfo.cpp.
References m_d.
std::vector< double > & sensor_msgs::msg::CameraInfo::D | ( | ) |
This function returns a reference to member D.
Definition at line 400 of file CameraInfo.cpp.
References m_d.
void sensor_msgs::msg::CameraInfo::deserialize | ( | eprosima::fastcdr::Cdr & | cdr | ) |
This function deserializes an object using CDR serialization.
cdr | CDR serialization object. |
Definition at line 220 of file CameraInfo.cpp.
References m_binning_x, m_binning_y, m_d, m_distortion_model, m_header, m_height, m_k, m_p, m_r, m_roi, and m_width.
Referenced by sensor_msgs::msg::CameraInfoPubSubType::deserialize().
void sensor_msgs::msg::CameraInfo::distortion_model | ( | const std::string & | _distortion_model | ) |
This function copies the value in member distortion_model.
_distortion_model | New value to be copied in member distortion_model |
Definition at line 333 of file CameraInfo.cpp.
References m_distortion_model.
Referenced by getCdrSerializedSize().
void sensor_msgs::msg::CameraInfo::distortion_model | ( | std::string && | _distortion_model | ) |
This function moves the value in member distortion_model.
_distortion_model | New value to be moved in member distortion_model |
Definition at line 343 of file CameraInfo.cpp.
References m_distortion_model.
const std::string & sensor_msgs::msg::CameraInfo::distortion_model | ( | ) | const |
This function returns a constant reference to member distortion_model.
Definition at line 353 of file CameraInfo.cpp.
References m_distortion_model.
std::string & sensor_msgs::msg::CameraInfo::distortion_model | ( | ) |
This function returns a reference to member distortion_model.
Definition at line 362 of file CameraInfo.cpp.
References m_distortion_model.
|
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 159 of file CameraInfo.cpp.
References D(), distortion_model(), std_msgs::msg::Header::getCdrSerializedSize(), sensor_msgs::msg::RegionOfInterest::getCdrSerializedSize(), header(), k(), p(), r(), and roi().
Referenced by sensor_msgs::msg::CameraInfoPubSubType::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 612 of file CameraInfo.cpp.
References sensor_msgs_msg_CameraInfo_max_key_cdr_typesize.
Referenced by sensor_msgs::msg::CameraInfoPubSubType::CameraInfoPubSubType(), and sensor_msgs::msg::CameraInfoPubSubType::getKey().
|
static |
This function returns the maximum serialized size of an object depending on the buffer alignment.
current_alignment | Buffer alignment. |
Definition at line 152 of file CameraInfo.cpp.
References sensor_msgs_msg_CameraInfo_max_cdr_typesize.
Referenced by sensor_msgs::msg::CameraInfoPubSubType::CameraInfoPubSubType().
void sensor_msgs::msg::CameraInfo::header | ( | const std_msgs::msg::Header & | _header | ) |
This function copies the value in member header.
_header | New value to be copied in member header |
Definition at line 240 of file CameraInfo.cpp.
References m_header.
Referenced by getCdrSerializedSize().
void sensor_msgs::msg::CameraInfo::header | ( | std_msgs::msg::Header && | _header | ) |
This function moves the value in member header.
_header | New value to be moved in member header |
Definition at line 250 of file CameraInfo.cpp.
References m_header.
const std_msgs::msg::Header & sensor_msgs::msg::CameraInfo::header | ( | ) | const |
This function returns a constant reference to member header.
Definition at line 260 of file CameraInfo.cpp.
References m_header.
std_msgs::msg::Header & sensor_msgs::msg::CameraInfo::header | ( | ) |
This function returns a reference to member header.
Definition at line 269 of file CameraInfo.cpp.
References m_header.
void sensor_msgs::msg::CameraInfo::height | ( | uint32_t | _height | ) |
This function sets a value in member height.
_height | New value for member height |
Definition at line 277 of file CameraInfo.cpp.
References m_height.
uint32_t sensor_msgs::msg::CameraInfo::height | ( | ) | const |
This function returns the value of member height.
Definition at line 287 of file CameraInfo.cpp.
References m_height.
uint32_t & sensor_msgs::msg::CameraInfo::height | ( | ) |
This function returns a reference to member height.
Definition at line 296 of file CameraInfo.cpp.
References m_height.
|
static |
This function tells you if the Key has been defined for this type.
Definition at line 619 of file CameraInfo.cpp.
Referenced by sensor_msgs::msg::CameraInfoPubSubType::CameraInfoPubSubType().
void sensor_msgs::msg::CameraInfo::k | ( | const std::array< double, 9 > & | _k | ) |
This function copies the value in member K.
This function copies the value in member k.
_K | New value to be copied in member K |
_k | New value to be copied in member k |
Definition at line 409 of file CameraInfo.cpp.
References m_k.
Referenced by getCdrSerializedSize().
void sensor_msgs::msg::CameraInfo::k | ( | std::array< double, 9 > && | _k | ) |
This function moves the value in member k.
_k | New value to be moved in member k |
Definition at line 419 of file CameraInfo.cpp.
References m_k.
const std::array< double, 9 > & sensor_msgs::msg::CameraInfo::k | ( | ) | const |
This function returns a constant reference to member k.
Definition at line 429 of file CameraInfo.cpp.
References m_k.
std::array< double, 9 > & sensor_msgs::msg::CameraInfo::k | ( | ) |
This function returns a reference to member k.
Definition at line 438 of file CameraInfo.cpp.
References m_k.
bool sensor_msgs::msg::CameraInfo::operator!= | ( | const CameraInfo & | x | ) | const |
Comparison operator.
x | sensor_msgs::msg::CameraInfo object to compare. |
Definition at line 146 of file CameraInfo.cpp.
sensor_msgs::msg::CameraInfo & sensor_msgs::msg::CameraInfo::operator= | ( | const CameraInfo & | x | ) |
Copy assignment.
x | Reference to the object sensor_msgs::msg::CameraInfo that will be copied. |
Definition at line 104 of file CameraInfo.cpp.
References m_binning_x, m_binning_y, m_d, m_distortion_model, m_header, m_height, m_k, m_p, m_r, m_roi, and m_width.
|
noexcept |
Move assignment.
x | Reference to the object sensor_msgs::msg::CameraInfo that will be copied. |
Definition at line 122 of file CameraInfo.cpp.
References m_binning_x, m_binning_y, m_d, m_distortion_model, m_header, m_height, m_k, m_p, m_r, m_roi, and m_width.
bool sensor_msgs::msg::CameraInfo::operator== | ( | const CameraInfo & | x | ) | const |
Comparison operator.
x | sensor_msgs::msg::CameraInfo object to compare. |
Definition at line 140 of file CameraInfo.cpp.
References m_binning_x, m_binning_y, m_d, m_distortion_model, m_header, m_height, m_k, m_p, m_r, m_roi, and m_width.
void sensor_msgs::msg::CameraInfo::p | ( | const std::array< double, 12 > & | _p | ) |
This function copies the value in member p.
_p | New value to be copied in member p |
Definition at line 484 of file CameraInfo.cpp.
References m_p.
Referenced by getCdrSerializedSize().
void sensor_msgs::msg::CameraInfo::p | ( | std::array< double, 12 > && | _p | ) |
This function moves the value in member p.
_p | New value to be moved in member p |
Definition at line 494 of file CameraInfo.cpp.
References m_p.
const std::array< double, 12 > & sensor_msgs::msg::CameraInfo::p | ( | ) | const |
This function returns a constant reference to member p.
Definition at line 504 of file CameraInfo.cpp.
References m_p.
std::array< double, 12 > & sensor_msgs::msg::CameraInfo::p | ( | ) |
This function returns a reference to member p.
Definition at line 513 of file CameraInfo.cpp.
References m_p.
void sensor_msgs::msg::CameraInfo::r | ( | const std::array< double, 9 > & | _r | ) |
This function copies the value in member r.
_r | New value to be copied in member r |
Definition at line 446 of file CameraInfo.cpp.
References m_r.
Referenced by getCdrSerializedSize().
void sensor_msgs::msg::CameraInfo::r | ( | std::array< double, 9 > && | _r | ) |
This function moves the value in member r.
_r | New value to be moved in member r |
Definition at line 456 of file CameraInfo.cpp.
References m_r.
const std::array< double, 9 > & sensor_msgs::msg::CameraInfo::r | ( | ) | const |
This function returns a constant reference to member r.
Definition at line 466 of file CameraInfo.cpp.
References m_r.
std::array< double, 9 > & sensor_msgs::msg::CameraInfo::r | ( | ) |
This function returns a reference to member r.
Definition at line 475 of file CameraInfo.cpp.
References m_r.
void sensor_msgs::msg::CameraInfo::roi | ( | const sensor_msgs::msg::RegionOfInterest & | _roi | ) |
This function copies the value in member roi.
_roi | New value to be copied in member roi |
Definition at line 578 of file CameraInfo.cpp.
References m_roi.
Referenced by getCdrSerializedSize().
void sensor_msgs::msg::CameraInfo::roi | ( | sensor_msgs::msg::RegionOfInterest && | _roi | ) |
This function moves the value in member roi.
_roi | New value to be moved in member roi |
Definition at line 588 of file CameraInfo.cpp.
References m_roi.
const sensor_msgs::msg::RegionOfInterest & sensor_msgs::msg::CameraInfo::roi | ( | ) | const |
This function returns a constant reference to member roi.
Definition at line 598 of file CameraInfo.cpp.
References m_roi.
sensor_msgs::msg::RegionOfInterest & sensor_msgs::msg::CameraInfo::roi | ( | ) |
This function returns a reference to member roi.
Definition at line 607 of file CameraInfo.cpp.
References m_roi.
void sensor_msgs::msg::CameraInfo::serialize | ( | eprosima::fastcdr::Cdr & | cdr | ) | const |
This function serializes an object using CDR serialization.
cdr | CDR serialization object. |
Definition at line 204 of file CameraInfo.cpp.
References m_binning_x, m_binning_y, m_d, m_distortion_model, m_header, m_height, m_k, m_p, m_r, m_roi, and m_width.
Referenced by sensor_msgs::msg::CameraInfoPubSubType::serialize().
void sensor_msgs::msg::CameraInfo::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 624 of file CameraInfo.cpp.
Referenced by sensor_msgs::msg::CameraInfoPubSubType::getKey().
void sensor_msgs::msg::CameraInfo::width | ( | uint32_t | _width | ) |
This function sets a value in member width.
_width | New value for member width |
Definition at line 305 of file CameraInfo.cpp.
References m_width.
uint32_t sensor_msgs::msg::CameraInfo::width | ( | ) | const |
This function returns the value of member width.
Definition at line 315 of file CameraInfo.cpp.
References m_width.
uint32_t & sensor_msgs::msg::CameraInfo::width | ( | ) |
This function returns a reference to member width.
Definition at line 324 of file CameraInfo.cpp.
References m_width.
|
private |
Definition at line 444 of file CameraInfo.h.
Referenced by binning_x(), CameraInfo(), deserialize(), operator=(), operator==(), and serialize().
|
private |
Definition at line 445 of file CameraInfo.h.
Referenced by binning_y(), CameraInfo(), deserialize(), operator=(), operator==(), and serialize().
|
private |
Definition at line 440 of file CameraInfo.h.
Referenced by CameraInfo(), D(), deserialize(), operator=(), operator==(), and serialize().
|
private |
Definition at line 439 of file CameraInfo.h.
Referenced by CameraInfo(), deserialize(), distortion_model(), operator=(), operator==(), and serialize().
|
private |
Definition at line 436 of file CameraInfo.h.
Referenced by CameraInfo(), deserialize(), header(), operator=(), operator==(), and serialize().
|
private |
Definition at line 437 of file CameraInfo.h.
Referenced by CameraInfo(), deserialize(), height(), operator=(), operator==(), and serialize().
|
private |
Definition at line 441 of file CameraInfo.h.
Referenced by CameraInfo(), deserialize(), k(), operator=(), operator==(), and serialize().
|
private |
Definition at line 443 of file CameraInfo.h.
Referenced by CameraInfo(), deserialize(), operator=(), operator==(), p(), and serialize().
|
private |
Definition at line 442 of file CameraInfo.h.
Referenced by CameraInfo(), deserialize(), operator=(), operator==(), r(), and serialize().
|
private |
Definition at line 446 of file CameraInfo.h.
Referenced by CameraInfo(), deserialize(), operator=(), operator==(), roi(), and serialize().
|
private |
Definition at line 438 of file CameraInfo.h.
Referenced by CameraInfo(), deserialize(), operator=(), operator==(), serialize(), and width().