$search
00001 /* Auto-generated by genmsg_cpp for file /home/rosbuild/hudson/workspace/doc-electric-flirtlib_features/doc_stacks/2013-03-01_15-30-29.334793/flirtlib_features/flirtlib_ros/msg/DescriptorRos.msg */ 00002 #ifndef FLIRTLIB_ROS_MESSAGE_DESCRIPTORROS_H 00003 #define FLIRTLIB_ROS_MESSAGE_DESCRIPTORROS_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 "flirtlib_ros/Vector.h" 00018 #include "flirtlib_ros/Vector.h" 00019 #include "flirtlib_ros/Vector.h" 00020 #include "flirtlib_ros/Vector.h" 00021 00022 namespace flirtlib_ros 00023 { 00024 template <class ContainerAllocator> 00025 struct DescriptorRos_ { 00026 typedef DescriptorRos_<ContainerAllocator> Type; 00027 00028 DescriptorRos_() 00029 : hist() 00030 , variance() 00031 , hit() 00032 , miss() 00033 { 00034 } 00035 00036 DescriptorRos_(const ContainerAllocator& _alloc) 00037 : hist(_alloc) 00038 , variance(_alloc) 00039 , hit(_alloc) 00040 , miss(_alloc) 00041 { 00042 } 00043 00044 typedef std::vector< ::flirtlib_ros::Vector_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::flirtlib_ros::Vector_<ContainerAllocator> >::other > _hist_type; 00045 std::vector< ::flirtlib_ros::Vector_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::flirtlib_ros::Vector_<ContainerAllocator> >::other > hist; 00046 00047 typedef std::vector< ::flirtlib_ros::Vector_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::flirtlib_ros::Vector_<ContainerAllocator> >::other > _variance_type; 00048 std::vector< ::flirtlib_ros::Vector_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::flirtlib_ros::Vector_<ContainerAllocator> >::other > variance; 00049 00050 typedef std::vector< ::flirtlib_ros::Vector_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::flirtlib_ros::Vector_<ContainerAllocator> >::other > _hit_type; 00051 std::vector< ::flirtlib_ros::Vector_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::flirtlib_ros::Vector_<ContainerAllocator> >::other > hit; 00052 00053 typedef std::vector< ::flirtlib_ros::Vector_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::flirtlib_ros::Vector_<ContainerAllocator> >::other > _miss_type; 00054 std::vector< ::flirtlib_ros::Vector_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::flirtlib_ros::Vector_<ContainerAllocator> >::other > miss; 00055 00056 00057 ROS_DEPRECATED uint32_t get_hist_size() const { return (uint32_t)hist.size(); } 00058 ROS_DEPRECATED void set_hist_size(uint32_t size) { hist.resize((size_t)size); } 00059 ROS_DEPRECATED void get_hist_vec(std::vector< ::flirtlib_ros::Vector_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::flirtlib_ros::Vector_<ContainerAllocator> >::other > & vec) const { vec = this->hist; } 00060 ROS_DEPRECATED void set_hist_vec(const std::vector< ::flirtlib_ros::Vector_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::flirtlib_ros::Vector_<ContainerAllocator> >::other > & vec) { this->hist = vec; } 00061 ROS_DEPRECATED uint32_t get_variance_size() const { return (uint32_t)variance.size(); } 00062 ROS_DEPRECATED void set_variance_size(uint32_t size) { variance.resize((size_t)size); } 00063 ROS_DEPRECATED void get_variance_vec(std::vector< ::flirtlib_ros::Vector_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::flirtlib_ros::Vector_<ContainerAllocator> >::other > & vec) const { vec = this->variance; } 00064 ROS_DEPRECATED void set_variance_vec(const std::vector< ::flirtlib_ros::Vector_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::flirtlib_ros::Vector_<ContainerAllocator> >::other > & vec) { this->variance = vec; } 00065 ROS_DEPRECATED uint32_t get_hit_size() const { return (uint32_t)hit.size(); } 00066 ROS_DEPRECATED void set_hit_size(uint32_t size) { hit.resize((size_t)size); } 00067 ROS_DEPRECATED void get_hit_vec(std::vector< ::flirtlib_ros::Vector_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::flirtlib_ros::Vector_<ContainerAllocator> >::other > & vec) const { vec = this->hit; } 00068 ROS_DEPRECATED void set_hit_vec(const std::vector< ::flirtlib_ros::Vector_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::flirtlib_ros::Vector_<ContainerAllocator> >::other > & vec) { this->hit = vec; } 00069 ROS_DEPRECATED uint32_t get_miss_size() const { return (uint32_t)miss.size(); } 00070 ROS_DEPRECATED void set_miss_size(uint32_t size) { miss.resize((size_t)size); } 00071 ROS_DEPRECATED void get_miss_vec(std::vector< ::flirtlib_ros::Vector_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::flirtlib_ros::Vector_<ContainerAllocator> >::other > & vec) const { vec = this->miss; } 00072 ROS_DEPRECATED void set_miss_vec(const std::vector< ::flirtlib_ros::Vector_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::flirtlib_ros::Vector_<ContainerAllocator> >::other > & vec) { this->miss = vec; } 00073 private: 00074 static const char* __s_getDataType_() { return "flirtlib_ros/DescriptorRos"; } 00075 public: 00076 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00077 00078 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00079 00080 private: 00081 static const char* __s_getMD5Sum_() { return "82678fe48b3de78094c6ab0f717c7cb1"; } 00082 public: 00083 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00084 00085 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00086 00087 private: 00088 static const char* __s_getMessageDefinition_() { return "# Confirms to the Descriptor type in flirtlib\n\ 00089 # For now, we only allow the beta grid descriptor\n\ 00090 \n\ 00091 Vector[] hist\n\ 00092 Vector[] variance\n\ 00093 Vector[] hit\n\ 00094 Vector[] miss\n\ 00095 \n\ 00096 ================================================================================\n\ 00097 MSG: flirtlib_ros/Vector\n\ 00098 # Vector message type used by a bunch of the flirtlib messages\n\ 00099 \n\ 00100 float64[] vec\n\ 00101 "; } 00102 public: 00103 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00104 00105 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00106 00107 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00108 { 00109 ros::serialization::OStream stream(write_ptr, 1000000000); 00110 ros::serialization::serialize(stream, hist); 00111 ros::serialization::serialize(stream, variance); 00112 ros::serialization::serialize(stream, hit); 00113 ros::serialization::serialize(stream, miss); 00114 return stream.getData(); 00115 } 00116 00117 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00118 { 00119 ros::serialization::IStream stream(read_ptr, 1000000000); 00120 ros::serialization::deserialize(stream, hist); 00121 ros::serialization::deserialize(stream, variance); 00122 ros::serialization::deserialize(stream, hit); 00123 ros::serialization::deserialize(stream, miss); 00124 return stream.getData(); 00125 } 00126 00127 ROS_DEPRECATED virtual uint32_t serializationLength() const 00128 { 00129 uint32_t size = 0; 00130 size += ros::serialization::serializationLength(hist); 00131 size += ros::serialization::serializationLength(variance); 00132 size += ros::serialization::serializationLength(hit); 00133 size += ros::serialization::serializationLength(miss); 00134 return size; 00135 } 00136 00137 typedef boost::shared_ptr< ::flirtlib_ros::DescriptorRos_<ContainerAllocator> > Ptr; 00138 typedef boost::shared_ptr< ::flirtlib_ros::DescriptorRos_<ContainerAllocator> const> ConstPtr; 00139 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00140 }; // struct DescriptorRos 00141 typedef ::flirtlib_ros::DescriptorRos_<std::allocator<void> > DescriptorRos; 00142 00143 typedef boost::shared_ptr< ::flirtlib_ros::DescriptorRos> DescriptorRosPtr; 00144 typedef boost::shared_ptr< ::flirtlib_ros::DescriptorRos const> DescriptorRosConstPtr; 00145 00146 00147 template<typename ContainerAllocator> 00148 std::ostream& operator<<(std::ostream& s, const ::flirtlib_ros::DescriptorRos_<ContainerAllocator> & v) 00149 { 00150 ros::message_operations::Printer< ::flirtlib_ros::DescriptorRos_<ContainerAllocator> >::stream(s, "", v); 00151 return s;} 00152 00153 } // namespace flirtlib_ros 00154 00155 namespace ros 00156 { 00157 namespace message_traits 00158 { 00159 template<class ContainerAllocator> struct IsMessage< ::flirtlib_ros::DescriptorRos_<ContainerAllocator> > : public TrueType {}; 00160 template<class ContainerAllocator> struct IsMessage< ::flirtlib_ros::DescriptorRos_<ContainerAllocator> const> : public TrueType {}; 00161 template<class ContainerAllocator> 00162 struct MD5Sum< ::flirtlib_ros::DescriptorRos_<ContainerAllocator> > { 00163 static const char* value() 00164 { 00165 return "82678fe48b3de78094c6ab0f717c7cb1"; 00166 } 00167 00168 static const char* value(const ::flirtlib_ros::DescriptorRos_<ContainerAllocator> &) { return value(); } 00169 static const uint64_t static_value1 = 0x82678fe48b3de780ULL; 00170 static const uint64_t static_value2 = 0x94c6ab0f717c7cb1ULL; 00171 }; 00172 00173 template<class ContainerAllocator> 00174 struct DataType< ::flirtlib_ros::DescriptorRos_<ContainerAllocator> > { 00175 static const char* value() 00176 { 00177 return "flirtlib_ros/DescriptorRos"; 00178 } 00179 00180 static const char* value(const ::flirtlib_ros::DescriptorRos_<ContainerAllocator> &) { return value(); } 00181 }; 00182 00183 template<class ContainerAllocator> 00184 struct Definition< ::flirtlib_ros::DescriptorRos_<ContainerAllocator> > { 00185 static const char* value() 00186 { 00187 return "# Confirms to the Descriptor type in flirtlib\n\ 00188 # For now, we only allow the beta grid descriptor\n\ 00189 \n\ 00190 Vector[] hist\n\ 00191 Vector[] variance\n\ 00192 Vector[] hit\n\ 00193 Vector[] miss\n\ 00194 \n\ 00195 ================================================================================\n\ 00196 MSG: flirtlib_ros/Vector\n\ 00197 # Vector message type used by a bunch of the flirtlib messages\n\ 00198 \n\ 00199 float64[] vec\n\ 00200 "; 00201 } 00202 00203 static const char* value(const ::flirtlib_ros::DescriptorRos_<ContainerAllocator> &) { return value(); } 00204 }; 00205 00206 } // namespace message_traits 00207 } // namespace ros 00208 00209 namespace ros 00210 { 00211 namespace serialization 00212 { 00213 00214 template<class ContainerAllocator> struct Serializer< ::flirtlib_ros::DescriptorRos_<ContainerAllocator> > 00215 { 00216 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00217 { 00218 stream.next(m.hist); 00219 stream.next(m.variance); 00220 stream.next(m.hit); 00221 stream.next(m.miss); 00222 } 00223 00224 ROS_DECLARE_ALLINONE_SERIALIZER; 00225 }; // struct DescriptorRos_ 00226 } // namespace serialization 00227 } // namespace ros 00228 00229 namespace ros 00230 { 00231 namespace message_operations 00232 { 00233 00234 template<class ContainerAllocator> 00235 struct Printer< ::flirtlib_ros::DescriptorRos_<ContainerAllocator> > 00236 { 00237 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::flirtlib_ros::DescriptorRos_<ContainerAllocator> & v) 00238 { 00239 s << indent << "hist[]" << std::endl; 00240 for (size_t i = 0; i < v.hist.size(); ++i) 00241 { 00242 s << indent << " hist[" << i << "]: "; 00243 s << std::endl; 00244 s << indent; 00245 Printer< ::flirtlib_ros::Vector_<ContainerAllocator> >::stream(s, indent + " ", v.hist[i]); 00246 } 00247 s << indent << "variance[]" << std::endl; 00248 for (size_t i = 0; i < v.variance.size(); ++i) 00249 { 00250 s << indent << " variance[" << i << "]: "; 00251 s << std::endl; 00252 s << indent; 00253 Printer< ::flirtlib_ros::Vector_<ContainerAllocator> >::stream(s, indent + " ", v.variance[i]); 00254 } 00255 s << indent << "hit[]" << std::endl; 00256 for (size_t i = 0; i < v.hit.size(); ++i) 00257 { 00258 s << indent << " hit[" << i << "]: "; 00259 s << std::endl; 00260 s << indent; 00261 Printer< ::flirtlib_ros::Vector_<ContainerAllocator> >::stream(s, indent + " ", v.hit[i]); 00262 } 00263 s << indent << "miss[]" << std::endl; 00264 for (size_t i = 0; i < v.miss.size(); ++i) 00265 { 00266 s << indent << " miss[" << i << "]: "; 00267 s << std::endl; 00268 s << indent; 00269 Printer< ::flirtlib_ros::Vector_<ContainerAllocator> >::stream(s, indent + " ", v.miss[i]); 00270 } 00271 } 00272 }; 00273 00274 00275 } // namespace message_operations 00276 } // namespace ros 00277 00278 #endif // FLIRTLIB_ROS_MESSAGE_DESCRIPTORROS_H 00279