This class represents the structure Odometry defined by the user in the IDL file. More...
#include <Odometry.h>
Public Member Functions | |
eProsima_user_DllExport void | child_frame_id (const std::string &_child_frame_id) |
This function copies the value in member child_frame_id. More... | |
eProsima_user_DllExport void | child_frame_id (std::string &&_child_frame_id) |
This function moves the value in member child_frame_id. More... | |
eProsima_user_DllExport const std::string & | child_frame_id () const |
This function returns a constant reference to member child_frame_id. More... | |
eProsima_user_DllExport std::string & | child_frame_id () |
This function returns a reference to member child_frame_id. More... | |
eProsima_user_DllExport void | deserialize (eprosima::fastcdr::Cdr &cdr) |
This function deserializes an object using CDR serialization. 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 | Odometry () |
Default constructor. More... | |
eProsima_user_DllExport | Odometry (const Odometry &x) |
Copy constructor. More... | |
eProsima_user_DllExport | Odometry (Odometry &&x) noexcept |
Move constructor. More... | |
eProsima_user_DllExport bool | operator!= (const Odometry &x) const |
Comparison operator. More... | |
eProsima_user_DllExport Odometry & | operator= (const Odometry &x) |
Copy assignment. More... | |
eProsima_user_DllExport Odometry & | operator= (Odometry &&x) noexcept |
Move assignment. More... | |
eProsima_user_DllExport bool | operator== (const Odometry &x) const |
Comparison operator. More... | |
eProsima_user_DllExport void | pose (const geometry_msgs::msg::PoseWithCovariance &_pose) |
This function copies the value in member pose. More... | |
eProsima_user_DllExport void | pose (geometry_msgs::msg::PoseWithCovariance &&_pose) |
This function moves the value in member pose. More... | |
eProsima_user_DllExport const geometry_msgs::msg::PoseWithCovariance & | pose () const |
This function returns a constant reference to member pose. More... | |
eProsima_user_DllExport geometry_msgs::msg::PoseWithCovariance & | pose () |
This function returns a reference to member pose. 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 | twist (const geometry_msgs::msg::TwistWithCovariance &_twist) |
This function copies the value in member twist. More... | |
eProsima_user_DllExport void | twist (geometry_msgs::msg::TwistWithCovariance &&_twist) |
This function moves the value in member twist. More... | |
eProsima_user_DllExport const geometry_msgs::msg::TwistWithCovariance & | twist () const |
This function returns a constant reference to member twist. More... | |
eProsima_user_DllExport geometry_msgs::msg::TwistWithCovariance & | twist () |
This function returns a reference to member twist. More... | |
eProsima_user_DllExport | ~Odometry () |
Default destructor. More... | |
Static Public Member Functions | |
static eProsima_user_DllExport size_t | getCdrSerializedSize (const nav_msgs::msg::Odometry &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 | |
std::string | m_child_frame_id |
std_msgs::msg::Header | m_header |
geometry_msgs::msg::PoseWithCovariance | m_pose |
geometry_msgs::msg::TwistWithCovariance | m_twist |
This class represents the structure Odometry defined by the user in the IDL file.
Definition at line 74 of file Odometry.h.
nav_msgs::msg::Odometry::Odometry | ( | ) |
Default constructor.
Definition at line 58 of file Odometry.cpp.
nav_msgs::msg::Odometry::~Odometry | ( | ) |
Default destructor.
Definition at line 69 of file Odometry.cpp.
nav_msgs::msg::Odometry::Odometry | ( | const Odometry & | x | ) |
Copy constructor.
x | Reference to the object nav_msgs::msg::Odometry that will be copied. |
Definition at line 73 of file Odometry.cpp.
References m_child_frame_id, m_header, m_pose, and m_twist.
|
noexcept |
Move constructor.
x | Reference to the object nav_msgs::msg::Odometry that will be copied. |
Definition at line 82 of file Odometry.cpp.
void nav_msgs::msg::Odometry::child_frame_id | ( | const std::string & | _child_frame_id | ) |
This function copies the value in member child_frame_id.
_child_frame_id | New value to be copied in member child_frame_id |
Definition at line 204 of file Odometry.cpp.
Referenced by getCdrSerializedSize().
void nav_msgs::msg::Odometry::child_frame_id | ( | std::string && | _child_frame_id | ) |
This function moves the value in member child_frame_id.
_child_frame_id | New value to be moved in member child_frame_id |
Definition at line 214 of file Odometry.cpp.
const std::string & nav_msgs::msg::Odometry::child_frame_id | ( | ) | const |
This function returns a constant reference to member child_frame_id.
Definition at line 224 of file Odometry.cpp.
std::string & nav_msgs::msg::Odometry::child_frame_id | ( | ) |
This function returns a reference to member child_frame_id.
Definition at line 233 of file Odometry.cpp.
void nav_msgs::msg::Odometry::deserialize | ( | eprosima::fastcdr::Cdr & | cdr | ) |
This function deserializes an object using CDR serialization.
cdr | CDR serialization object. |
Definition at line 154 of file Odometry.cpp.
Referenced by nav_msgs::msg::OdometryPubSubType::deserialize().
|
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 132 of file Odometry.cpp.
References child_frame_id(), std_msgs::msg::Header::getCdrSerializedSize(), geometry_msgs::msg::PoseWithCovariance::getCdrSerializedSize(), geometry_msgs::msg::TwistWithCovariance::getCdrSerializedSize(), header(), pose(), and twist().
Referenced by nav_msgs::msg::OdometryPubSubType::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 314 of file Odometry.cpp.
References nav_msgs_msg_Odometry_max_key_cdr_typesize.
Referenced by nav_msgs::msg::OdometryPubSubType::getKey(), and nav_msgs::msg::OdometryPubSubType::OdometryPubSubType().
|
static |
This function returns the maximum serialized size of an object depending on the buffer alignment.
current_alignment | Buffer alignment. |
Definition at line 125 of file Odometry.cpp.
References nav_msgs_msg_Odometry_max_cdr_typesize.
Referenced by nav_msgs::msg::OdometryPubSubType::OdometryPubSubType().
void nav_msgs::msg::Odometry::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 167 of file Odometry.cpp.
Referenced by getCdrSerializedSize().
void nav_msgs::msg::Odometry::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 177 of file Odometry.cpp.
const std_msgs::msg::Header & nav_msgs::msg::Odometry::header | ( | ) | const |
This function returns a constant reference to member header.
Definition at line 187 of file Odometry.cpp.
std_msgs::msg::Header & nav_msgs::msg::Odometry::header | ( | ) |
This function returns a reference to member header.
Definition at line 196 of file Odometry.cpp.
|
static |
This function tells you if the Key has been defined for this type.
Definition at line 321 of file Odometry.cpp.
Referenced by nav_msgs::msg::OdometryPubSubType::OdometryPubSubType().
bool nav_msgs::msg::Odometry::operator!= | ( | const Odometry & | x | ) | const |
Comparison operator.
x | nav_msgs::msg::Odometry object to compare. |
Definition at line 119 of file Odometry.cpp.
nav_msgs::msg::Odometry & nav_msgs::msg::Odometry::operator= | ( | const Odometry & | x | ) |
Copy assignment.
x | Reference to the object nav_msgs::msg::Odometry that will be copied. |
Definition at line 91 of file Odometry.cpp.
References m_child_frame_id, m_header, m_pose, and m_twist.
|
noexcept |
Move assignment.
x | Reference to the object nav_msgs::msg::Odometry that will be copied. |
Definition at line 102 of file Odometry.cpp.
bool nav_msgs::msg::Odometry::operator== | ( | const Odometry & | x | ) | const |
Comparison operator.
x | nav_msgs::msg::Odometry object to compare. |
Definition at line 113 of file Odometry.cpp.
References m_child_frame_id, m_header, m_pose, and m_twist.
void nav_msgs::msg::Odometry::pose | ( | const geometry_msgs::msg::PoseWithCovariance & | _pose | ) |
This function copies the value in member pose.
_pose | New value to be copied in member pose |
Definition at line 242 of file Odometry.cpp.
Referenced by getCdrSerializedSize().
void nav_msgs::msg::Odometry::pose | ( | geometry_msgs::msg::PoseWithCovariance && | _pose | ) |
This function moves the value in member pose.
_pose | New value to be moved in member pose |
Definition at line 252 of file Odometry.cpp.
const geometry_msgs::msg::PoseWithCovariance & nav_msgs::msg::Odometry::pose | ( | ) | const |
This function returns a constant reference to member pose.
Definition at line 262 of file Odometry.cpp.
geometry_msgs::msg::PoseWithCovariance & nav_msgs::msg::Odometry::pose | ( | ) |
This function returns a reference to member pose.
Definition at line 271 of file Odometry.cpp.
void nav_msgs::msg::Odometry::serialize | ( | eprosima::fastcdr::Cdr & | cdr | ) | const |
This function serializes an object using CDR serialization.
cdr | CDR serialization object. |
Definition at line 145 of file Odometry.cpp.
Referenced by nav_msgs::msg::OdometryPubSubType::serialize().
void nav_msgs::msg::Odometry::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 326 of file Odometry.cpp.
Referenced by nav_msgs::msg::OdometryPubSubType::getKey().
void nav_msgs::msg::Odometry::twist | ( | const geometry_msgs::msg::TwistWithCovariance & | _twist | ) |
This function copies the value in member twist.
_twist | New value to be copied in member twist |
Definition at line 280 of file Odometry.cpp.
Referenced by getCdrSerializedSize().
void nav_msgs::msg::Odometry::twist | ( | geometry_msgs::msg::TwistWithCovariance && | _twist | ) |
This function moves the value in member twist.
_twist | New value to be moved in member twist |
Definition at line 290 of file Odometry.cpp.
const geometry_msgs::msg::TwistWithCovariance & nav_msgs::msg::Odometry::twist | ( | ) | const |
This function returns a constant reference to member twist.
Definition at line 300 of file Odometry.cpp.
geometry_msgs::msg::TwistWithCovariance & nav_msgs::msg::Odometry::twist | ( | ) |
This function returns a reference to member twist.
Definition at line 309 of file Odometry.cpp.
|
private |
Definition at line 287 of file Odometry.h.
Referenced by Odometry(), operator=(), and operator==().
|
private |
Definition at line 286 of file Odometry.h.
Referenced by Odometry(), operator=(), and operator==().
|
private |
Definition at line 288 of file Odometry.h.
Referenced by Odometry(), operator=(), and operator==().
|
private |
Definition at line 289 of file Odometry.h.
Referenced by Odometry(), operator=(), and operator==().