$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/ias_table_msgs/msg/TableObjectReconstructed.msg */ 00002 #ifndef IAS_TABLE_MSGS_MESSAGE_TABLEOBJECTRECONSTRUCTED_H 00003 #define IAS_TABLE_MSGS_MESSAGE_TABLEOBJECTRECONSTRUCTED_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 ias_table_msgs 00020 { 00021 template <class ContainerAllocator> 00022 struct TableObjectReconstructed_ { 00023 typedef TableObjectReconstructed_<ContainerAllocator> Type; 00024 00025 TableObjectReconstructed_() 00026 : type(0) 00027 , coefficients() 00028 , score(0.0) 00029 , vertices() 00030 , triangles() 00031 { 00032 } 00033 00034 TableObjectReconstructed_(const ContainerAllocator& _alloc) 00035 : type(0) 00036 , coefficients(_alloc) 00037 , score(0.0) 00038 , vertices(_alloc) 00039 , triangles(_alloc) 00040 { 00041 } 00042 00043 typedef uint32_t _type_type; 00044 uint32_t type; 00045 00046 typedef std::vector<double, typename ContainerAllocator::template rebind<double>::other > _coefficients_type; 00047 std::vector<double, typename ContainerAllocator::template rebind<double>::other > coefficients; 00048 00049 typedef double _score_type; 00050 double score; 00051 00052 typedef std::vector< ::geometry_msgs::Point32_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::geometry_msgs::Point32_<ContainerAllocator> >::other > _vertices_type; 00053 std::vector< ::geometry_msgs::Point32_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::geometry_msgs::Point32_<ContainerAllocator> >::other > vertices; 00054 00055 typedef std::vector<int32_t, typename ContainerAllocator::template rebind<int32_t>::other > _triangles_type; 00056 std::vector<int32_t, typename ContainerAllocator::template rebind<int32_t>::other > triangles; 00057 00058 enum { PLANE = 1 }; 00059 enum { SPHERE = 2 }; 00060 enum { CYLINDER = 4 }; 00061 enum { ROTATIONAL = 8 }; 00062 enum { BOX = 16 }; 00063 enum { MESH = 32 }; 00064 00065 ROS_DEPRECATED uint32_t get_coefficients_size() const { return (uint32_t)coefficients.size(); } 00066 ROS_DEPRECATED void set_coefficients_size(uint32_t size) { coefficients.resize((size_t)size); } 00067 ROS_DEPRECATED void get_coefficients_vec(std::vector<double, typename ContainerAllocator::template rebind<double>::other > & vec) const { vec = this->coefficients; } 00068 ROS_DEPRECATED void set_coefficients_vec(const std::vector<double, typename ContainerAllocator::template rebind<double>::other > & vec) { this->coefficients = vec; } 00069 ROS_DEPRECATED uint32_t get_vertices_size() const { return (uint32_t)vertices.size(); } 00070 ROS_DEPRECATED void set_vertices_size(uint32_t size) { vertices.resize((size_t)size); } 00071 ROS_DEPRECATED void get_vertices_vec(std::vector< ::geometry_msgs::Point32_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::geometry_msgs::Point32_<ContainerAllocator> >::other > & vec) const { vec = this->vertices; } 00072 ROS_DEPRECATED void set_vertices_vec(const std::vector< ::geometry_msgs::Point32_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::geometry_msgs::Point32_<ContainerAllocator> >::other > & vec) { this->vertices = vec; } 00073 ROS_DEPRECATED uint32_t get_triangles_size() const { return (uint32_t)triangles.size(); } 00074 ROS_DEPRECATED void set_triangles_size(uint32_t size) { triangles.resize((size_t)size); } 00075 ROS_DEPRECATED void get_triangles_vec(std::vector<int32_t, typename ContainerAllocator::template rebind<int32_t>::other > & vec) const { vec = this->triangles; } 00076 ROS_DEPRECATED void set_triangles_vec(const std::vector<int32_t, typename ContainerAllocator::template rebind<int32_t>::other > & vec) { this->triangles = vec; } 00077 private: 00078 static const char* __s_getDataType_() { return "ias_table_msgs/TableObjectReconstructed"; } 00079 public: 00080 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00081 00082 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00083 00084 private: 00085 static const char* __s_getMD5Sum_() { return "b4b3b5abce1b49d448a2f19def949463"; } 00086 public: 00087 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00088 00089 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00090 00091 private: 00092 static const char* __s_getMessageDefinition_() { return "# constants:\n\ 00093 uint32 PLANE=1\n\ 00094 uint32 SPHERE=2\n\ 00095 uint32 CYLINDER=4\n\ 00096 uint32 ROTATIONAL=8\n\ 00097 uint32 BOX=16\n\ 00098 uint32 MESH=32 # \"else\"\n\ 00099 \n\ 00100 uint32 type # one of the above\n\ 00101 float64[] coefficients # depending on shape type\n\ 00102 float64 score # quality of fit\n\ 00103 \n\ 00104 geometry_msgs/Point32[] vertices\n\ 00105 int32[] triangles # indices into vertices list \n\ 00106 \n\ 00107 \n\ 00108 ================================================================================\n\ 00109 MSG: geometry_msgs/Point32\n\ 00110 # This contains the position of a point in free space(with 32 bits of precision).\n\ 00111 # It is recommeded to use Point wherever possible instead of Point32. \n\ 00112 # \n\ 00113 # This recommendation is to promote interoperability. \n\ 00114 #\n\ 00115 # This message is designed to take up less space when sending\n\ 00116 # lots of points at once, as in the case of a PointCloud. \n\ 00117 \n\ 00118 float32 x\n\ 00119 float32 y\n\ 00120 float32 z\n\ 00121 "; } 00122 public: 00123 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00124 00125 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00126 00127 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00128 { 00129 ros::serialization::OStream stream(write_ptr, 1000000000); 00130 ros::serialization::serialize(stream, type); 00131 ros::serialization::serialize(stream, coefficients); 00132 ros::serialization::serialize(stream, score); 00133 ros::serialization::serialize(stream, vertices); 00134 ros::serialization::serialize(stream, triangles); 00135 return stream.getData(); 00136 } 00137 00138 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00139 { 00140 ros::serialization::IStream stream(read_ptr, 1000000000); 00141 ros::serialization::deserialize(stream, type); 00142 ros::serialization::deserialize(stream, coefficients); 00143 ros::serialization::deserialize(stream, score); 00144 ros::serialization::deserialize(stream, vertices); 00145 ros::serialization::deserialize(stream, triangles); 00146 return stream.getData(); 00147 } 00148 00149 ROS_DEPRECATED virtual uint32_t serializationLength() const 00150 { 00151 uint32_t size = 0; 00152 size += ros::serialization::serializationLength(type); 00153 size += ros::serialization::serializationLength(coefficients); 00154 size += ros::serialization::serializationLength(score); 00155 size += ros::serialization::serializationLength(vertices); 00156 size += ros::serialization::serializationLength(triangles); 00157 return size; 00158 } 00159 00160 typedef boost::shared_ptr< ::ias_table_msgs::TableObjectReconstructed_<ContainerAllocator> > Ptr; 00161 typedef boost::shared_ptr< ::ias_table_msgs::TableObjectReconstructed_<ContainerAllocator> const> ConstPtr; 00162 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00163 }; // struct TableObjectReconstructed 00164 typedef ::ias_table_msgs::TableObjectReconstructed_<std::allocator<void> > TableObjectReconstructed; 00165 00166 typedef boost::shared_ptr< ::ias_table_msgs::TableObjectReconstructed> TableObjectReconstructedPtr; 00167 typedef boost::shared_ptr< ::ias_table_msgs::TableObjectReconstructed const> TableObjectReconstructedConstPtr; 00168 00169 00170 template<typename ContainerAllocator> 00171 std::ostream& operator<<(std::ostream& s, const ::ias_table_msgs::TableObjectReconstructed_<ContainerAllocator> & v) 00172 { 00173 ros::message_operations::Printer< ::ias_table_msgs::TableObjectReconstructed_<ContainerAllocator> >::stream(s, "", v); 00174 return s;} 00175 00176 } // namespace ias_table_msgs 00177 00178 namespace ros 00179 { 00180 namespace message_traits 00181 { 00182 template<class ContainerAllocator> struct IsMessage< ::ias_table_msgs::TableObjectReconstructed_<ContainerAllocator> > : public TrueType {}; 00183 template<class ContainerAllocator> struct IsMessage< ::ias_table_msgs::TableObjectReconstructed_<ContainerAllocator> const> : public TrueType {}; 00184 template<class ContainerAllocator> 00185 struct MD5Sum< ::ias_table_msgs::TableObjectReconstructed_<ContainerAllocator> > { 00186 static const char* value() 00187 { 00188 return "b4b3b5abce1b49d448a2f19def949463"; 00189 } 00190 00191 static const char* value(const ::ias_table_msgs::TableObjectReconstructed_<ContainerAllocator> &) { return value(); } 00192 static const uint64_t static_value1 = 0xb4b3b5abce1b49d4ULL; 00193 static const uint64_t static_value2 = 0x48a2f19def949463ULL; 00194 }; 00195 00196 template<class ContainerAllocator> 00197 struct DataType< ::ias_table_msgs::TableObjectReconstructed_<ContainerAllocator> > { 00198 static const char* value() 00199 { 00200 return "ias_table_msgs/TableObjectReconstructed"; 00201 } 00202 00203 static const char* value(const ::ias_table_msgs::TableObjectReconstructed_<ContainerAllocator> &) { return value(); } 00204 }; 00205 00206 template<class ContainerAllocator> 00207 struct Definition< ::ias_table_msgs::TableObjectReconstructed_<ContainerAllocator> > { 00208 static const char* value() 00209 { 00210 return "# constants:\n\ 00211 uint32 PLANE=1\n\ 00212 uint32 SPHERE=2\n\ 00213 uint32 CYLINDER=4\n\ 00214 uint32 ROTATIONAL=8\n\ 00215 uint32 BOX=16\n\ 00216 uint32 MESH=32 # \"else\"\n\ 00217 \n\ 00218 uint32 type # one of the above\n\ 00219 float64[] coefficients # depending on shape type\n\ 00220 float64 score # quality of fit\n\ 00221 \n\ 00222 geometry_msgs/Point32[] vertices\n\ 00223 int32[] triangles # indices into vertices list \n\ 00224 \n\ 00225 \n\ 00226 ================================================================================\n\ 00227 MSG: geometry_msgs/Point32\n\ 00228 # This contains the position of a point in free space(with 32 bits of precision).\n\ 00229 # It is recommeded to use Point wherever possible instead of Point32. \n\ 00230 # \n\ 00231 # This recommendation is to promote interoperability. \n\ 00232 #\n\ 00233 # This message is designed to take up less space when sending\n\ 00234 # lots of points at once, as in the case of a PointCloud. \n\ 00235 \n\ 00236 float32 x\n\ 00237 float32 y\n\ 00238 float32 z\n\ 00239 "; 00240 } 00241 00242 static const char* value(const ::ias_table_msgs::TableObjectReconstructed_<ContainerAllocator> &) { return value(); } 00243 }; 00244 00245 } // namespace message_traits 00246 } // namespace ros 00247 00248 namespace ros 00249 { 00250 namespace serialization 00251 { 00252 00253 template<class ContainerAllocator> struct Serializer< ::ias_table_msgs::TableObjectReconstructed_<ContainerAllocator> > 00254 { 00255 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00256 { 00257 stream.next(m.type); 00258 stream.next(m.coefficients); 00259 stream.next(m.score); 00260 stream.next(m.vertices); 00261 stream.next(m.triangles); 00262 } 00263 00264 ROS_DECLARE_ALLINONE_SERIALIZER; 00265 }; // struct TableObjectReconstructed_ 00266 } // namespace serialization 00267 } // namespace ros 00268 00269 namespace ros 00270 { 00271 namespace message_operations 00272 { 00273 00274 template<class ContainerAllocator> 00275 struct Printer< ::ias_table_msgs::TableObjectReconstructed_<ContainerAllocator> > 00276 { 00277 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::ias_table_msgs::TableObjectReconstructed_<ContainerAllocator> & v) 00278 { 00279 s << indent << "type: "; 00280 Printer<uint32_t>::stream(s, indent + " ", v.type); 00281 s << indent << "coefficients[]" << std::endl; 00282 for (size_t i = 0; i < v.coefficients.size(); ++i) 00283 { 00284 s << indent << " coefficients[" << i << "]: "; 00285 Printer<double>::stream(s, indent + " ", v.coefficients[i]); 00286 } 00287 s << indent << "score: "; 00288 Printer<double>::stream(s, indent + " ", v.score); 00289 s << indent << "vertices[]" << std::endl; 00290 for (size_t i = 0; i < v.vertices.size(); ++i) 00291 { 00292 s << indent << " vertices[" << i << "]: "; 00293 s << std::endl; 00294 s << indent; 00295 Printer< ::geometry_msgs::Point32_<ContainerAllocator> >::stream(s, indent + " ", v.vertices[i]); 00296 } 00297 s << indent << "triangles[]" << std::endl; 00298 for (size_t i = 0; i < v.triangles.size(); ++i) 00299 { 00300 s << indent << " triangles[" << i << "]: "; 00301 Printer<int32_t>::stream(s, indent + " ", v.triangles[i]); 00302 } 00303 } 00304 }; 00305 00306 00307 } // namespace message_operations 00308 } // namespace ros 00309 00310 #endif // IAS_TABLE_MSGS_MESSAGE_TABLEOBJECTRECONSTRUCTED_H 00311