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