$search
00001 /* Auto-generated by genmsg_cpp for file /home/rosbuild/hudson/workspace/doc-electric-cob_environment_perception/doc_stacks/2013-03-01_14-40-06.190572/cob_environment_perception/cob_3d_mapping_msgs/msg/PointArray.msg */ 00002 #ifndef COB_3D_MAPPING_MSGS_MESSAGE_POINTARRAY_H 00003 #define COB_3D_MAPPING_MSGS_MESSAGE_POINTARRAY_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/Point.h" 00019 00020 namespace cob_3d_mapping_msgs 00021 { 00022 template <class ContainerAllocator> 00023 struct PointArray_ { 00024 typedef PointArray_<ContainerAllocator> Type; 00025 00026 PointArray_() 00027 : header() 00028 , points() 00029 { 00030 } 00031 00032 PointArray_(const ContainerAllocator& _alloc) 00033 : header(_alloc) 00034 , points(_alloc) 00035 { 00036 } 00037 00038 typedef ::std_msgs::Header_<ContainerAllocator> _header_type; 00039 ::std_msgs::Header_<ContainerAllocator> header; 00040 00041 typedef std::vector< ::geometry_msgs::Point_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::geometry_msgs::Point_<ContainerAllocator> >::other > _points_type; 00042 std::vector< ::geometry_msgs::Point_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::geometry_msgs::Point_<ContainerAllocator> >::other > points; 00043 00044 00045 ROS_DEPRECATED uint32_t get_points_size() const { return (uint32_t)points.size(); } 00046 ROS_DEPRECATED void set_points_size(uint32_t size) { points.resize((size_t)size); } 00047 ROS_DEPRECATED void get_points_vec(std::vector< ::geometry_msgs::Point_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::geometry_msgs::Point_<ContainerAllocator> >::other > & vec) const { vec = this->points; } 00048 ROS_DEPRECATED void set_points_vec(const std::vector< ::geometry_msgs::Point_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::geometry_msgs::Point_<ContainerAllocator> >::other > & vec) { this->points = vec; } 00049 private: 00050 static const char* __s_getDataType_() { return "cob_3d_mapping_msgs/PointArray"; } 00051 public: 00052 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00053 00054 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00055 00056 private: 00057 static const char* __s_getMD5Sum_() { return "2199cac4695ce1fc0f346db535dda30d"; } 00058 public: 00059 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00060 00061 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00062 00063 private: 00064 static const char* __s_getMessageDefinition_() { return "# DEPRECATED: An array of poses with a header for global reference.\n\ 00065 \n\ 00066 Header header\n\ 00067 \n\ 00068 geometry_msgs/Point[] points\n\ 00069 \n\ 00070 ================================================================================\n\ 00071 MSG: std_msgs/Header\n\ 00072 # Standard metadata for higher-level stamped data types.\n\ 00073 # This is generally used to communicate timestamped data \n\ 00074 # in a particular coordinate frame.\n\ 00075 # \n\ 00076 # sequence ID: consecutively increasing ID \n\ 00077 uint32 seq\n\ 00078 #Two-integer timestamp that is expressed as:\n\ 00079 # * stamp.secs: seconds (stamp_secs) since epoch\n\ 00080 # * stamp.nsecs: nanoseconds since stamp_secs\n\ 00081 # time-handling sugar is provided by the client library\n\ 00082 time stamp\n\ 00083 #Frame this data is associated with\n\ 00084 # 0: no frame\n\ 00085 # 1: global frame\n\ 00086 string frame_id\n\ 00087 \n\ 00088 ================================================================================\n\ 00089 MSG: geometry_msgs/Point\n\ 00090 # This contains the position of a point in free space\n\ 00091 float64 x\n\ 00092 float64 y\n\ 00093 float64 z\n\ 00094 \n\ 00095 "; } 00096 public: 00097 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00098 00099 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00100 00101 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00102 { 00103 ros::serialization::OStream stream(write_ptr, 1000000000); 00104 ros::serialization::serialize(stream, header); 00105 ros::serialization::serialize(stream, points); 00106 return stream.getData(); 00107 } 00108 00109 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00110 { 00111 ros::serialization::IStream stream(read_ptr, 1000000000); 00112 ros::serialization::deserialize(stream, header); 00113 ros::serialization::deserialize(stream, points); 00114 return stream.getData(); 00115 } 00116 00117 ROS_DEPRECATED virtual uint32_t serializationLength() const 00118 { 00119 uint32_t size = 0; 00120 size += ros::serialization::serializationLength(header); 00121 size += ros::serialization::serializationLength(points); 00122 return size; 00123 } 00124 00125 typedef boost::shared_ptr< ::cob_3d_mapping_msgs::PointArray_<ContainerAllocator> > Ptr; 00126 typedef boost::shared_ptr< ::cob_3d_mapping_msgs::PointArray_<ContainerAllocator> const> ConstPtr; 00127 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00128 }; // struct PointArray 00129 typedef ::cob_3d_mapping_msgs::PointArray_<std::allocator<void> > PointArray; 00130 00131 typedef boost::shared_ptr< ::cob_3d_mapping_msgs::PointArray> PointArrayPtr; 00132 typedef boost::shared_ptr< ::cob_3d_mapping_msgs::PointArray const> PointArrayConstPtr; 00133 00134 00135 template<typename ContainerAllocator> 00136 std::ostream& operator<<(std::ostream& s, const ::cob_3d_mapping_msgs::PointArray_<ContainerAllocator> & v) 00137 { 00138 ros::message_operations::Printer< ::cob_3d_mapping_msgs::PointArray_<ContainerAllocator> >::stream(s, "", v); 00139 return s;} 00140 00141 } // namespace cob_3d_mapping_msgs 00142 00143 namespace ros 00144 { 00145 namespace message_traits 00146 { 00147 template<class ContainerAllocator> struct IsMessage< ::cob_3d_mapping_msgs::PointArray_<ContainerAllocator> > : public TrueType {}; 00148 template<class ContainerAllocator> struct IsMessage< ::cob_3d_mapping_msgs::PointArray_<ContainerAllocator> const> : public TrueType {}; 00149 template<class ContainerAllocator> 00150 struct MD5Sum< ::cob_3d_mapping_msgs::PointArray_<ContainerAllocator> > { 00151 static const char* value() 00152 { 00153 return "2199cac4695ce1fc0f346db535dda30d"; 00154 } 00155 00156 static const char* value(const ::cob_3d_mapping_msgs::PointArray_<ContainerAllocator> &) { return value(); } 00157 static const uint64_t static_value1 = 0x2199cac4695ce1fcULL; 00158 static const uint64_t static_value2 = 0x0f346db535dda30dULL; 00159 }; 00160 00161 template<class ContainerAllocator> 00162 struct DataType< ::cob_3d_mapping_msgs::PointArray_<ContainerAllocator> > { 00163 static const char* value() 00164 { 00165 return "cob_3d_mapping_msgs/PointArray"; 00166 } 00167 00168 static const char* value(const ::cob_3d_mapping_msgs::PointArray_<ContainerAllocator> &) { return value(); } 00169 }; 00170 00171 template<class ContainerAllocator> 00172 struct Definition< ::cob_3d_mapping_msgs::PointArray_<ContainerAllocator> > { 00173 static const char* value() 00174 { 00175 return "# DEPRECATED: An array of poses with a header for global reference.\n\ 00176 \n\ 00177 Header header\n\ 00178 \n\ 00179 geometry_msgs/Point[] points\n\ 00180 \n\ 00181 ================================================================================\n\ 00182 MSG: std_msgs/Header\n\ 00183 # Standard metadata for higher-level stamped data types.\n\ 00184 # This is generally used to communicate timestamped data \n\ 00185 # in a particular coordinate frame.\n\ 00186 # \n\ 00187 # sequence ID: consecutively increasing ID \n\ 00188 uint32 seq\n\ 00189 #Two-integer timestamp that is expressed as:\n\ 00190 # * stamp.secs: seconds (stamp_secs) since epoch\n\ 00191 # * stamp.nsecs: nanoseconds since stamp_secs\n\ 00192 # time-handling sugar is provided by the client library\n\ 00193 time stamp\n\ 00194 #Frame this data is associated with\n\ 00195 # 0: no frame\n\ 00196 # 1: global frame\n\ 00197 string frame_id\n\ 00198 \n\ 00199 ================================================================================\n\ 00200 MSG: geometry_msgs/Point\n\ 00201 # This contains the position of a point in free space\n\ 00202 float64 x\n\ 00203 float64 y\n\ 00204 float64 z\n\ 00205 \n\ 00206 "; 00207 } 00208 00209 static const char* value(const ::cob_3d_mapping_msgs::PointArray_<ContainerAllocator> &) { return value(); } 00210 }; 00211 00212 template<class ContainerAllocator> struct HasHeader< ::cob_3d_mapping_msgs::PointArray_<ContainerAllocator> > : public TrueType {}; 00213 template<class ContainerAllocator> struct HasHeader< const ::cob_3d_mapping_msgs::PointArray_<ContainerAllocator> > : public TrueType {}; 00214 } // namespace message_traits 00215 } // namespace ros 00216 00217 namespace ros 00218 { 00219 namespace serialization 00220 { 00221 00222 template<class ContainerAllocator> struct Serializer< ::cob_3d_mapping_msgs::PointArray_<ContainerAllocator> > 00223 { 00224 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00225 { 00226 stream.next(m.header); 00227 stream.next(m.points); 00228 } 00229 00230 ROS_DECLARE_ALLINONE_SERIALIZER; 00231 }; // struct PointArray_ 00232 } // namespace serialization 00233 } // namespace ros 00234 00235 namespace ros 00236 { 00237 namespace message_operations 00238 { 00239 00240 template<class ContainerAllocator> 00241 struct Printer< ::cob_3d_mapping_msgs::PointArray_<ContainerAllocator> > 00242 { 00243 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::cob_3d_mapping_msgs::PointArray_<ContainerAllocator> & v) 00244 { 00245 s << indent << "header: "; 00246 s << std::endl; 00247 Printer< ::std_msgs::Header_<ContainerAllocator> >::stream(s, indent + " ", v.header); 00248 s << indent << "points[]" << std::endl; 00249 for (size_t i = 0; i < v.points.size(); ++i) 00250 { 00251 s << indent << " points[" << i << "]: "; 00252 s << std::endl; 00253 s << indent; 00254 Printer< ::geometry_msgs::Point_<ContainerAllocator> >::stream(s, indent + " ", v.points[i]); 00255 } 00256 } 00257 }; 00258 00259 00260 } // namespace message_operations 00261 } // namespace ros 00262 00263 #endif // COB_3D_MAPPING_MSGS_MESSAGE_POINTARRAY_H 00264