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