17 #ifndef GZ_MSGS_CONVERT_POSE_HH_
18 #define GZ_MSGS_CONVERT_POSE_HH_
24 #include "gz/msgs/quaternion.pb.h"
25 #include "gz/msgs/pose.pb.h"
28 #include <gz/math/Pose3.hh>
32 inline namespace GZ_MSGS_VERSION_NAMESPACE {
37 Set(_msg->mutable_position(), _data.
Pos());
38 Set(_msg->mutable_orientation(), _data.
Rot());
46 if (_msg.has_position())
51 if (_msg.has_orientation())
52 orientation =
Convert(_msg.orientation());
54 _data->
Set(pos, orientation);