00001
00002 #ifndef WORLDMODEL_MSGS_MESSAGE_OBJECTMODEL_H
00003 #define WORLDMODEL_MSGS_MESSAGE_OBJECTMODEL_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 "worldmodel_msgs/Object.h"
00018
00019 namespace worldmodel_msgs
00020 {
00021 template <class ContainerAllocator>
00022 struct ObjectModel_ {
00023 typedef ObjectModel_<ContainerAllocator> Type;
00024
00025 ObjectModel_()
00026 : objects()
00027 {
00028 }
00029
00030 ObjectModel_(const ContainerAllocator& _alloc)
00031 : objects(_alloc)
00032 {
00033 }
00034
00035 typedef std::vector< ::worldmodel_msgs::Object_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::worldmodel_msgs::Object_<ContainerAllocator> >::other > _objects_type;
00036 std::vector< ::worldmodel_msgs::Object_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::worldmodel_msgs::Object_<ContainerAllocator> >::other > objects;
00037
00038
00039 ROS_DEPRECATED uint32_t get_objects_size() const { return (uint32_t)objects.size(); }
00040 ROS_DEPRECATED void set_objects_size(uint32_t size) { objects.resize((size_t)size); }
00041 ROS_DEPRECATED void get_objects_vec(std::vector< ::worldmodel_msgs::Object_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::worldmodel_msgs::Object_<ContainerAllocator> >::other > & vec) const { vec = this->objects; }
00042 ROS_DEPRECATED void set_objects_vec(const std::vector< ::worldmodel_msgs::Object_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::worldmodel_msgs::Object_<ContainerAllocator> >::other > & vec) { this->objects = vec; }
00043 private:
00044 static const char* __s_getDataType_() { return "worldmodel_msgs/ObjectModel"; }
00045 public:
00046 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); }
00047
00048 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); }
00049
00050 private:
00051 static const char* __s_getMD5Sum_() { return "f9cae8b2109e6f4fe92735ca9596083c"; }
00052 public:
00053 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); }
00054
00055 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); }
00056
00057 private:
00058 static const char* __s_getMessageDefinition_() { return "# This message represents a collection of known objects.\n\
00059 worldmodel_msgs/Object[] objects\n\
00060 \n\
00061 ================================================================================\n\
00062 MSG: worldmodel_msgs/Object\n\
00063 # This message represents an estimate of an object's pose and identity.\n\
00064 \n\
00065 # The header.\n\
00066 # stamp: Timestamp of last update.\n\
00067 # frame_id: Coordinate frame, in which the pose is given\n\
00068 Header header\n\
00069 \n\
00070 # The pose\n\
00071 geometry_msgs/PoseWithCovariance pose\n\
00072 \n\
00073 # Further information about the object\n\
00074 ObjectInfo info\n\
00075 \n\
00076 # The tracked state of the object\n\
00077 ObjectState state\n\
00078 \n\
00079 ================================================================================\n\
00080 MSG: std_msgs/Header\n\
00081 # Standard metadata for higher-level stamped data types.\n\
00082 # This is generally used to communicate timestamped data \n\
00083 # in a particular coordinate frame.\n\
00084 # \n\
00085 # sequence ID: consecutively increasing ID \n\
00086 uint32 seq\n\
00087 #Two-integer timestamp that is expressed as:\n\
00088 # * stamp.secs: seconds (stamp_secs) since epoch\n\
00089 # * stamp.nsecs: nanoseconds since stamp_secs\n\
00090 # time-handling sugar is provided by the client library\n\
00091 time stamp\n\
00092 #Frame this data is associated with\n\
00093 # 0: no frame\n\
00094 # 1: global frame\n\
00095 string frame_id\n\
00096 \n\
00097 ================================================================================\n\
00098 MSG: geometry_msgs/PoseWithCovariance\n\
00099 # This represents a pose in free space with uncertainty.\n\
00100 \n\
00101 Pose pose\n\
00102 \n\
00103 # Row-major representation of the 6x6 covariance matrix\n\
00104 # The orientation parameters use a fixed-axis representation.\n\
00105 # In order, the parameters are:\n\
00106 # (x, y, z, rotation about X axis, rotation about Y axis, rotation about Z axis)\n\
00107 float64[36] covariance\n\
00108 \n\
00109 ================================================================================\n\
00110 MSG: geometry_msgs/Pose\n\
00111 # A representation of pose in free space, composed of postion and orientation. \n\
00112 Point position\n\
00113 Quaternion orientation\n\
00114 \n\
00115 ================================================================================\n\
00116 MSG: geometry_msgs/Point\n\
00117 # This contains the position of a point in free space\n\
00118 float64 x\n\
00119 float64 y\n\
00120 float64 z\n\
00121 \n\
00122 ================================================================================\n\
00123 MSG: geometry_msgs/Quaternion\n\
00124 # This represents an orientation in free space in quaternion form.\n\
00125 \n\
00126 float64 x\n\
00127 float64 y\n\
00128 float64 z\n\
00129 float64 w\n\
00130 \n\
00131 ================================================================================\n\
00132 MSG: worldmodel_msgs/ObjectInfo\n\
00133 # This message contains information about the estimated class affiliation, object id and corresponding support\n\
00134 \n\
00135 # A string identifying the object's class (all objects of a class look the same)\n\
00136 string class_id\n\
00137 \n\
00138 # A string identifying the specific object\n\
00139 string object_id\n\
00140 \n\
00141 # A string that contains the name or a description of the specific object\n\
00142 string name\n\
00143 \n\
00144 # The support (degree of belief) of the object's presence given as log odd ratio\n\
00145 float32 support\n\
00146 \n\
00147 \n\
00148 ================================================================================\n\
00149 MSG: worldmodel_msgs/ObjectState\n\
00150 # The state of an object estimate used to track\n\
00151 # states smaller than 0 disable all updates\n\
00152 \n\
00153 int8 UNKNOWN = 0\n\
00154 int8 PENDING = 1\n\
00155 int8 ACTIVE = 2\n\
00156 int8 CONFIRMED = -1\n\
00157 int8 DISCARDED = -2\n\
00158 int8 APPROACHING = -3\n\
00159 \n\
00160 int8 state\n\
00161 \n\
00162 "; }
00163 public:
00164 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); }
00165
00166 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); }
00167
00168 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const
00169 {
00170 ros::serialization::OStream stream(write_ptr, 1000000000);
00171 ros::serialization::serialize(stream, objects);
00172 return stream.getData();
00173 }
00174
00175 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr)
00176 {
00177 ros::serialization::IStream stream(read_ptr, 1000000000);
00178 ros::serialization::deserialize(stream, objects);
00179 return stream.getData();
00180 }
00181
00182 ROS_DEPRECATED virtual uint32_t serializationLength() const
00183 {
00184 uint32_t size = 0;
00185 size += ros::serialization::serializationLength(objects);
00186 return size;
00187 }
00188
00189 typedef boost::shared_ptr< ::worldmodel_msgs::ObjectModel_<ContainerAllocator> > Ptr;
00190 typedef boost::shared_ptr< ::worldmodel_msgs::ObjectModel_<ContainerAllocator> const> ConstPtr;
00191 boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00192 };
00193 typedef ::worldmodel_msgs::ObjectModel_<std::allocator<void> > ObjectModel;
00194
00195 typedef boost::shared_ptr< ::worldmodel_msgs::ObjectModel> ObjectModelPtr;
00196 typedef boost::shared_ptr< ::worldmodel_msgs::ObjectModel const> ObjectModelConstPtr;
00197
00198
00199 template<typename ContainerAllocator>
00200 std::ostream& operator<<(std::ostream& s, const ::worldmodel_msgs::ObjectModel_<ContainerAllocator> & v)
00201 {
00202 ros::message_operations::Printer< ::worldmodel_msgs::ObjectModel_<ContainerAllocator> >::stream(s, "", v);
00203 return s;}
00204
00205 }
00206
00207 namespace ros
00208 {
00209 namespace message_traits
00210 {
00211 template<class ContainerAllocator> struct IsMessage< ::worldmodel_msgs::ObjectModel_<ContainerAllocator> > : public TrueType {};
00212 template<class ContainerAllocator> struct IsMessage< ::worldmodel_msgs::ObjectModel_<ContainerAllocator> const> : public TrueType {};
00213 template<class ContainerAllocator>
00214 struct MD5Sum< ::worldmodel_msgs::ObjectModel_<ContainerAllocator> > {
00215 static const char* value()
00216 {
00217 return "f9cae8b2109e6f4fe92735ca9596083c";
00218 }
00219
00220 static const char* value(const ::worldmodel_msgs::ObjectModel_<ContainerAllocator> &) { return value(); }
00221 static const uint64_t static_value1 = 0xf9cae8b2109e6f4fULL;
00222 static const uint64_t static_value2 = 0xe92735ca9596083cULL;
00223 };
00224
00225 template<class ContainerAllocator>
00226 struct DataType< ::worldmodel_msgs::ObjectModel_<ContainerAllocator> > {
00227 static const char* value()
00228 {
00229 return "worldmodel_msgs/ObjectModel";
00230 }
00231
00232 static const char* value(const ::worldmodel_msgs::ObjectModel_<ContainerAllocator> &) { return value(); }
00233 };
00234
00235 template<class ContainerAllocator>
00236 struct Definition< ::worldmodel_msgs::ObjectModel_<ContainerAllocator> > {
00237 static const char* value()
00238 {
00239 return "# This message represents a collection of known objects.\n\
00240 worldmodel_msgs/Object[] objects\n\
00241 \n\
00242 ================================================================================\n\
00243 MSG: worldmodel_msgs/Object\n\
00244 # This message represents an estimate of an object's pose and identity.\n\
00245 \n\
00246 # The header.\n\
00247 # stamp: Timestamp of last update.\n\
00248 # frame_id: Coordinate frame, in which the pose is given\n\
00249 Header header\n\
00250 \n\
00251 # The pose\n\
00252 geometry_msgs/PoseWithCovariance pose\n\
00253 \n\
00254 # Further information about the object\n\
00255 ObjectInfo info\n\
00256 \n\
00257 # The tracked state of the object\n\
00258 ObjectState state\n\
00259 \n\
00260 ================================================================================\n\
00261 MSG: std_msgs/Header\n\
00262 # Standard metadata for higher-level stamped data types.\n\
00263 # This is generally used to communicate timestamped data \n\
00264 # in a particular coordinate frame.\n\
00265 # \n\
00266 # sequence ID: consecutively increasing ID \n\
00267 uint32 seq\n\
00268 #Two-integer timestamp that is expressed as:\n\
00269 # * stamp.secs: seconds (stamp_secs) since epoch\n\
00270 # * stamp.nsecs: nanoseconds since stamp_secs\n\
00271 # time-handling sugar is provided by the client library\n\
00272 time stamp\n\
00273 #Frame this data is associated with\n\
00274 # 0: no frame\n\
00275 # 1: global frame\n\
00276 string frame_id\n\
00277 \n\
00278 ================================================================================\n\
00279 MSG: geometry_msgs/PoseWithCovariance\n\
00280 # This represents a pose in free space with uncertainty.\n\
00281 \n\
00282 Pose pose\n\
00283 \n\
00284 # Row-major representation of the 6x6 covariance matrix\n\
00285 # The orientation parameters use a fixed-axis representation.\n\
00286 # In order, the parameters are:\n\
00287 # (x, y, z, rotation about X axis, rotation about Y axis, rotation about Z axis)\n\
00288 float64[36] covariance\n\
00289 \n\
00290 ================================================================================\n\
00291 MSG: geometry_msgs/Pose\n\
00292 # A representation of pose in free space, composed of postion and orientation. \n\
00293 Point position\n\
00294 Quaternion orientation\n\
00295 \n\
00296 ================================================================================\n\
00297 MSG: geometry_msgs/Point\n\
00298 # This contains the position of a point in free space\n\
00299 float64 x\n\
00300 float64 y\n\
00301 float64 z\n\
00302 \n\
00303 ================================================================================\n\
00304 MSG: geometry_msgs/Quaternion\n\
00305 # This represents an orientation in free space in quaternion form.\n\
00306 \n\
00307 float64 x\n\
00308 float64 y\n\
00309 float64 z\n\
00310 float64 w\n\
00311 \n\
00312 ================================================================================\n\
00313 MSG: worldmodel_msgs/ObjectInfo\n\
00314 # This message contains information about the estimated class affiliation, object id and corresponding support\n\
00315 \n\
00316 # A string identifying the object's class (all objects of a class look the same)\n\
00317 string class_id\n\
00318 \n\
00319 # A string identifying the specific object\n\
00320 string object_id\n\
00321 \n\
00322 # A string that contains the name or a description of the specific object\n\
00323 string name\n\
00324 \n\
00325 # The support (degree of belief) of the object's presence given as log odd ratio\n\
00326 float32 support\n\
00327 \n\
00328 \n\
00329 ================================================================================\n\
00330 MSG: worldmodel_msgs/ObjectState\n\
00331 # The state of an object estimate used to track\n\
00332 # states smaller than 0 disable all updates\n\
00333 \n\
00334 int8 UNKNOWN = 0\n\
00335 int8 PENDING = 1\n\
00336 int8 ACTIVE = 2\n\
00337 int8 CONFIRMED = -1\n\
00338 int8 DISCARDED = -2\n\
00339 int8 APPROACHING = -3\n\
00340 \n\
00341 int8 state\n\
00342 \n\
00343 ";
00344 }
00345
00346 static const char* value(const ::worldmodel_msgs::ObjectModel_<ContainerAllocator> &) { return value(); }
00347 };
00348
00349 }
00350 }
00351
00352 namespace ros
00353 {
00354 namespace serialization
00355 {
00356
00357 template<class ContainerAllocator> struct Serializer< ::worldmodel_msgs::ObjectModel_<ContainerAllocator> >
00358 {
00359 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00360 {
00361 stream.next(m.objects);
00362 }
00363
00364 ROS_DECLARE_ALLINONE_SERIALIZER;
00365 };
00366 }
00367 }
00368
00369 namespace ros
00370 {
00371 namespace message_operations
00372 {
00373
00374 template<class ContainerAllocator>
00375 struct Printer< ::worldmodel_msgs::ObjectModel_<ContainerAllocator> >
00376 {
00377 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::worldmodel_msgs::ObjectModel_<ContainerAllocator> & v)
00378 {
00379 s << indent << "objects[]" << std::endl;
00380 for (size_t i = 0; i < v.objects.size(); ++i)
00381 {
00382 s << indent << " objects[" << i << "]: ";
00383 s << std::endl;
00384 s << indent;
00385 Printer< ::worldmodel_msgs::Object_<ContainerAllocator> >::stream(s, indent + " ", v.objects[i]);
00386 }
00387 }
00388 };
00389
00390
00391 }
00392 }
00393
00394 #endif // WORLDMODEL_MSGS_MESSAGE_OBJECTMODEL_H
00395