$search
00001 /* Auto-generated by genmsg_cpp for file /home/rosbuild/hudson/workspace/doc-electric-common_msgs/doc_stacks/2013-03-01_14-58-52.505545/common_msgs/geometry_msgs/msg/Polygon.msg */ 00002 #ifndef GEOMETRY_MSGS_MESSAGE_POLYGON_H 00003 #define GEOMETRY_MSGS_MESSAGE_POLYGON_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 "geometry_msgs/Point32.h" 00018 00019 namespace geometry_msgs 00020 { 00021 template <class ContainerAllocator> 00022 struct Polygon_ { 00023 typedef Polygon_<ContainerAllocator> Type; 00024 00025 Polygon_() 00026 : points() 00027 { 00028 } 00029 00030 Polygon_(const ContainerAllocator& _alloc) 00031 : points(_alloc) 00032 { 00033 } 00034 00035 typedef std::vector< ::geometry_msgs::Point32_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::geometry_msgs::Point32_<ContainerAllocator> >::other > _points_type; 00036 std::vector< ::geometry_msgs::Point32_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::geometry_msgs::Point32_<ContainerAllocator> >::other > points; 00037 00038 00039 ROS_DEPRECATED uint32_t get_points_size() const { return (uint32_t)points.size(); } 00040 ROS_DEPRECATED void set_points_size(uint32_t size) { points.resize((size_t)size); } 00041 ROS_DEPRECATED void get_points_vec(std::vector< ::geometry_msgs::Point32_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::geometry_msgs::Point32_<ContainerAllocator> >::other > & vec) const { vec = this->points; } 00042 ROS_DEPRECATED void set_points_vec(const std::vector< ::geometry_msgs::Point32_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::geometry_msgs::Point32_<ContainerAllocator> >::other > & vec) { this->points = vec; } 00043 private: 00044 static const char* __s_getDataType_() { return "geometry_msgs/Polygon"; } 00045 public: 00046 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00047 00048 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00049 00050 private: 00051 static const char* __s_getMD5Sum_() { return "cd60a26494a087f577976f0329fa120e"; } 00052 public: 00053 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00054 00055 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00056 00057 private: 00058 static const char* __s_getMessageDefinition_() { return "#A specification of a polygon where the first and last points are assumed to be connected\n\ 00059 geometry_msgs/Point32[] points\n\ 00060 \n\ 00061 ================================================================================\n\ 00062 MSG: geometry_msgs/Point32\n\ 00063 # This contains the position of a point in free space(with 32 bits of precision).\n\ 00064 # It is recommeded to use Point wherever possible instead of Point32. \n\ 00065 # \n\ 00066 # This recommendation is to promote interoperability. \n\ 00067 #\n\ 00068 # This message is designed to take up less space when sending\n\ 00069 # lots of points at once, as in the case of a PointCloud. \n\ 00070 \n\ 00071 float32 x\n\ 00072 float32 y\n\ 00073 float32 z\n\ 00074 "; } 00075 public: 00076 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00077 00078 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00079 00080 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00081 { 00082 ros::serialization::OStream stream(write_ptr, 1000000000); 00083 ros::serialization::serialize(stream, points); 00084 return stream.getData(); 00085 } 00086 00087 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00088 { 00089 ros::serialization::IStream stream(read_ptr, 1000000000); 00090 ros::serialization::deserialize(stream, points); 00091 return stream.getData(); 00092 } 00093 00094 ROS_DEPRECATED virtual uint32_t serializationLength() const 00095 { 00096 uint32_t size = 0; 00097 size += ros::serialization::serializationLength(points); 00098 return size; 00099 } 00100 00101 typedef boost::shared_ptr< ::geometry_msgs::Polygon_<ContainerAllocator> > Ptr; 00102 typedef boost::shared_ptr< ::geometry_msgs::Polygon_<ContainerAllocator> const> ConstPtr; 00103 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00104 }; // struct Polygon 00105 typedef ::geometry_msgs::Polygon_<std::allocator<void> > Polygon; 00106 00107 typedef boost::shared_ptr< ::geometry_msgs::Polygon> PolygonPtr; 00108 typedef boost::shared_ptr< ::geometry_msgs::Polygon const> PolygonConstPtr; 00109 00110 00111 template<typename ContainerAllocator> 00112 std::ostream& operator<<(std::ostream& s, const ::geometry_msgs::Polygon_<ContainerAllocator> & v) 00113 { 00114 ros::message_operations::Printer< ::geometry_msgs::Polygon_<ContainerAllocator> >::stream(s, "", v); 00115 return s;} 00116 00117 } // namespace geometry_msgs 00118 00119 namespace ros 00120 { 00121 namespace message_traits 00122 { 00123 template<class ContainerAllocator> struct IsMessage< ::geometry_msgs::Polygon_<ContainerAllocator> > : public TrueType {}; 00124 template<class ContainerAllocator> struct IsMessage< ::geometry_msgs::Polygon_<ContainerAllocator> const> : public TrueType {}; 00125 template<class ContainerAllocator> 00126 struct MD5Sum< ::geometry_msgs::Polygon_<ContainerAllocator> > { 00127 static const char* value() 00128 { 00129 return "cd60a26494a087f577976f0329fa120e"; 00130 } 00131 00132 static const char* value(const ::geometry_msgs::Polygon_<ContainerAllocator> &) { return value(); } 00133 static const uint64_t static_value1 = 0xcd60a26494a087f5ULL; 00134 static const uint64_t static_value2 = 0x77976f0329fa120eULL; 00135 }; 00136 00137 template<class ContainerAllocator> 00138 struct DataType< ::geometry_msgs::Polygon_<ContainerAllocator> > { 00139 static const char* value() 00140 { 00141 return "geometry_msgs/Polygon"; 00142 } 00143 00144 static const char* value(const ::geometry_msgs::Polygon_<ContainerAllocator> &) { return value(); } 00145 }; 00146 00147 template<class ContainerAllocator> 00148 struct Definition< ::geometry_msgs::Polygon_<ContainerAllocator> > { 00149 static const char* value() 00150 { 00151 return "#A specification of a polygon where the first and last points are assumed to be connected\n\ 00152 geometry_msgs/Point32[] points\n\ 00153 \n\ 00154 ================================================================================\n\ 00155 MSG: geometry_msgs/Point32\n\ 00156 # This contains the position of a point in free space(with 32 bits of precision).\n\ 00157 # It is recommeded to use Point wherever possible instead of Point32. \n\ 00158 # \n\ 00159 # This recommendation is to promote interoperability. \n\ 00160 #\n\ 00161 # This message is designed to take up less space when sending\n\ 00162 # lots of points at once, as in the case of a PointCloud. \n\ 00163 \n\ 00164 float32 x\n\ 00165 float32 y\n\ 00166 float32 z\n\ 00167 "; 00168 } 00169 00170 static const char* value(const ::geometry_msgs::Polygon_<ContainerAllocator> &) { return value(); } 00171 }; 00172 00173 } // namespace message_traits 00174 } // namespace ros 00175 00176 namespace ros 00177 { 00178 namespace serialization 00179 { 00180 00181 template<class ContainerAllocator> struct Serializer< ::geometry_msgs::Polygon_<ContainerAllocator> > 00182 { 00183 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00184 { 00185 stream.next(m.points); 00186 } 00187 00188 ROS_DECLARE_ALLINONE_SERIALIZER; 00189 }; // struct Polygon_ 00190 } // namespace serialization 00191 } // namespace ros 00192 00193 namespace ros 00194 { 00195 namespace message_operations 00196 { 00197 00198 template<class ContainerAllocator> 00199 struct Printer< ::geometry_msgs::Polygon_<ContainerAllocator> > 00200 { 00201 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::geometry_msgs::Polygon_<ContainerAllocator> & v) 00202 { 00203 s << indent << "points[]" << std::endl; 00204 for (size_t i = 0; i < v.points.size(); ++i) 00205 { 00206 s << indent << " points[" << i << "]: "; 00207 s << std::endl; 00208 s << indent; 00209 Printer< ::geometry_msgs::Point32_<ContainerAllocator> >::stream(s, indent + " ", v.points[i]); 00210 } 00211 } 00212 }; 00213 00214 00215 } // namespace message_operations 00216 } // namespace ros 00217 00218 #endif // GEOMETRY_MSGS_MESSAGE_POLYGON_H 00219