$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/WorldState.msg */ 00002 #ifndef WIRE_MSGS_MESSAGE_WORLDSTATE_H 00003 #define WIRE_MSGS_MESSAGE_WORLDSTATE_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 "std_msgs/Header.h" 00018 #include "wire_msgs/ObjectState.h" 00019 00020 namespace wire_msgs 00021 { 00022 template <class ContainerAllocator> 00023 struct WorldState_ { 00024 typedef WorldState_<ContainerAllocator> Type; 00025 00026 WorldState_() 00027 : header() 00028 , objects() 00029 { 00030 } 00031 00032 WorldState_(const ContainerAllocator& _alloc) 00033 : header(_alloc) 00034 , objects(_alloc) 00035 { 00036 } 00037 00038 typedef ::std_msgs::Header_<ContainerAllocator> _header_type; 00039 ::std_msgs::Header_<ContainerAllocator> header; 00040 00041 typedef std::vector< ::wire_msgs::ObjectState_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::wire_msgs::ObjectState_<ContainerAllocator> >::other > _objects_type; 00042 std::vector< ::wire_msgs::ObjectState_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::wire_msgs::ObjectState_<ContainerAllocator> >::other > objects; 00043 00044 00045 ROS_DEPRECATED uint32_t get_objects_size() const { return (uint32_t)objects.size(); } 00046 ROS_DEPRECATED void set_objects_size(uint32_t size) { objects.resize((size_t)size); } 00047 ROS_DEPRECATED void get_objects_vec(std::vector< ::wire_msgs::ObjectState_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::wire_msgs::ObjectState_<ContainerAllocator> >::other > & vec) const { vec = this->objects; } 00048 ROS_DEPRECATED void set_objects_vec(const std::vector< ::wire_msgs::ObjectState_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::wire_msgs::ObjectState_<ContainerAllocator> >::other > & vec) { this->objects = vec; } 00049 private: 00050 static const char* __s_getDataType_() { return "wire_msgs/WorldState"; } 00051 public: 00052 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00053 00054 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00055 00056 private: 00057 static const char* __s_getMD5Sum_() { return "cbb30658c5399203b49098926c4c30ed"; } 00058 public: 00059 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00060 00061 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00062 00063 private: 00064 static const char* __s_getMessageDefinition_() { return "Header header\n\ 00065 ObjectState[] objects\n\ 00066 \n\ 00067 ================================================================================\n\ 00068 MSG: std_msgs/Header\n\ 00069 # Standard metadata for higher-level stamped data types.\n\ 00070 # This is generally used to communicate timestamped data \n\ 00071 # in a particular coordinate frame.\n\ 00072 # \n\ 00073 # sequence ID: consecutively increasing ID \n\ 00074 uint32 seq\n\ 00075 #Two-integer timestamp that is expressed as:\n\ 00076 # * stamp.secs: seconds (stamp_secs) since epoch\n\ 00077 # * stamp.nsecs: nanoseconds since stamp_secs\n\ 00078 # time-handling sugar is provided by the client library\n\ 00079 time stamp\n\ 00080 #Frame this data is associated with\n\ 00081 # 0: no frame\n\ 00082 # 1: global frame\n\ 00083 string frame_id\n\ 00084 \n\ 00085 ================================================================================\n\ 00086 MSG: wire_msgs/ObjectState\n\ 00087 uint32 ID\n\ 00088 float64 probability # probability that this object is actually in the world\n\ 00089 \n\ 00090 Property[] properties\n\ 00091 \n\ 00092 ================================================================================\n\ 00093 MSG: wire_msgs/Property\n\ 00094 string attribute\n\ 00095 problib/PDF pdf\n\ 00096 \n\ 00097 ================================================================================\n\ 00098 MSG: problib/PDF\n\ 00099 uint8 EXACT=0 # Is here for easier msg creation, but is actually a specialized case:\n\ 00100 # - continuous: is a Gaussian with zero covariance\n\ 00101 # - discrete: is a Discrete pdf with one entry with P=1 \n\ 00102 uint8 GAUSSIAN=1\n\ 00103 uint8 UNIFORM=2\n\ 00104 uint8 PARTICLES=3\n\ 00105 uint8 MIXTURE=4\n\ 00106 uint8 DISCRETE=5\n\ 00107 uint8 HYBRID=6\n\ 00108 \n\ 00109 uint8 type\n\ 00110 uint32 dimensions\n\ 00111 \n\ 00112 # For continuous pdf's\n\ 00113 float64[] data\n\ 00114 \n\ 00115 # For discrete pdf's (pmf)\n\ 00116 int32 domain_size\n\ 00117 string[] values\n\ 00118 float64[] probabilities\n\ 00119 \n\ 00120 # For exact values, either a string or a vector\n\ 00121 string exact_value_str\n\ 00122 float64[] exact_value_vec\n\ 00123 \n\ 00124 "; } 00125 public: 00126 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00127 00128 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00129 00130 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00131 { 00132 ros::serialization::OStream stream(write_ptr, 1000000000); 00133 ros::serialization::serialize(stream, header); 00134 ros::serialization::serialize(stream, objects); 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, header); 00142 ros::serialization::deserialize(stream, objects); 00143 return stream.getData(); 00144 } 00145 00146 ROS_DEPRECATED virtual uint32_t serializationLength() const 00147 { 00148 uint32_t size = 0; 00149 size += ros::serialization::serializationLength(header); 00150 size += ros::serialization::serializationLength(objects); 00151 return size; 00152 } 00153 00154 typedef boost::shared_ptr< ::wire_msgs::WorldState_<ContainerAllocator> > Ptr; 00155 typedef boost::shared_ptr< ::wire_msgs::WorldState_<ContainerAllocator> const> ConstPtr; 00156 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00157 }; // struct WorldState 00158 typedef ::wire_msgs::WorldState_<std::allocator<void> > WorldState; 00159 00160 typedef boost::shared_ptr< ::wire_msgs::WorldState> WorldStatePtr; 00161 typedef boost::shared_ptr< ::wire_msgs::WorldState const> WorldStateConstPtr; 00162 00163 00164 template<typename ContainerAllocator> 00165 std::ostream& operator<<(std::ostream& s, const ::wire_msgs::WorldState_<ContainerAllocator> & v) 00166 { 00167 ros::message_operations::Printer< ::wire_msgs::WorldState_<ContainerAllocator> >::stream(s, "", v); 00168 return s;} 00169 00170 } // namespace wire_msgs 00171 00172 namespace ros 00173 { 00174 namespace message_traits 00175 { 00176 template<class ContainerAllocator> struct IsMessage< ::wire_msgs::WorldState_<ContainerAllocator> > : public TrueType {}; 00177 template<class ContainerAllocator> struct IsMessage< ::wire_msgs::WorldState_<ContainerAllocator> const> : public TrueType {}; 00178 template<class ContainerAllocator> 00179 struct MD5Sum< ::wire_msgs::WorldState_<ContainerAllocator> > { 00180 static const char* value() 00181 { 00182 return "cbb30658c5399203b49098926c4c30ed"; 00183 } 00184 00185 static const char* value(const ::wire_msgs::WorldState_<ContainerAllocator> &) { return value(); } 00186 static const uint64_t static_value1 = 0xcbb30658c5399203ULL; 00187 static const uint64_t static_value2 = 0xb49098926c4c30edULL; 00188 }; 00189 00190 template<class ContainerAllocator> 00191 struct DataType< ::wire_msgs::WorldState_<ContainerAllocator> > { 00192 static const char* value() 00193 { 00194 return "wire_msgs/WorldState"; 00195 } 00196 00197 static const char* value(const ::wire_msgs::WorldState_<ContainerAllocator> &) { return value(); } 00198 }; 00199 00200 template<class ContainerAllocator> 00201 struct Definition< ::wire_msgs::WorldState_<ContainerAllocator> > { 00202 static const char* value() 00203 { 00204 return "Header header\n\ 00205 ObjectState[] objects\n\ 00206 \n\ 00207 ================================================================================\n\ 00208 MSG: std_msgs/Header\n\ 00209 # Standard metadata for higher-level stamped data types.\n\ 00210 # This is generally used to communicate timestamped data \n\ 00211 # in a particular coordinate frame.\n\ 00212 # \n\ 00213 # sequence ID: consecutively increasing ID \n\ 00214 uint32 seq\n\ 00215 #Two-integer timestamp that is expressed as:\n\ 00216 # * stamp.secs: seconds (stamp_secs) since epoch\n\ 00217 # * stamp.nsecs: nanoseconds since stamp_secs\n\ 00218 # time-handling sugar is provided by the client library\n\ 00219 time stamp\n\ 00220 #Frame this data is associated with\n\ 00221 # 0: no frame\n\ 00222 # 1: global frame\n\ 00223 string frame_id\n\ 00224 \n\ 00225 ================================================================================\n\ 00226 MSG: wire_msgs/ObjectState\n\ 00227 uint32 ID\n\ 00228 float64 probability # probability that this object is actually in the world\n\ 00229 \n\ 00230 Property[] properties\n\ 00231 \n\ 00232 ================================================================================\n\ 00233 MSG: wire_msgs/Property\n\ 00234 string attribute\n\ 00235 problib/PDF pdf\n\ 00236 \n\ 00237 ================================================================================\n\ 00238 MSG: problib/PDF\n\ 00239 uint8 EXACT=0 # Is here for easier msg creation, but is actually a specialized case:\n\ 00240 # - continuous: is a Gaussian with zero covariance\n\ 00241 # - discrete: is a Discrete pdf with one entry with P=1 \n\ 00242 uint8 GAUSSIAN=1\n\ 00243 uint8 UNIFORM=2\n\ 00244 uint8 PARTICLES=3\n\ 00245 uint8 MIXTURE=4\n\ 00246 uint8 DISCRETE=5\n\ 00247 uint8 HYBRID=6\n\ 00248 \n\ 00249 uint8 type\n\ 00250 uint32 dimensions\n\ 00251 \n\ 00252 # For continuous pdf's\n\ 00253 float64[] data\n\ 00254 \n\ 00255 # For discrete pdf's (pmf)\n\ 00256 int32 domain_size\n\ 00257 string[] values\n\ 00258 float64[] probabilities\n\ 00259 \n\ 00260 # For exact values, either a string or a vector\n\ 00261 string exact_value_str\n\ 00262 float64[] exact_value_vec\n\ 00263 \n\ 00264 "; 00265 } 00266 00267 static const char* value(const ::wire_msgs::WorldState_<ContainerAllocator> &) { return value(); } 00268 }; 00269 00270 template<class ContainerAllocator> struct HasHeader< ::wire_msgs::WorldState_<ContainerAllocator> > : public TrueType {}; 00271 template<class ContainerAllocator> struct HasHeader< const ::wire_msgs::WorldState_<ContainerAllocator> > : public TrueType {}; 00272 } // namespace message_traits 00273 } // namespace ros 00274 00275 namespace ros 00276 { 00277 namespace serialization 00278 { 00279 00280 template<class ContainerAllocator> struct Serializer< ::wire_msgs::WorldState_<ContainerAllocator> > 00281 { 00282 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00283 { 00284 stream.next(m.header); 00285 stream.next(m.objects); 00286 } 00287 00288 ROS_DECLARE_ALLINONE_SERIALIZER; 00289 }; // struct WorldState_ 00290 } // namespace serialization 00291 } // namespace ros 00292 00293 namespace ros 00294 { 00295 namespace message_operations 00296 { 00297 00298 template<class ContainerAllocator> 00299 struct Printer< ::wire_msgs::WorldState_<ContainerAllocator> > 00300 { 00301 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::wire_msgs::WorldState_<ContainerAllocator> & v) 00302 { 00303 s << indent << "header: "; 00304 s << std::endl; 00305 Printer< ::std_msgs::Header_<ContainerAllocator> >::stream(s, indent + " ", v.header); 00306 s << indent << "objects[]" << std::endl; 00307 for (size_t i = 0; i < v.objects.size(); ++i) 00308 { 00309 s << indent << " objects[" << i << "]: "; 00310 s << std::endl; 00311 s << indent; 00312 Printer< ::wire_msgs::ObjectState_<ContainerAllocator> >::stream(s, indent + " ", v.objects[i]); 00313 } 00314 } 00315 }; 00316 00317 00318 } // namespace message_operations 00319 } // namespace ros 00320 00321 #endif // WIRE_MSGS_MESSAGE_WORLDSTATE_H 00322