$search
00001 /* Auto-generated by genmsg_cpp for file /home/rosbuild/hudson/workspace/doc-electric-ias_common/doc_stacks/2013-03-01_15-41-55.252100/ias_common/triangle_mesh_msgs/msg/TriangleMesh.msg */ 00002 #ifndef TRIANGLE_MESH_MSGS_MESSAGE_TRIANGLEMESH_H 00003 #define TRIANGLE_MESH_MSGS_MESSAGE_TRIANGLEMESH_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/Point32.h" 00019 #include "geometry_msgs/Point32.h" 00020 #include "triangle_mesh_msgs/Triangle.h" 00021 00022 namespace triangle_mesh_msgs 00023 { 00024 template <class ContainerAllocator> 00025 struct TriangleMesh_ { 00026 typedef TriangleMesh_<ContainerAllocator> Type; 00027 00028 TriangleMesh_() 00029 : header() 00030 , points() 00031 , normals() 00032 , intensities() 00033 , triangles() 00034 , sending_node() 00035 { 00036 } 00037 00038 TriangleMesh_(const ContainerAllocator& _alloc) 00039 : header(_alloc) 00040 , points(_alloc) 00041 , normals(_alloc) 00042 , intensities(_alloc) 00043 , triangles(_alloc) 00044 , sending_node(_alloc) 00045 { 00046 } 00047 00048 typedef ::std_msgs::Header_<ContainerAllocator> _header_type; 00049 ::std_msgs::Header_<ContainerAllocator> header; 00050 00051 typedef std::vector< ::geometry_msgs::Point32_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::geometry_msgs::Point32_<ContainerAllocator> >::other > _points_type; 00052 std::vector< ::geometry_msgs::Point32_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::geometry_msgs::Point32_<ContainerAllocator> >::other > points; 00053 00054 typedef std::vector< ::geometry_msgs::Point32_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::geometry_msgs::Point32_<ContainerAllocator> >::other > _normals_type; 00055 std::vector< ::geometry_msgs::Point32_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::geometry_msgs::Point32_<ContainerAllocator> >::other > normals; 00056 00057 typedef std::vector<float, typename ContainerAllocator::template rebind<float>::other > _intensities_type; 00058 std::vector<float, typename ContainerAllocator::template rebind<float>::other > intensities; 00059 00060 typedef std::vector< ::triangle_mesh_msgs::Triangle_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::triangle_mesh_msgs::Triangle_<ContainerAllocator> >::other > _triangles_type; 00061 std::vector< ::triangle_mesh_msgs::Triangle_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::triangle_mesh_msgs::Triangle_<ContainerAllocator> >::other > triangles; 00062 00063 typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _sending_node_type; 00064 std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > sending_node; 00065 00066 00067 ROS_DEPRECATED uint32_t get_points_size() const { return (uint32_t)points.size(); } 00068 ROS_DEPRECATED void set_points_size(uint32_t size) { points.resize((size_t)size); } 00069 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; } 00070 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; } 00071 ROS_DEPRECATED uint32_t get_normals_size() const { return (uint32_t)normals.size(); } 00072 ROS_DEPRECATED void set_normals_size(uint32_t size) { normals.resize((size_t)size); } 00073 ROS_DEPRECATED void get_normals_vec(std::vector< ::geometry_msgs::Point32_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::geometry_msgs::Point32_<ContainerAllocator> >::other > & vec) const { vec = this->normals; } 00074 ROS_DEPRECATED void set_normals_vec(const std::vector< ::geometry_msgs::Point32_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::geometry_msgs::Point32_<ContainerAllocator> >::other > & vec) { this->normals = vec; } 00075 ROS_DEPRECATED uint32_t get_intensities_size() const { return (uint32_t)intensities.size(); } 00076 ROS_DEPRECATED void set_intensities_size(uint32_t size) { intensities.resize((size_t)size); } 00077 ROS_DEPRECATED void get_intensities_vec(std::vector<float, typename ContainerAllocator::template rebind<float>::other > & vec) const { vec = this->intensities; } 00078 ROS_DEPRECATED void set_intensities_vec(const std::vector<float, typename ContainerAllocator::template rebind<float>::other > & vec) { this->intensities = vec; } 00079 ROS_DEPRECATED uint32_t get_triangles_size() const { return (uint32_t)triangles.size(); } 00080 ROS_DEPRECATED void set_triangles_size(uint32_t size) { triangles.resize((size_t)size); } 00081 ROS_DEPRECATED void get_triangles_vec(std::vector< ::triangle_mesh_msgs::Triangle_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::triangle_mesh_msgs::Triangle_<ContainerAllocator> >::other > & vec) const { vec = this->triangles; } 00082 ROS_DEPRECATED void set_triangles_vec(const std::vector< ::triangle_mesh_msgs::Triangle_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::triangle_mesh_msgs::Triangle_<ContainerAllocator> >::other > & vec) { this->triangles = vec; } 00083 private: 00084 static const char* __s_getDataType_() { return "triangle_mesh_msgs/TriangleMesh"; } 00085 public: 00086 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00087 00088 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00089 00090 private: 00091 static const char* __s_getMD5Sum_() { return "2cd8125b80abf942af5656b65994fe56"; } 00092 public: 00093 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00094 00095 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00096 00097 private: 00098 static const char* __s_getMessageDefinition_() { return "Header header\n\ 00099 geometry_msgs/Point32[] points\n\ 00100 geometry_msgs/Point32[] normals\n\ 00101 float32[] intensities\n\ 00102 triangle_mesh_msgs/Triangle[] triangles\n\ 00103 string sending_node\n\ 00104 \n\ 00105 ================================================================================\n\ 00106 MSG: std_msgs/Header\n\ 00107 # Standard metadata for higher-level stamped data types.\n\ 00108 # This is generally used to communicate timestamped data \n\ 00109 # in a particular coordinate frame.\n\ 00110 # \n\ 00111 # sequence ID: consecutively increasing ID \n\ 00112 uint32 seq\n\ 00113 #Two-integer timestamp that is expressed as:\n\ 00114 # * stamp.secs: seconds (stamp_secs) since epoch\n\ 00115 # * stamp.nsecs: nanoseconds since stamp_secs\n\ 00116 # time-handling sugar is provided by the client library\n\ 00117 time stamp\n\ 00118 #Frame this data is associated with\n\ 00119 # 0: no frame\n\ 00120 # 1: global frame\n\ 00121 string frame_id\n\ 00122 \n\ 00123 ================================================================================\n\ 00124 MSG: geometry_msgs/Point32\n\ 00125 # This contains the position of a point in free space(with 32 bits of precision).\n\ 00126 # It is recommeded to use Point wherever possible instead of Point32. \n\ 00127 # \n\ 00128 # This recommendation is to promote interoperability. \n\ 00129 #\n\ 00130 # This message is designed to take up less space when sending\n\ 00131 # lots of points at once, as in the case of a PointCloud. \n\ 00132 \n\ 00133 float32 x\n\ 00134 float32 y\n\ 00135 float32 z\n\ 00136 ================================================================================\n\ 00137 MSG: triangle_mesh_msgs/Triangle\n\ 00138 int32 i\n\ 00139 int32 j\n\ 00140 int32 k\n\ 00141 \n\ 00142 \n\ 00143 \n\ 00144 "; } 00145 public: 00146 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00147 00148 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00149 00150 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00151 { 00152 ros::serialization::OStream stream(write_ptr, 1000000000); 00153 ros::serialization::serialize(stream, header); 00154 ros::serialization::serialize(stream, points); 00155 ros::serialization::serialize(stream, normals); 00156 ros::serialization::serialize(stream, intensities); 00157 ros::serialization::serialize(stream, triangles); 00158 ros::serialization::serialize(stream, sending_node); 00159 return stream.getData(); 00160 } 00161 00162 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00163 { 00164 ros::serialization::IStream stream(read_ptr, 1000000000); 00165 ros::serialization::deserialize(stream, header); 00166 ros::serialization::deserialize(stream, points); 00167 ros::serialization::deserialize(stream, normals); 00168 ros::serialization::deserialize(stream, intensities); 00169 ros::serialization::deserialize(stream, triangles); 00170 ros::serialization::deserialize(stream, sending_node); 00171 return stream.getData(); 00172 } 00173 00174 ROS_DEPRECATED virtual uint32_t serializationLength() const 00175 { 00176 uint32_t size = 0; 00177 size += ros::serialization::serializationLength(header); 00178 size += ros::serialization::serializationLength(points); 00179 size += ros::serialization::serializationLength(normals); 00180 size += ros::serialization::serializationLength(intensities); 00181 size += ros::serialization::serializationLength(triangles); 00182 size += ros::serialization::serializationLength(sending_node); 00183 return size; 00184 } 00185 00186 typedef boost::shared_ptr< ::triangle_mesh_msgs::TriangleMesh_<ContainerAllocator> > Ptr; 00187 typedef boost::shared_ptr< ::triangle_mesh_msgs::TriangleMesh_<ContainerAllocator> const> ConstPtr; 00188 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00189 }; // struct TriangleMesh 00190 typedef ::triangle_mesh_msgs::TriangleMesh_<std::allocator<void> > TriangleMesh; 00191 00192 typedef boost::shared_ptr< ::triangle_mesh_msgs::TriangleMesh> TriangleMeshPtr; 00193 typedef boost::shared_ptr< ::triangle_mesh_msgs::TriangleMesh const> TriangleMeshConstPtr; 00194 00195 00196 template<typename ContainerAllocator> 00197 std::ostream& operator<<(std::ostream& s, const ::triangle_mesh_msgs::TriangleMesh_<ContainerAllocator> & v) 00198 { 00199 ros::message_operations::Printer< ::triangle_mesh_msgs::TriangleMesh_<ContainerAllocator> >::stream(s, "", v); 00200 return s;} 00201 00202 } // namespace triangle_mesh_msgs 00203 00204 namespace ros 00205 { 00206 namespace message_traits 00207 { 00208 template<class ContainerAllocator> struct IsMessage< ::triangle_mesh_msgs::TriangleMesh_<ContainerAllocator> > : public TrueType {}; 00209 template<class ContainerAllocator> struct IsMessage< ::triangle_mesh_msgs::TriangleMesh_<ContainerAllocator> const> : public TrueType {}; 00210 template<class ContainerAllocator> 00211 struct MD5Sum< ::triangle_mesh_msgs::TriangleMesh_<ContainerAllocator> > { 00212 static const char* value() 00213 { 00214 return "2cd8125b80abf942af5656b65994fe56"; 00215 } 00216 00217 static const char* value(const ::triangle_mesh_msgs::TriangleMesh_<ContainerAllocator> &) { return value(); } 00218 static const uint64_t static_value1 = 0x2cd8125b80abf942ULL; 00219 static const uint64_t static_value2 = 0xaf5656b65994fe56ULL; 00220 }; 00221 00222 template<class ContainerAllocator> 00223 struct DataType< ::triangle_mesh_msgs::TriangleMesh_<ContainerAllocator> > { 00224 static const char* value() 00225 { 00226 return "triangle_mesh_msgs/TriangleMesh"; 00227 } 00228 00229 static const char* value(const ::triangle_mesh_msgs::TriangleMesh_<ContainerAllocator> &) { return value(); } 00230 }; 00231 00232 template<class ContainerAllocator> 00233 struct Definition< ::triangle_mesh_msgs::TriangleMesh_<ContainerAllocator> > { 00234 static const char* value() 00235 { 00236 return "Header header\n\ 00237 geometry_msgs/Point32[] points\n\ 00238 geometry_msgs/Point32[] normals\n\ 00239 float32[] intensities\n\ 00240 triangle_mesh_msgs/Triangle[] triangles\n\ 00241 string sending_node\n\ 00242 \n\ 00243 ================================================================================\n\ 00244 MSG: std_msgs/Header\n\ 00245 # Standard metadata for higher-level stamped data types.\n\ 00246 # This is generally used to communicate timestamped data \n\ 00247 # in a particular coordinate frame.\n\ 00248 # \n\ 00249 # sequence ID: consecutively increasing ID \n\ 00250 uint32 seq\n\ 00251 #Two-integer timestamp that is expressed as:\n\ 00252 # * stamp.secs: seconds (stamp_secs) since epoch\n\ 00253 # * stamp.nsecs: nanoseconds since stamp_secs\n\ 00254 # time-handling sugar is provided by the client library\n\ 00255 time stamp\n\ 00256 #Frame this data is associated with\n\ 00257 # 0: no frame\n\ 00258 # 1: global frame\n\ 00259 string frame_id\n\ 00260 \n\ 00261 ================================================================================\n\ 00262 MSG: geometry_msgs/Point32\n\ 00263 # This contains the position of a point in free space(with 32 bits of precision).\n\ 00264 # It is recommeded to use Point wherever possible instead of Point32. \n\ 00265 # \n\ 00266 # This recommendation is to promote interoperability. \n\ 00267 #\n\ 00268 # This message is designed to take up less space when sending\n\ 00269 # lots of points at once, as in the case of a PointCloud. \n\ 00270 \n\ 00271 float32 x\n\ 00272 float32 y\n\ 00273 float32 z\n\ 00274 ================================================================================\n\ 00275 MSG: triangle_mesh_msgs/Triangle\n\ 00276 int32 i\n\ 00277 int32 j\n\ 00278 int32 k\n\ 00279 \n\ 00280 \n\ 00281 \n\ 00282 "; 00283 } 00284 00285 static const char* value(const ::triangle_mesh_msgs::TriangleMesh_<ContainerAllocator> &) { return value(); } 00286 }; 00287 00288 template<class ContainerAllocator> struct HasHeader< ::triangle_mesh_msgs::TriangleMesh_<ContainerAllocator> > : public TrueType {}; 00289 template<class ContainerAllocator> struct HasHeader< const ::triangle_mesh_msgs::TriangleMesh_<ContainerAllocator> > : public TrueType {}; 00290 } // namespace message_traits 00291 } // namespace ros 00292 00293 namespace ros 00294 { 00295 namespace serialization 00296 { 00297 00298 template<class ContainerAllocator> struct Serializer< ::triangle_mesh_msgs::TriangleMesh_<ContainerAllocator> > 00299 { 00300 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00301 { 00302 stream.next(m.header); 00303 stream.next(m.points); 00304 stream.next(m.normals); 00305 stream.next(m.intensities); 00306 stream.next(m.triangles); 00307 stream.next(m.sending_node); 00308 } 00309 00310 ROS_DECLARE_ALLINONE_SERIALIZER; 00311 }; // struct TriangleMesh_ 00312 } // namespace serialization 00313 } // namespace ros 00314 00315 namespace ros 00316 { 00317 namespace message_operations 00318 { 00319 00320 template<class ContainerAllocator> 00321 struct Printer< ::triangle_mesh_msgs::TriangleMesh_<ContainerAllocator> > 00322 { 00323 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::triangle_mesh_msgs::TriangleMesh_<ContainerAllocator> & v) 00324 { 00325 s << indent << "header: "; 00326 s << std::endl; 00327 Printer< ::std_msgs::Header_<ContainerAllocator> >::stream(s, indent + " ", v.header); 00328 s << indent << "points[]" << std::endl; 00329 for (size_t i = 0; i < v.points.size(); ++i) 00330 { 00331 s << indent << " points[" << i << "]: "; 00332 s << std::endl; 00333 s << indent; 00334 Printer< ::geometry_msgs::Point32_<ContainerAllocator> >::stream(s, indent + " ", v.points[i]); 00335 } 00336 s << indent << "normals[]" << std::endl; 00337 for (size_t i = 0; i < v.normals.size(); ++i) 00338 { 00339 s << indent << " normals[" << i << "]: "; 00340 s << std::endl; 00341 s << indent; 00342 Printer< ::geometry_msgs::Point32_<ContainerAllocator> >::stream(s, indent + " ", v.normals[i]); 00343 } 00344 s << indent << "intensities[]" << std::endl; 00345 for (size_t i = 0; i < v.intensities.size(); ++i) 00346 { 00347 s << indent << " intensities[" << i << "]: "; 00348 Printer<float>::stream(s, indent + " ", v.intensities[i]); 00349 } 00350 s << indent << "triangles[]" << std::endl; 00351 for (size_t i = 0; i < v.triangles.size(); ++i) 00352 { 00353 s << indent << " triangles[" << i << "]: "; 00354 s << std::endl; 00355 s << indent; 00356 Printer< ::triangle_mesh_msgs::Triangle_<ContainerAllocator> >::stream(s, indent + " ", v.triangles[i]); 00357 } 00358 s << indent << "sending_node: "; 00359 Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.sending_node); 00360 } 00361 }; 00362 00363 00364 } // namespace message_operations 00365 } // namespace ros 00366 00367 #endif // TRIANGLE_MESH_MSGS_MESSAGE_TRIANGLEMESH_H 00368