$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/PrologReturn.msg */ 00002 #ifndef IAS_TABLE_MSGS_MESSAGE_PROLOGRETURN_H 00003 #define IAS_TABLE_MSGS_MESSAGE_PROLOGRETURN_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 #include "geometry_msgs/Point32.h" 00019 00020 namespace ias_table_msgs 00021 { 00022 template <class ContainerAllocator> 00023 struct PrologReturn_ { 00024 typedef PrologReturn_<ContainerAllocator> Type; 00025 00026 PrologReturn_() 00027 : table_id(0) 00028 , coeff() 00029 , table_center() 00030 , stamp() 00031 , object_center() 00032 , object_id(0) 00033 , object_type() 00034 , object_color() 00035 , object_geometric_type() 00036 , perception_method() 00037 , sensor_type() 00038 , lo_id(0) 00039 , object_cop_id(0) 00040 { 00041 } 00042 00043 PrologReturn_(const ContainerAllocator& _alloc) 00044 : table_id(0) 00045 , coeff(_alloc) 00046 , table_center(_alloc) 00047 , stamp() 00048 , object_center(_alloc) 00049 , object_id(0) 00050 , object_type(_alloc) 00051 , object_color(_alloc) 00052 , object_geometric_type(_alloc) 00053 , perception_method(_alloc) 00054 , sensor_type(_alloc) 00055 , lo_id(0) 00056 , object_cop_id(0) 00057 { 00058 } 00059 00060 typedef uint64_t _table_id_type; 00061 uint64_t table_id; 00062 00063 typedef std::vector<double, typename ContainerAllocator::template rebind<double>::other > _coeff_type; 00064 std::vector<double, typename ContainerAllocator::template rebind<double>::other > coeff; 00065 00066 typedef ::geometry_msgs::Point32_<ContainerAllocator> _table_center_type; 00067 ::geometry_msgs::Point32_<ContainerAllocator> table_center; 00068 00069 typedef ros::Time _stamp_type; 00070 ros::Time stamp; 00071 00072 typedef ::geometry_msgs::Point32_<ContainerAllocator> _object_center_type; 00073 ::geometry_msgs::Point32_<ContainerAllocator> object_center; 00074 00075 typedef uint64_t _object_id_type; 00076 uint64_t object_id; 00077 00078 typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _object_type_type; 00079 std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > object_type; 00080 00081 typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _object_color_type; 00082 std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > object_color; 00083 00084 typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _object_geometric_type_type; 00085 std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > object_geometric_type; 00086 00087 typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _perception_method_type; 00088 std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > perception_method; 00089 00090 typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _sensor_type_type; 00091 std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > sensor_type; 00092 00093 typedef uint64_t _lo_id_type; 00094 uint64_t lo_id; 00095 00096 typedef uint64_t _object_cop_id_type; 00097 uint64_t object_cop_id; 00098 00099 00100 ROS_DEPRECATED uint32_t get_coeff_size() const { return (uint32_t)coeff.size(); } 00101 ROS_DEPRECATED void set_coeff_size(uint32_t size) { coeff.resize((size_t)size); } 00102 ROS_DEPRECATED void get_coeff_vec(std::vector<double, typename ContainerAllocator::template rebind<double>::other > & vec) const { vec = this->coeff; } 00103 ROS_DEPRECATED void set_coeff_vec(const std::vector<double, typename ContainerAllocator::template rebind<double>::other > & vec) { this->coeff = vec; } 00104 private: 00105 static const char* __s_getDataType_() { return "ias_table_msgs/PrologReturn"; } 00106 public: 00107 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00108 00109 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00110 00111 private: 00112 static const char* __s_getMD5Sum_() { return "36ba6a953c3efbbc3b8ac3da98942c78"; } 00113 public: 00114 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00115 00116 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00117 00118 private: 00119 static const char* __s_getMessageDefinition_() { return "uint64 table_id\n\ 00120 float64[] coeff\n\ 00121 geometry_msgs/Point32 table_center\n\ 00122 time stamp\n\ 00123 geometry_msgs/Point32 object_center\n\ 00124 uint64 object_id\n\ 00125 string object_type\n\ 00126 string object_color\n\ 00127 string object_geometric_type\n\ 00128 string perception_method\n\ 00129 string sensor_type\n\ 00130 uint64 lo_id\n\ 00131 uint64 object_cop_id\n\ 00132 ================================================================================\n\ 00133 MSG: geometry_msgs/Point32\n\ 00134 # This contains the position of a point in free space(with 32 bits of precision).\n\ 00135 # It is recommeded to use Point wherever possible instead of Point32. \n\ 00136 # \n\ 00137 # This recommendation is to promote interoperability. \n\ 00138 #\n\ 00139 # This message is designed to take up less space when sending\n\ 00140 # lots of points at once, as in the case of a PointCloud. \n\ 00141 \n\ 00142 float32 x\n\ 00143 float32 y\n\ 00144 float32 z\n\ 00145 "; } 00146 public: 00147 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00148 00149 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00150 00151 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00152 { 00153 ros::serialization::OStream stream(write_ptr, 1000000000); 00154 ros::serialization::serialize(stream, table_id); 00155 ros::serialization::serialize(stream, coeff); 00156 ros::serialization::serialize(stream, table_center); 00157 ros::serialization::serialize(stream, stamp); 00158 ros::serialization::serialize(stream, object_center); 00159 ros::serialization::serialize(stream, object_id); 00160 ros::serialization::serialize(stream, object_type); 00161 ros::serialization::serialize(stream, object_color); 00162 ros::serialization::serialize(stream, object_geometric_type); 00163 ros::serialization::serialize(stream, perception_method); 00164 ros::serialization::serialize(stream, sensor_type); 00165 ros::serialization::serialize(stream, lo_id); 00166 ros::serialization::serialize(stream, object_cop_id); 00167 return stream.getData(); 00168 } 00169 00170 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00171 { 00172 ros::serialization::IStream stream(read_ptr, 1000000000); 00173 ros::serialization::deserialize(stream, table_id); 00174 ros::serialization::deserialize(stream, coeff); 00175 ros::serialization::deserialize(stream, table_center); 00176 ros::serialization::deserialize(stream, stamp); 00177 ros::serialization::deserialize(stream, object_center); 00178 ros::serialization::deserialize(stream, object_id); 00179 ros::serialization::deserialize(stream, object_type); 00180 ros::serialization::deserialize(stream, object_color); 00181 ros::serialization::deserialize(stream, object_geometric_type); 00182 ros::serialization::deserialize(stream, perception_method); 00183 ros::serialization::deserialize(stream, sensor_type); 00184 ros::serialization::deserialize(stream, lo_id); 00185 ros::serialization::deserialize(stream, object_cop_id); 00186 return stream.getData(); 00187 } 00188 00189 ROS_DEPRECATED virtual uint32_t serializationLength() const 00190 { 00191 uint32_t size = 0; 00192 size += ros::serialization::serializationLength(table_id); 00193 size += ros::serialization::serializationLength(coeff); 00194 size += ros::serialization::serializationLength(table_center); 00195 size += ros::serialization::serializationLength(stamp); 00196 size += ros::serialization::serializationLength(object_center); 00197 size += ros::serialization::serializationLength(object_id); 00198 size += ros::serialization::serializationLength(object_type); 00199 size += ros::serialization::serializationLength(object_color); 00200 size += ros::serialization::serializationLength(object_geometric_type); 00201 size += ros::serialization::serializationLength(perception_method); 00202 size += ros::serialization::serializationLength(sensor_type); 00203 size += ros::serialization::serializationLength(lo_id); 00204 size += ros::serialization::serializationLength(object_cop_id); 00205 return size; 00206 } 00207 00208 typedef boost::shared_ptr< ::ias_table_msgs::PrologReturn_<ContainerAllocator> > Ptr; 00209 typedef boost::shared_ptr< ::ias_table_msgs::PrologReturn_<ContainerAllocator> const> ConstPtr; 00210 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00211 }; // struct PrologReturn 00212 typedef ::ias_table_msgs::PrologReturn_<std::allocator<void> > PrologReturn; 00213 00214 typedef boost::shared_ptr< ::ias_table_msgs::PrologReturn> PrologReturnPtr; 00215 typedef boost::shared_ptr< ::ias_table_msgs::PrologReturn const> PrologReturnConstPtr; 00216 00217 00218 template<typename ContainerAllocator> 00219 std::ostream& operator<<(std::ostream& s, const ::ias_table_msgs::PrologReturn_<ContainerAllocator> & v) 00220 { 00221 ros::message_operations::Printer< ::ias_table_msgs::PrologReturn_<ContainerAllocator> >::stream(s, "", v); 00222 return s;} 00223 00224 } // namespace ias_table_msgs 00225 00226 namespace ros 00227 { 00228 namespace message_traits 00229 { 00230 template<class ContainerAllocator> struct IsMessage< ::ias_table_msgs::PrologReturn_<ContainerAllocator> > : public TrueType {}; 00231 template<class ContainerAllocator> struct IsMessage< ::ias_table_msgs::PrologReturn_<ContainerAllocator> const> : public TrueType {}; 00232 template<class ContainerAllocator> 00233 struct MD5Sum< ::ias_table_msgs::PrologReturn_<ContainerAllocator> > { 00234 static const char* value() 00235 { 00236 return "36ba6a953c3efbbc3b8ac3da98942c78"; 00237 } 00238 00239 static const char* value(const ::ias_table_msgs::PrologReturn_<ContainerAllocator> &) { return value(); } 00240 static const uint64_t static_value1 = 0x36ba6a953c3efbbcULL; 00241 static const uint64_t static_value2 = 0x3b8ac3da98942c78ULL; 00242 }; 00243 00244 template<class ContainerAllocator> 00245 struct DataType< ::ias_table_msgs::PrologReturn_<ContainerAllocator> > { 00246 static const char* value() 00247 { 00248 return "ias_table_msgs/PrologReturn"; 00249 } 00250 00251 static const char* value(const ::ias_table_msgs::PrologReturn_<ContainerAllocator> &) { return value(); } 00252 }; 00253 00254 template<class ContainerAllocator> 00255 struct Definition< ::ias_table_msgs::PrologReturn_<ContainerAllocator> > { 00256 static const char* value() 00257 { 00258 return "uint64 table_id\n\ 00259 float64[] coeff\n\ 00260 geometry_msgs/Point32 table_center\n\ 00261 time stamp\n\ 00262 geometry_msgs/Point32 object_center\n\ 00263 uint64 object_id\n\ 00264 string object_type\n\ 00265 string object_color\n\ 00266 string object_geometric_type\n\ 00267 string perception_method\n\ 00268 string sensor_type\n\ 00269 uint64 lo_id\n\ 00270 uint64 object_cop_id\n\ 00271 ================================================================================\n\ 00272 MSG: geometry_msgs/Point32\n\ 00273 # This contains the position of a point in free space(with 32 bits of precision).\n\ 00274 # It is recommeded to use Point wherever possible instead of Point32. \n\ 00275 # \n\ 00276 # This recommendation is to promote interoperability. \n\ 00277 #\n\ 00278 # This message is designed to take up less space when sending\n\ 00279 # lots of points at once, as in the case of a PointCloud. \n\ 00280 \n\ 00281 float32 x\n\ 00282 float32 y\n\ 00283 float32 z\n\ 00284 "; 00285 } 00286 00287 static const char* value(const ::ias_table_msgs::PrologReturn_<ContainerAllocator> &) { return value(); } 00288 }; 00289 00290 } // namespace message_traits 00291 } // namespace ros 00292 00293 namespace ros 00294 { 00295 namespace serialization 00296 { 00297 00298 template<class ContainerAllocator> struct Serializer< ::ias_table_msgs::PrologReturn_<ContainerAllocator> > 00299 { 00300 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00301 { 00302 stream.next(m.table_id); 00303 stream.next(m.coeff); 00304 stream.next(m.table_center); 00305 stream.next(m.stamp); 00306 stream.next(m.object_center); 00307 stream.next(m.object_id); 00308 stream.next(m.object_type); 00309 stream.next(m.object_color); 00310 stream.next(m.object_geometric_type); 00311 stream.next(m.perception_method); 00312 stream.next(m.sensor_type); 00313 stream.next(m.lo_id); 00314 stream.next(m.object_cop_id); 00315 } 00316 00317 ROS_DECLARE_ALLINONE_SERIALIZER; 00318 }; // struct PrologReturn_ 00319 } // namespace serialization 00320 } // namespace ros 00321 00322 namespace ros 00323 { 00324 namespace message_operations 00325 { 00326 00327 template<class ContainerAllocator> 00328 struct Printer< ::ias_table_msgs::PrologReturn_<ContainerAllocator> > 00329 { 00330 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::ias_table_msgs::PrologReturn_<ContainerAllocator> & v) 00331 { 00332 s << indent << "table_id: "; 00333 Printer<uint64_t>::stream(s, indent + " ", v.table_id); 00334 s << indent << "coeff[]" << std::endl; 00335 for (size_t i = 0; i < v.coeff.size(); ++i) 00336 { 00337 s << indent << " coeff[" << i << "]: "; 00338 Printer<double>::stream(s, indent + " ", v.coeff[i]); 00339 } 00340 s << indent << "table_center: "; 00341 s << std::endl; 00342 Printer< ::geometry_msgs::Point32_<ContainerAllocator> >::stream(s, indent + " ", v.table_center); 00343 s << indent << "stamp: "; 00344 Printer<ros::Time>::stream(s, indent + " ", v.stamp); 00345 s << indent << "object_center: "; 00346 s << std::endl; 00347 Printer< ::geometry_msgs::Point32_<ContainerAllocator> >::stream(s, indent + " ", v.object_center); 00348 s << indent << "object_id: "; 00349 Printer<uint64_t>::stream(s, indent + " ", v.object_id); 00350 s << indent << "object_type: "; 00351 Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.object_type); 00352 s << indent << "object_color: "; 00353 Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.object_color); 00354 s << indent << "object_geometric_type: "; 00355 Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.object_geometric_type); 00356 s << indent << "perception_method: "; 00357 Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.perception_method); 00358 s << indent << "sensor_type: "; 00359 Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.sensor_type); 00360 s << indent << "lo_id: "; 00361 Printer<uint64_t>::stream(s, indent + " ", v.lo_id); 00362 s << indent << "object_cop_id: "; 00363 Printer<uint64_t>::stream(s, indent + " ", v.object_cop_id); 00364 } 00365 }; 00366 00367 00368 } // namespace message_operations 00369 } // namespace ros 00370 00371 #endif // IAS_TABLE_MSGS_MESSAGE_PROLOGRETURN_H 00372