00001
00002 #ifndef GEOMETRY_MSGS_MESSAGE_POLYGONSTAMPED_H
00003 #define GEOMETRY_MSGS_MESSAGE_POLYGONSTAMPED_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/Polygon.h"
00015
00016 namespace geometry_msgs
00017 {
00018 template <class ContainerAllocator>
00019 struct PolygonStamped_ : public ros::Message
00020 {
00021 typedef PolygonStamped_<ContainerAllocator> Type;
00022
00023 PolygonStamped_()
00024 : header()
00025 , polygon()
00026 {
00027 }
00028
00029 PolygonStamped_(const ContainerAllocator& _alloc)
00030 : header(_alloc)
00031 , polygon(_alloc)
00032 {
00033 }
00034
00035 typedef ::std_msgs::Header_<ContainerAllocator> _header_type;
00036 ::std_msgs::Header_<ContainerAllocator> header;
00037
00038 typedef ::geometry_msgs::Polygon_<ContainerAllocator> _polygon_type;
00039 ::geometry_msgs::Polygon_<ContainerAllocator> polygon;
00040
00041
00042 private:
00043 static const char* __s_getDataType_() { return "geometry_msgs/PolygonStamped"; }
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 "c6be8f7dc3bee7fe9e8d296070f53340"; }
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 "# This represents a Polygon with reference coordinate frame and timestamp\n\
00058 Header header\n\
00059 Polygon polygon\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/Polygon\n\
00081 #A specification of a polygon where the first and last points are assumed to be connected\n\
00082 geometry_msgs/Point32[] points\n\
00083 \n\
00084 ================================================================================\n\
00085 MSG: geometry_msgs/Point32\n\
00086 # This contains the position of a point in free space(with 32 bits of precision).\n\
00087 # It is recommeded to use Point wherever possible instead of Point32. \n\
00088 # \n\
00089 # This recommendation is to promote interoperability. \n\
00090 #\n\
00091 # This message is designed to take up less space when sending\n\
00092 # lots of points at once, as in the case of a PointCloud. \n\
00093 \n\
00094 float32 x\n\
00095 float32 y\n\
00096 float32 z\n\
00097 "; }
00098 public:
00099 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); }
00100
00101 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); }
00102
00103 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const
00104 {
00105 ros::serialization::OStream stream(write_ptr, 1000000000);
00106 ros::serialization::serialize(stream, header);
00107 ros::serialization::serialize(stream, polygon);
00108 return stream.getData();
00109 }
00110
00111 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr)
00112 {
00113 ros::serialization::IStream stream(read_ptr, 1000000000);
00114 ros::serialization::deserialize(stream, header);
00115 ros::serialization::deserialize(stream, polygon);
00116 return stream.getData();
00117 }
00118
00119 ROS_DEPRECATED virtual uint32_t serializationLength() const
00120 {
00121 uint32_t size = 0;
00122 size += ros::serialization::serializationLength(header);
00123 size += ros::serialization::serializationLength(polygon);
00124 return size;
00125 }
00126
00127 typedef boost::shared_ptr< ::geometry_msgs::PolygonStamped_<ContainerAllocator> > Ptr;
00128 typedef boost::shared_ptr< ::geometry_msgs::PolygonStamped_<ContainerAllocator> const> ConstPtr;
00129 };
00130 typedef ::geometry_msgs::PolygonStamped_<std::allocator<void> > PolygonStamped;
00131
00132 typedef boost::shared_ptr< ::geometry_msgs::PolygonStamped> PolygonStampedPtr;
00133 typedef boost::shared_ptr< ::geometry_msgs::PolygonStamped const> PolygonStampedConstPtr;
00134
00135
00136 template<typename ContainerAllocator>
00137 std::ostream& operator<<(std::ostream& s, const ::geometry_msgs::PolygonStamped_<ContainerAllocator> & v)
00138 {
00139 ros::message_operations::Printer< ::geometry_msgs::PolygonStamped_<ContainerAllocator> >::stream(s, "", v);
00140 return s;}
00141
00142 }
00143
00144 namespace ros
00145 {
00146 namespace message_traits
00147 {
00148 template<class ContainerAllocator>
00149 struct MD5Sum< ::geometry_msgs::PolygonStamped_<ContainerAllocator> > {
00150 static const char* value()
00151 {
00152 return "c6be8f7dc3bee7fe9e8d296070f53340";
00153 }
00154
00155 static const char* value(const ::geometry_msgs::PolygonStamped_<ContainerAllocator> &) { return value(); }
00156 static const uint64_t static_value1 = 0xc6be8f7dc3bee7feULL;
00157 static const uint64_t static_value2 = 0x9e8d296070f53340ULL;
00158 };
00159
00160 template<class ContainerAllocator>
00161 struct DataType< ::geometry_msgs::PolygonStamped_<ContainerAllocator> > {
00162 static const char* value()
00163 {
00164 return "geometry_msgs/PolygonStamped";
00165 }
00166
00167 static const char* value(const ::geometry_msgs::PolygonStamped_<ContainerAllocator> &) { return value(); }
00168 };
00169
00170 template<class ContainerAllocator>
00171 struct Definition< ::geometry_msgs::PolygonStamped_<ContainerAllocator> > {
00172 static const char* value()
00173 {
00174 return "# This represents a Polygon with reference coordinate frame and timestamp\n\
00175 Header header\n\
00176 Polygon polygon\n\
00177 \n\
00178 ================================================================================\n\
00179 MSG: std_msgs/Header\n\
00180 # Standard metadata for higher-level stamped data types.\n\
00181 # This is generally used to communicate timestamped data \n\
00182 # in a particular coordinate frame.\n\
00183 # \n\
00184 # sequence ID: consecutively increasing ID \n\
00185 uint32 seq\n\
00186 #Two-integer timestamp that is expressed as:\n\
00187 # * stamp.secs: seconds (stamp_secs) since epoch\n\
00188 # * stamp.nsecs: nanoseconds since stamp_secs\n\
00189 # time-handling sugar is provided by the client library\n\
00190 time stamp\n\
00191 #Frame this data is associated with\n\
00192 # 0: no frame\n\
00193 # 1: global frame\n\
00194 string frame_id\n\
00195 \n\
00196 ================================================================================\n\
00197 MSG: geometry_msgs/Polygon\n\
00198 #A specification of a polygon where the first and last points are assumed to be connected\n\
00199 geometry_msgs/Point32[] points\n\
00200 \n\
00201 ================================================================================\n\
00202 MSG: geometry_msgs/Point32\n\
00203 # This contains the position of a point in free space(with 32 bits of precision).\n\
00204 # It is recommeded to use Point wherever possible instead of Point32. \n\
00205 # \n\
00206 # This recommendation is to promote interoperability. \n\
00207 #\n\
00208 # This message is designed to take up less space when sending\n\
00209 # lots of points at once, as in the case of a PointCloud. \n\
00210 \n\
00211 float32 x\n\
00212 float32 y\n\
00213 float32 z\n\
00214 ";
00215 }
00216
00217 static const char* value(const ::geometry_msgs::PolygonStamped_<ContainerAllocator> &) { return value(); }
00218 };
00219
00220 template<class ContainerAllocator> struct HasHeader< ::geometry_msgs::PolygonStamped_<ContainerAllocator> > : public TrueType {};
00221 template<class ContainerAllocator> struct HasHeader< const ::geometry_msgs::PolygonStamped_<ContainerAllocator> > : public TrueType {};
00222 }
00223 }
00224
00225 namespace ros
00226 {
00227 namespace serialization
00228 {
00229
00230 template<class ContainerAllocator> struct Serializer< ::geometry_msgs::PolygonStamped_<ContainerAllocator> >
00231 {
00232 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00233 {
00234 stream.next(m.header);
00235 stream.next(m.polygon);
00236 }
00237
00238 ROS_DECLARE_ALLINONE_SERIALIZER;
00239 };
00240 }
00241 }
00242
00243 namespace ros
00244 {
00245 namespace message_operations
00246 {
00247
00248 template<class ContainerAllocator>
00249 struct Printer< ::geometry_msgs::PolygonStamped_<ContainerAllocator> >
00250 {
00251 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::geometry_msgs::PolygonStamped_<ContainerAllocator> & v)
00252 {
00253 s << indent << "header: ";
00254 s << std::endl;
00255 Printer< ::std_msgs::Header_<ContainerAllocator> >::stream(s, indent + " ", v.header);
00256 s << indent << "polygon: ";
00257 s << std::endl;
00258 Printer< ::geometry_msgs::Polygon_<ContainerAllocator> >::stream(s, indent + " ", v.polygon);
00259 }
00260 };
00261
00262
00263 }
00264 }
00265
00266 #endif // GEOMETRY_MSGS_MESSAGE_POLYGONSTAMPED_H
00267