00001
00002 #ifndef GEOMETRY_MSGS_MESSAGE_POSE_H
00003 #define GEOMETRY_MSGS_MESSAGE_POSE_H
00004 #include <string>
00005 #include <vector>
00006 #include <ostream>
00007 #include "ros/serialization.h"
00008 #include "ros/builtin_message_traits.h"
00009 #include "ros/message_operations.h"
00010 #include "ros/message.h"
00011 #include "ros/time.h"
00012
00013 #include "geometry_msgs/Point.h"
00014 #include "geometry_msgs/Quaternion.h"
00015
00016 namespace geometry_msgs
00017 {
00018 template <class ContainerAllocator>
00019 struct Pose_ : public ros::Message
00020 {
00021 typedef Pose_<ContainerAllocator> Type;
00022
00023 Pose_()
00024 : position()
00025 , orientation()
00026 {
00027 }
00028
00029 Pose_(const ContainerAllocator& _alloc)
00030 : position(_alloc)
00031 , orientation(_alloc)
00032 {
00033 }
00034
00035 typedef ::geometry_msgs::Point_<ContainerAllocator> _position_type;
00036 ::geometry_msgs::Point_<ContainerAllocator> position;
00037
00038 typedef ::geometry_msgs::Quaternion_<ContainerAllocator> _orientation_type;
00039 ::geometry_msgs::Quaternion_<ContainerAllocator> orientation;
00040
00041
00042 private:
00043 static const char* __s_getDataType_() { return "geometry_msgs/Pose"; }
00044 public:
00045 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); }
00046
00047 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); }
00048
00049 private:
00050 static const char* __s_getMD5Sum_() { return "e45d45a5a1ce597b249e23fb30fc871f"; }
00051 public:
00052 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); }
00053
00054 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); }
00055
00056 private:
00057 static const char* __s_getMessageDefinition_() { return "# A representation of pose in free space, composed of postion and orientation. \n\
00058 Point position\n\
00059 Quaternion orientation\n\
00060 \n\
00061 ================================================================================\n\
00062 MSG: geometry_msgs/Point\n\
00063 # This contains the position of a point in free space\n\
00064 float64 x\n\
00065 float64 y\n\
00066 float64 z\n\
00067 \n\
00068 ================================================================================\n\
00069 MSG: geometry_msgs/Quaternion\n\
00070 # This represents an orientation in free space in quaternion form.\n\
00071 \n\
00072 float64 x\n\
00073 float64 y\n\
00074 float64 z\n\
00075 float64 w\n\
00076 \n\
00077 "; }
00078 public:
00079 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); }
00080
00081 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); }
00082
00083 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const
00084 {
00085 ros::serialization::OStream stream(write_ptr, 1000000000);
00086 ros::serialization::serialize(stream, position);
00087 ros::serialization::serialize(stream, orientation);
00088 return stream.getData();
00089 }
00090
00091 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr)
00092 {
00093 ros::serialization::IStream stream(read_ptr, 1000000000);
00094 ros::serialization::deserialize(stream, position);
00095 ros::serialization::deserialize(stream, orientation);
00096 return stream.getData();
00097 }
00098
00099 ROS_DEPRECATED virtual uint32_t serializationLength() const
00100 {
00101 uint32_t size = 0;
00102 size += ros::serialization::serializationLength(position);
00103 size += ros::serialization::serializationLength(orientation);
00104 return size;
00105 }
00106
00107 typedef boost::shared_ptr< ::geometry_msgs::Pose_<ContainerAllocator> > Ptr;
00108 typedef boost::shared_ptr< ::geometry_msgs::Pose_<ContainerAllocator> const> ConstPtr;
00109 };
00110 typedef ::geometry_msgs::Pose_<std::allocator<void> > Pose;
00111
00112 typedef boost::shared_ptr< ::geometry_msgs::Pose> PosePtr;
00113 typedef boost::shared_ptr< ::geometry_msgs::Pose const> PoseConstPtr;
00114
00115
00116 template<typename ContainerAllocator>
00117 std::ostream& operator<<(std::ostream& s, const ::geometry_msgs::Pose_<ContainerAllocator> & v)
00118 {
00119 ros::message_operations::Printer< ::geometry_msgs::Pose_<ContainerAllocator> >::stream(s, "", v);
00120 return s;}
00121
00122 }
00123
00124 namespace ros
00125 {
00126 namespace message_traits
00127 {
00128 template<class ContainerAllocator>
00129 struct MD5Sum< ::geometry_msgs::Pose_<ContainerAllocator> > {
00130 static const char* value()
00131 {
00132 return "e45d45a5a1ce597b249e23fb30fc871f";
00133 }
00134
00135 static const char* value(const ::geometry_msgs::Pose_<ContainerAllocator> &) { return value(); }
00136 static const uint64_t static_value1 = 0xe45d45a5a1ce597bULL;
00137 static const uint64_t static_value2 = 0x249e23fb30fc871fULL;
00138 };
00139
00140 template<class ContainerAllocator>
00141 struct DataType< ::geometry_msgs::Pose_<ContainerAllocator> > {
00142 static const char* value()
00143 {
00144 return "geometry_msgs/Pose";
00145 }
00146
00147 static const char* value(const ::geometry_msgs::Pose_<ContainerAllocator> &) { return value(); }
00148 };
00149
00150 template<class ContainerAllocator>
00151 struct Definition< ::geometry_msgs::Pose_<ContainerAllocator> > {
00152 static const char* value()
00153 {
00154 return "# A representation of pose in free space, composed of postion and orientation. \n\
00155 Point position\n\
00156 Quaternion orientation\n\
00157 \n\
00158 ================================================================================\n\
00159 MSG: geometry_msgs/Point\n\
00160 # This contains the position of a point in free space\n\
00161 float64 x\n\
00162 float64 y\n\
00163 float64 z\n\
00164 \n\
00165 ================================================================================\n\
00166 MSG: geometry_msgs/Quaternion\n\
00167 # This represents an orientation in free space in quaternion form.\n\
00168 \n\
00169 float64 x\n\
00170 float64 y\n\
00171 float64 z\n\
00172 float64 w\n\
00173 \n\
00174 ";
00175 }
00176
00177 static const char* value(const ::geometry_msgs::Pose_<ContainerAllocator> &) { return value(); }
00178 };
00179
00180 template<class ContainerAllocator> struct IsFixedSize< ::geometry_msgs::Pose_<ContainerAllocator> > : public TrueType {};
00181 }
00182 }
00183
00184 namespace ros
00185 {
00186 namespace serialization
00187 {
00188
00189 template<class ContainerAllocator> struct Serializer< ::geometry_msgs::Pose_<ContainerAllocator> >
00190 {
00191 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00192 {
00193 stream.next(m.position);
00194 stream.next(m.orientation);
00195 }
00196
00197 ROS_DECLARE_ALLINONE_SERIALIZER;
00198 };
00199 }
00200 }
00201
00202 namespace ros
00203 {
00204 namespace message_operations
00205 {
00206
00207 template<class ContainerAllocator>
00208 struct Printer< ::geometry_msgs::Pose_<ContainerAllocator> >
00209 {
00210 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::geometry_msgs::Pose_<ContainerAllocator> & v)
00211 {
00212 s << indent << "position: ";
00213 s << std::endl;
00214 Printer< ::geometry_msgs::Point_<ContainerAllocator> >::stream(s, indent + " ", v.position);
00215 s << indent << "orientation: ";
00216 s << std::endl;
00217 Printer< ::geometry_msgs::Quaternion_<ContainerAllocator> >::stream(s, indent + " ", v.orientation);
00218 }
00219 };
00220
00221
00222 }
00223 }
00224
00225 #endif // GEOMETRY_MSGS_MESSAGE_POSE_H
00226