$search
00001 /* Auto-generated by genmsg_cpp for file /home/rosbuild/hudson/workspace/doc-electric-tue/doc_stacks/2013-03-05_12-23-27.283047/wire/wire_msgs/msg/Property.msg */ 00002 #ifndef WIRE_MSGS_MESSAGE_PROPERTY_H 00003 #define WIRE_MSGS_MESSAGE_PROPERTY_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 "problib/PDF.h" 00018 00019 namespace wire_msgs 00020 { 00021 template <class ContainerAllocator> 00022 struct Property_ { 00023 typedef Property_<ContainerAllocator> Type; 00024 00025 Property_() 00026 : attribute() 00027 , pdf() 00028 { 00029 } 00030 00031 Property_(const ContainerAllocator& _alloc) 00032 : attribute(_alloc) 00033 , pdf(_alloc) 00034 { 00035 } 00036 00037 typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _attribute_type; 00038 std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > attribute; 00039 00040 typedef ::problib::PDF_<ContainerAllocator> _pdf_type; 00041 ::problib::PDF_<ContainerAllocator> pdf; 00042 00043 00044 private: 00045 static const char* __s_getDataType_() { return "wire_msgs/Property"; } 00046 public: 00047 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00048 00049 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00050 00051 private: 00052 static const char* __s_getMD5Sum_() { return "1c9edd1723693723df74ea64db341104"; } 00053 public: 00054 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00055 00056 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00057 00058 private: 00059 static const char* __s_getMessageDefinition_() { return "string attribute\n\ 00060 problib/PDF pdf\n\ 00061 \n\ 00062 ================================================================================\n\ 00063 MSG: problib/PDF\n\ 00064 uint8 EXACT=0 # Is here for easier msg creation, but is actually a specialized case:\n\ 00065 # - continuous: is a Gaussian with zero covariance\n\ 00066 # - discrete: is a Discrete pdf with one entry with P=1 \n\ 00067 uint8 GAUSSIAN=1\n\ 00068 uint8 UNIFORM=2\n\ 00069 uint8 PARTICLES=3\n\ 00070 uint8 MIXTURE=4\n\ 00071 uint8 DISCRETE=5\n\ 00072 uint8 HYBRID=6\n\ 00073 \n\ 00074 uint8 type\n\ 00075 uint32 dimensions\n\ 00076 \n\ 00077 # For continuous pdf's\n\ 00078 float64[] data\n\ 00079 \n\ 00080 # For discrete pdf's (pmf)\n\ 00081 int32 domain_size\n\ 00082 string[] values\n\ 00083 float64[] probabilities\n\ 00084 \n\ 00085 # For exact values, either a string or a vector\n\ 00086 string exact_value_str\n\ 00087 float64[] exact_value_vec\n\ 00088 \n\ 00089 "; } 00090 public: 00091 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00092 00093 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00094 00095 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00096 { 00097 ros::serialization::OStream stream(write_ptr, 1000000000); 00098 ros::serialization::serialize(stream, attribute); 00099 ros::serialization::serialize(stream, pdf); 00100 return stream.getData(); 00101 } 00102 00103 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00104 { 00105 ros::serialization::IStream stream(read_ptr, 1000000000); 00106 ros::serialization::deserialize(stream, attribute); 00107 ros::serialization::deserialize(stream, pdf); 00108 return stream.getData(); 00109 } 00110 00111 ROS_DEPRECATED virtual uint32_t serializationLength() const 00112 { 00113 uint32_t size = 0; 00114 size += ros::serialization::serializationLength(attribute); 00115 size += ros::serialization::serializationLength(pdf); 00116 return size; 00117 } 00118 00119 typedef boost::shared_ptr< ::wire_msgs::Property_<ContainerAllocator> > Ptr; 00120 typedef boost::shared_ptr< ::wire_msgs::Property_<ContainerAllocator> const> ConstPtr; 00121 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00122 }; // struct Property 00123 typedef ::wire_msgs::Property_<std::allocator<void> > Property; 00124 00125 typedef boost::shared_ptr< ::wire_msgs::Property> PropertyPtr; 00126 typedef boost::shared_ptr< ::wire_msgs::Property const> PropertyConstPtr; 00127 00128 00129 template<typename ContainerAllocator> 00130 std::ostream& operator<<(std::ostream& s, const ::wire_msgs::Property_<ContainerAllocator> & v) 00131 { 00132 ros::message_operations::Printer< ::wire_msgs::Property_<ContainerAllocator> >::stream(s, "", v); 00133 return s;} 00134 00135 } // namespace wire_msgs 00136 00137 namespace ros 00138 { 00139 namespace message_traits 00140 { 00141 template<class ContainerAllocator> struct IsMessage< ::wire_msgs::Property_<ContainerAllocator> > : public TrueType {}; 00142 template<class ContainerAllocator> struct IsMessage< ::wire_msgs::Property_<ContainerAllocator> const> : public TrueType {}; 00143 template<class ContainerAllocator> 00144 struct MD5Sum< ::wire_msgs::Property_<ContainerAllocator> > { 00145 static const char* value() 00146 { 00147 return "1c9edd1723693723df74ea64db341104"; 00148 } 00149 00150 static const char* value(const ::wire_msgs::Property_<ContainerAllocator> &) { return value(); } 00151 static const uint64_t static_value1 = 0x1c9edd1723693723ULL; 00152 static const uint64_t static_value2 = 0xdf74ea64db341104ULL; 00153 }; 00154 00155 template<class ContainerAllocator> 00156 struct DataType< ::wire_msgs::Property_<ContainerAllocator> > { 00157 static const char* value() 00158 { 00159 return "wire_msgs/Property"; 00160 } 00161 00162 static const char* value(const ::wire_msgs::Property_<ContainerAllocator> &) { return value(); } 00163 }; 00164 00165 template<class ContainerAllocator> 00166 struct Definition< ::wire_msgs::Property_<ContainerAllocator> > { 00167 static const char* value() 00168 { 00169 return "string attribute\n\ 00170 problib/PDF pdf\n\ 00171 \n\ 00172 ================================================================================\n\ 00173 MSG: problib/PDF\n\ 00174 uint8 EXACT=0 # Is here for easier msg creation, but is actually a specialized case:\n\ 00175 # - continuous: is a Gaussian with zero covariance\n\ 00176 # - discrete: is a Discrete pdf with one entry with P=1 \n\ 00177 uint8 GAUSSIAN=1\n\ 00178 uint8 UNIFORM=2\n\ 00179 uint8 PARTICLES=3\n\ 00180 uint8 MIXTURE=4\n\ 00181 uint8 DISCRETE=5\n\ 00182 uint8 HYBRID=6\n\ 00183 \n\ 00184 uint8 type\n\ 00185 uint32 dimensions\n\ 00186 \n\ 00187 # For continuous pdf's\n\ 00188 float64[] data\n\ 00189 \n\ 00190 # For discrete pdf's (pmf)\n\ 00191 int32 domain_size\n\ 00192 string[] values\n\ 00193 float64[] probabilities\n\ 00194 \n\ 00195 # For exact values, either a string or a vector\n\ 00196 string exact_value_str\n\ 00197 float64[] exact_value_vec\n\ 00198 \n\ 00199 "; 00200 } 00201 00202 static const char* value(const ::wire_msgs::Property_<ContainerAllocator> &) { return value(); } 00203 }; 00204 00205 } // namespace message_traits 00206 } // namespace ros 00207 00208 namespace ros 00209 { 00210 namespace serialization 00211 { 00212 00213 template<class ContainerAllocator> struct Serializer< ::wire_msgs::Property_<ContainerAllocator> > 00214 { 00215 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00216 { 00217 stream.next(m.attribute); 00218 stream.next(m.pdf); 00219 } 00220 00221 ROS_DECLARE_ALLINONE_SERIALIZER; 00222 }; // struct Property_ 00223 } // namespace serialization 00224 } // namespace ros 00225 00226 namespace ros 00227 { 00228 namespace message_operations 00229 { 00230 00231 template<class ContainerAllocator> 00232 struct Printer< ::wire_msgs::Property_<ContainerAllocator> > 00233 { 00234 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::wire_msgs::Property_<ContainerAllocator> & v) 00235 { 00236 s << indent << "attribute: "; 00237 Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.attribute); 00238 s << indent << "pdf: "; 00239 s << std::endl; 00240 Printer< ::problib::PDF_<ContainerAllocator> >::stream(s, indent + " ", v.pdf); 00241 } 00242 }; 00243 00244 00245 } // namespace message_operations 00246 } // namespace ros 00247 00248 #endif // WIRE_MSGS_MESSAGE_PROPERTY_H 00249