00001
00002 #ifndef GEOMETRY_MSGS_MESSAGE_POSESTAMPED_H
00003 #define GEOMETRY_MSGS_MESSAGE_POSESTAMPED_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 "std_msgs/Header.h"
00014 #include "geometry_msgs/Pose.h"
00015
00016 namespace geometry_msgs
00017 {
00018 template <class ContainerAllocator>
00019 struct PoseStamped_ : public ros::Message
00020 {
00021 typedef PoseStamped_<ContainerAllocator> Type;
00022
00023 PoseStamped_()
00024 : header()
00025 , pose()
00026 {
00027 }
00028
00029 PoseStamped_(const ContainerAllocator& _alloc)
00030 : header(_alloc)
00031 , pose(_alloc)
00032 {
00033 }
00034
00035 typedef ::std_msgs::Header_<ContainerAllocator> _header_type;
00036 ::std_msgs::Header_<ContainerAllocator> header;
00037
00038 typedef ::geometry_msgs::Pose_<ContainerAllocator> _pose_type;
00039 ::geometry_msgs::Pose_<ContainerAllocator> pose;
00040
00041
00042 private:
00043 static const char* __s_getDataType_() { return "geometry_msgs/PoseStamped"; }
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 "d3812c3cbc69362b77dc0b19b345f8f5"; }
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 Pose with reference coordinate frame and timestamp\n\
00058 Header header\n\
00059 Pose pose\n\
00060 \n\
00061 ================================================================================\n\
00062 MSG: std_msgs/Header\n\
00063 # Standard metadata for higher-level stamped data types.\n\
00064 # This is generally used to communicate timestamped data \n\
00065 # in a particular coordinate frame.\n\
00066 # \n\
00067 # sequence ID: consecutively increasing ID \n\
00068 uint32 seq\n\
00069 #Two-integer timestamp that is expressed as:\n\
00070 # * stamp.secs: seconds (stamp_secs) since epoch\n\
00071 # * stamp.nsecs: nanoseconds since stamp_secs\n\
00072 # time-handling sugar is provided by the client library\n\
00073 time stamp\n\
00074 #Frame this data is associated with\n\
00075 # 0: no frame\n\
00076 # 1: global frame\n\
00077 string frame_id\n\
00078 \n\
00079 ================================================================================\n\
00080 MSG: geometry_msgs/Pose\n\
00081 # A representation of pose in free space, composed of postion and orientation. \n\
00082 Point position\n\
00083 Quaternion orientation\n\
00084 \n\
00085 ================================================================================\n\
00086 MSG: geometry_msgs/Point\n\
00087 # This contains the position of a point in free space\n\
00088 float64 x\n\
00089 float64 y\n\
00090 float64 z\n\
00091 \n\
00092 ================================================================================\n\
00093 MSG: geometry_msgs/Quaternion\n\
00094 # This represents an orientation in free space in quaternion form.\n\
00095 \n\
00096 float64 x\n\
00097 float64 y\n\
00098 float64 z\n\
00099 float64 w\n\
00100 \n\
00101 "; }
00102 public:
00103 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); }
00104
00105 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); }
00106
00107 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const
00108 {
00109 ros::serialization::OStream stream(write_ptr, 1000000000);
00110 ros::serialization::serialize(stream, header);
00111 ros::serialization::serialize(stream, pose);
00112 return stream.getData();
00113 }
00114
00115 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr)
00116 {
00117 ros::serialization::IStream stream(read_ptr, 1000000000);
00118 ros::serialization::deserialize(stream, header);
00119 ros::serialization::deserialize(stream, pose);
00120 return stream.getData();
00121 }
00122
00123 ROS_DEPRECATED virtual uint32_t serializationLength() const
00124 {
00125 uint32_t size = 0;
00126 size += ros::serialization::serializationLength(header);
00127 size += ros::serialization::serializationLength(pose);
00128 return size;
00129 }
00130
00131 typedef boost::shared_ptr< ::geometry_msgs::PoseStamped_<ContainerAllocator> > Ptr;
00132 typedef boost::shared_ptr< ::geometry_msgs::PoseStamped_<ContainerAllocator> const> ConstPtr;
00133 };
00134 typedef ::geometry_msgs::PoseStamped_<std::allocator<void> > PoseStamped;
00135
00136 typedef boost::shared_ptr< ::geometry_msgs::PoseStamped> PoseStampedPtr;
00137 typedef boost::shared_ptr< ::geometry_msgs::PoseStamped const> PoseStampedConstPtr;
00138
00139
00140 template<typename ContainerAllocator>
00141 std::ostream& operator<<(std::ostream& s, const ::geometry_msgs::PoseStamped_<ContainerAllocator> & v)
00142 {
00143 ros::message_operations::Printer< ::geometry_msgs::PoseStamped_<ContainerAllocator> >::stream(s, "", v);
00144 return s;}
00145
00146 }
00147
00148 namespace ros
00149 {
00150 namespace message_traits
00151 {
00152 template<class ContainerAllocator>
00153 struct MD5Sum< ::geometry_msgs::PoseStamped_<ContainerAllocator> > {
00154 static const char* value()
00155 {
00156 return "d3812c3cbc69362b77dc0b19b345f8f5";
00157 }
00158
00159 static const char* value(const ::geometry_msgs::PoseStamped_<ContainerAllocator> &) { return value(); }
00160 static const uint64_t static_value1 = 0xd3812c3cbc69362bULL;
00161 static const uint64_t static_value2 = 0x77dc0b19b345f8f5ULL;
00162 };
00163
00164 template<class ContainerAllocator>
00165 struct DataType< ::geometry_msgs::PoseStamped_<ContainerAllocator> > {
00166 static const char* value()
00167 {
00168 return "geometry_msgs/PoseStamped";
00169 }
00170
00171 static const char* value(const ::geometry_msgs::PoseStamped_<ContainerAllocator> &) { return value(); }
00172 };
00173
00174 template<class ContainerAllocator>
00175 struct Definition< ::geometry_msgs::PoseStamped_<ContainerAllocator> > {
00176 static const char* value()
00177 {
00178 return "# A Pose with reference coordinate frame and timestamp\n\
00179 Header header\n\
00180 Pose pose\n\
00181 \n\
00182 ================================================================================\n\
00183 MSG: std_msgs/Header\n\
00184 # Standard metadata for higher-level stamped data types.\n\
00185 # This is generally used to communicate timestamped data \n\
00186 # in a particular coordinate frame.\n\
00187 # \n\
00188 # sequence ID: consecutively increasing ID \n\
00189 uint32 seq\n\
00190 #Two-integer timestamp that is expressed as:\n\
00191 # * stamp.secs: seconds (stamp_secs) since epoch\n\
00192 # * stamp.nsecs: nanoseconds since stamp_secs\n\
00193 # time-handling sugar is provided by the client library\n\
00194 time stamp\n\
00195 #Frame this data is associated with\n\
00196 # 0: no frame\n\
00197 # 1: global frame\n\
00198 string frame_id\n\
00199 \n\
00200 ================================================================================\n\
00201 MSG: geometry_msgs/Pose\n\
00202 # A representation of pose in free space, composed of postion and orientation. \n\
00203 Point position\n\
00204 Quaternion orientation\n\
00205 \n\
00206 ================================================================================\n\
00207 MSG: geometry_msgs/Point\n\
00208 # This contains the position of a point in free space\n\
00209 float64 x\n\
00210 float64 y\n\
00211 float64 z\n\
00212 \n\
00213 ================================================================================\n\
00214 MSG: geometry_msgs/Quaternion\n\
00215 # This represents an orientation in free space in quaternion form.\n\
00216 \n\
00217 float64 x\n\
00218 float64 y\n\
00219 float64 z\n\
00220 float64 w\n\
00221 \n\
00222 ";
00223 }
00224
00225 static const char* value(const ::geometry_msgs::PoseStamped_<ContainerAllocator> &) { return value(); }
00226 };
00227
00228 template<class ContainerAllocator> struct HasHeader< ::geometry_msgs::PoseStamped_<ContainerAllocator> > : public TrueType {};
00229 template<class ContainerAllocator> struct HasHeader< const ::geometry_msgs::PoseStamped_<ContainerAllocator> > : public TrueType {};
00230 }
00231 }
00232
00233 namespace ros
00234 {
00235 namespace serialization
00236 {
00237
00238 template<class ContainerAllocator> struct Serializer< ::geometry_msgs::PoseStamped_<ContainerAllocator> >
00239 {
00240 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00241 {
00242 stream.next(m.header);
00243 stream.next(m.pose);
00244 }
00245
00246 ROS_DECLARE_ALLINONE_SERIALIZER;
00247 };
00248 }
00249 }
00250
00251 namespace ros
00252 {
00253 namespace message_operations
00254 {
00255
00256 template<class ContainerAllocator>
00257 struct Printer< ::geometry_msgs::PoseStamped_<ContainerAllocator> >
00258 {
00259 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::geometry_msgs::PoseStamped_<ContainerAllocator> & v)
00260 {
00261 s << indent << "header: ";
00262 s << std::endl;
00263 Printer< ::std_msgs::Header_<ContainerAllocator> >::stream(s, indent + " ", v.header);
00264 s << indent << "pose: ";
00265 s << std::endl;
00266 Printer< ::geometry_msgs::Pose_<ContainerAllocator> >::stream(s, indent + " ", v.pose);
00267 }
00268 };
00269
00270
00271 }
00272 }
00273
00274 #endif // GEOMETRY_MSGS_MESSAGE_POSESTAMPED_H
00275