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