30 #include <fastcdr/Cdr.h> 32 #include <fastcdr/exceptions/BadParamException.h> 37 #define geometry_msgs_msg_TwistWithCovariance_max_cdr_typesize 336ULL; 38 #define geometry_msgs_msg_Vector3_max_cdr_typesize 24ULL; 39 #define geometry_msgs_msg_Pose_max_cdr_typesize 56ULL; 40 #define std_msgs_msg_Time_max_cdr_typesize 8ULL; 41 #define nav_msgs_msg_Odometry_max_cdr_typesize 1208ULL; 42 #define geometry_msgs_msg_Twist_max_cdr_typesize 48ULL; 43 #define geometry_msgs_msg_Point_max_cdr_typesize 24ULL; 44 #define geometry_msgs_msg_PoseWithCovariance_max_cdr_typesize 344ULL; 45 #define geometry_msgs_msg_Quaternion_max_cdr_typesize 32ULL; 46 #define std_msgs_msg_Header_max_cdr_typesize 268ULL; 47 #define geometry_msgs_msg_TwistWithCovariance_max_key_cdr_typesize 0ULL; 48 #define geometry_msgs_msg_Vector3_max_key_cdr_typesize 0ULL; 49 #define geometry_msgs_msg_Pose_max_key_cdr_typesize 0ULL; 50 #define std_msgs_msg_Time_max_key_cdr_typesize 0ULL; 51 #define nav_msgs_msg_Odometry_max_key_cdr_typesize 0ULL; 52 #define geometry_msgs_msg_Twist_max_key_cdr_typesize 0ULL; 53 #define geometry_msgs_msg_Point_max_key_cdr_typesize 0ULL; 54 #define geometry_msgs_msg_PoseWithCovariance_max_key_cdr_typesize 0ULL; 55 #define geometry_msgs_msg_Quaternion_max_key_cdr_typesize 0ULL; 56 #define std_msgs_msg_Header_max_key_cdr_typesize 0ULL; 85 m_header = std::move(x.m_header);
86 m_child_frame_id = std::move(x.m_child_frame_id);
87 m_pose = std::move(x.m_pose);
88 m_twist = std::move(x.m_twist);
105 m_header = std::move(x.m_header);
106 m_child_frame_id = std::move(x.m_child_frame_id);
107 m_pose = std::move(x.m_pose);
108 m_twist = std::move(x.m_twist);
122 return !(*
this == x);
126 size_t current_alignment)
128 static_cast<void>(current_alignment);
134 size_t current_alignment)
136 size_t initial_alignment = current_alignment;
138 current_alignment += 4 + eprosima::fastcdr::Cdr::alignment(current_alignment, 4) + data.
child_frame_id().size() + 1;
142 return current_alignment - initial_alignment;
146 eprosima::fastcdr::Cdr& scdr)
const 149 scdr << m_child_frame_id.c_str();
155 eprosima::fastcdr::Cdr& dcdr)
158 dcdr >> m_child_frame_id;
180 m_header = std::move(_header);
205 const std::string& _child_frame_id)
207 m_child_frame_id = _child_frame_id;
215 std::string&& _child_frame_id)
217 m_child_frame_id = std::move(_child_frame_id);
226 return m_child_frame_id;
235 return m_child_frame_id;
255 m_pose = std::move(_pose);
293 m_twist = std::move(_twist);
315 size_t current_alignment)
317 static_cast<void>(current_alignment);
327 eprosima::fastcdr::Cdr& scdr)
const eProsima_user_DllExport void serialize(eprosima::fastcdr::Cdr &cdr) const
This function serializes an object using CDR serialization.
geometry_msgs::msg::TwistWithCovariance m_twist
eProsima_user_DllExport Odometry()
Default constructor.
eProsima_user_DllExport bool operator==(const Odometry &x) const
Comparison operator.
This class represents the structure TwistWithCovariance defined by the user in the IDL file...
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 const geometry_msgs::msg::TwistWithCovariance & twist() const
This function returns a constant reference to member twist.
eProsima_user_DllExport bool operator!=(const Odometry &x) const
Comparison operator.
std::string m_child_frame_id
static eProsima_user_DllExport bool isKeyDefined()
This function tells you if the Key has been defined for this type.
eProsima_user_DllExport const std_msgs::msg::Header & header() const
This function returns a constant reference to member header.
eProsima_user_DllExport void deserialize(eprosima::fastcdr::Cdr &cdr)
This function deserializes an object using CDR serialization.
eProsima_user_DllExport void twist(const geometry_msgs::msg::TwistWithCovariance &_twist)
This function copies the value in member twist.
static eProsima_user_DllExport size_t getCdrSerializedSize(const geometry_msgs::msg::PoseWithCovariance &data, size_t current_alignment=0)
This function returns the serialized size of a data depending on the buffer alignment.
#define nav_msgs_msg_Odometry_max_key_cdr_typesize
This class represents the structure PoseWithCovariance defined by the user in the IDL file...
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.
geometry_msgs::msg::PoseWithCovariance m_pose
eProsima_user_DllExport void header(const std_msgs::msg::Header &_header)
This function copies the value in member header.
eProsima_user_DllExport void serializeKey(eprosima::fastcdr::Cdr &cdr) const
This function serializes the key members of an object using CDR serialization.
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...
eProsima_user_DllExport Odometry & operator=(const Odometry &x)
Copy assignment.
static eProsima_user_DllExport size_t getCdrSerializedSize(const geometry_msgs::msg::TwistWithCovariance &data, size_t current_alignment=0)
This function returns the serialized size of a data depending on the buffer alignment.
eProsima_user_DllExport const geometry_msgs::msg::PoseWithCovariance & pose() const
This function returns a constant reference to member pose.
std_msgs::msg::Header m_header
#define nav_msgs_msg_Odometry_max_cdr_typesize
eProsima_user_DllExport void pose(const geometry_msgs::msg::PoseWithCovariance &_pose)
This function copies the value in member pose.
eProsima_user_DllExport void child_frame_id(const std::string &_child_frame_id)
This function copies the value in member child_frame_id.
eProsima_user_DllExport ~Odometry()
Default destructor.
This class represents the structure Odometry defined by the user in the IDL file. ...
eProsima_user_DllExport const std::string & child_frame_id() const
This function returns a constant reference to member child_frame_id.