00001
00002 #ifndef WORLDMODEL_MSGS_SERVICE_GETOBJECTMODEL_H
00003 #define WORLDMODEL_MSGS_SERVICE_GETOBJECTMODEL_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 "ros/service_traits.h"
00018
00019
00020
00021 #include "worldmodel_msgs/ObjectModel.h"
00022
00023 namespace worldmodel_msgs
00024 {
00025 template <class ContainerAllocator>
00026 struct GetObjectModelRequest_ {
00027 typedef GetObjectModelRequest_<ContainerAllocator> Type;
00028
00029 GetObjectModelRequest_()
00030 {
00031 }
00032
00033 GetObjectModelRequest_(const ContainerAllocator& _alloc)
00034 {
00035 }
00036
00037
00038 private:
00039 static const char* __s_getDataType_() { return "worldmodel_msgs/GetObjectModelRequest"; }
00040 public:
00041 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); }
00042
00043 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); }
00044
00045 private:
00046 static const char* __s_getMD5Sum_() { return "d41d8cd98f00b204e9800998ecf8427e"; }
00047 public:
00048 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); }
00049
00050 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); }
00051
00052 private:
00053 static const char* __s_getServerMD5Sum_() { return "7db65d70fef30d6f864880ed7f1d35c9"; }
00054 public:
00055 ROS_DEPRECATED static const std::string __s_getServerMD5Sum() { return __s_getServerMD5Sum_(); }
00056
00057 ROS_DEPRECATED const std::string __getServerMD5Sum() const { return __s_getServerMD5Sum_(); }
00058
00059 private:
00060 static const char* __s_getMessageDefinition_() { return "\n\
00061 \n\
00062 "; }
00063 public:
00064 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); }
00065
00066 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); }
00067
00068 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const
00069 {
00070 ros::serialization::OStream stream(write_ptr, 1000000000);
00071 return stream.getData();
00072 }
00073
00074 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr)
00075 {
00076 ros::serialization::IStream stream(read_ptr, 1000000000);
00077 return stream.getData();
00078 }
00079
00080 ROS_DEPRECATED virtual uint32_t serializationLength() const
00081 {
00082 uint32_t size = 0;
00083 return size;
00084 }
00085
00086 typedef boost::shared_ptr< ::worldmodel_msgs::GetObjectModelRequest_<ContainerAllocator> > Ptr;
00087 typedef boost::shared_ptr< ::worldmodel_msgs::GetObjectModelRequest_<ContainerAllocator> const> ConstPtr;
00088 boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00089 };
00090 typedef ::worldmodel_msgs::GetObjectModelRequest_<std::allocator<void> > GetObjectModelRequest;
00091
00092 typedef boost::shared_ptr< ::worldmodel_msgs::GetObjectModelRequest> GetObjectModelRequestPtr;
00093 typedef boost::shared_ptr< ::worldmodel_msgs::GetObjectModelRequest const> GetObjectModelRequestConstPtr;
00094
00095
00096 template <class ContainerAllocator>
00097 struct GetObjectModelResponse_ {
00098 typedef GetObjectModelResponse_<ContainerAllocator> Type;
00099
00100 GetObjectModelResponse_()
00101 : model()
00102 {
00103 }
00104
00105 GetObjectModelResponse_(const ContainerAllocator& _alloc)
00106 : model(_alloc)
00107 {
00108 }
00109
00110 typedef ::worldmodel_msgs::ObjectModel_<ContainerAllocator> _model_type;
00111 ::worldmodel_msgs::ObjectModel_<ContainerAllocator> model;
00112
00113
00114 private:
00115 static const char* __s_getDataType_() { return "worldmodel_msgs/GetObjectModelResponse"; }
00116 public:
00117 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); }
00118
00119 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); }
00120
00121 private:
00122 static const char* __s_getMD5Sum_() { return "7db65d70fef30d6f864880ed7f1d35c9"; }
00123 public:
00124 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); }
00125
00126 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); }
00127
00128 private:
00129 static const char* __s_getServerMD5Sum_() { return "7db65d70fef30d6f864880ed7f1d35c9"; }
00130 public:
00131 ROS_DEPRECATED static const std::string __s_getServerMD5Sum() { return __s_getServerMD5Sum_(); }
00132
00133 ROS_DEPRECATED const std::string __getServerMD5Sum() const { return __s_getServerMD5Sum_(); }
00134
00135 private:
00136 static const char* __s_getMessageDefinition_() { return "ObjectModel model\n\
00137 \n\
00138 \n\
00139 ================================================================================\n\
00140 MSG: worldmodel_msgs/ObjectModel\n\
00141 # This message represents a collection of known objects.\n\
00142 worldmodel_msgs/Object[] objects\n\
00143 \n\
00144 ================================================================================\n\
00145 MSG: worldmodel_msgs/Object\n\
00146 # This message represents an estimate of an object's pose and identity.\n\
00147 \n\
00148 # The header.\n\
00149 # stamp: Timestamp of last update.\n\
00150 # frame_id: Coordinate frame, in which the pose is given\n\
00151 Header header\n\
00152 \n\
00153 # The pose\n\
00154 geometry_msgs/PoseWithCovariance pose\n\
00155 \n\
00156 # Further information about the object\n\
00157 ObjectInfo info\n\
00158 \n\
00159 # The tracked state of the object\n\
00160 ObjectState state\n\
00161 \n\
00162 ================================================================================\n\
00163 MSG: std_msgs/Header\n\
00164 # Standard metadata for higher-level stamped data types.\n\
00165 # This is generally used to communicate timestamped data \n\
00166 # in a particular coordinate frame.\n\
00167 # \n\
00168 # sequence ID: consecutively increasing ID \n\
00169 uint32 seq\n\
00170 #Two-integer timestamp that is expressed as:\n\
00171 # * stamp.secs: seconds (stamp_secs) since epoch\n\
00172 # * stamp.nsecs: nanoseconds since stamp_secs\n\
00173 # time-handling sugar is provided by the client library\n\
00174 time stamp\n\
00175 #Frame this data is associated with\n\
00176 # 0: no frame\n\
00177 # 1: global frame\n\
00178 string frame_id\n\
00179 \n\
00180 ================================================================================\n\
00181 MSG: geometry_msgs/PoseWithCovariance\n\
00182 # This represents a pose in free space with uncertainty.\n\
00183 \n\
00184 Pose pose\n\
00185 \n\
00186 # Row-major representation of the 6x6 covariance matrix\n\
00187 # The orientation parameters use a fixed-axis representation.\n\
00188 # In order, the parameters are:\n\
00189 # (x, y, z, rotation about X axis, rotation about Y axis, rotation about Z axis)\n\
00190 float64[36] covariance\n\
00191 \n\
00192 ================================================================================\n\
00193 MSG: geometry_msgs/Pose\n\
00194 # A representation of pose in free space, composed of postion and orientation. \n\
00195 Point position\n\
00196 Quaternion orientation\n\
00197 \n\
00198 ================================================================================\n\
00199 MSG: geometry_msgs/Point\n\
00200 # This contains the position of a point in free space\n\
00201 float64 x\n\
00202 float64 y\n\
00203 float64 z\n\
00204 \n\
00205 ================================================================================\n\
00206 MSG: geometry_msgs/Quaternion\n\
00207 # This represents an orientation in free space in quaternion form.\n\
00208 \n\
00209 float64 x\n\
00210 float64 y\n\
00211 float64 z\n\
00212 float64 w\n\
00213 \n\
00214 ================================================================================\n\
00215 MSG: worldmodel_msgs/ObjectInfo\n\
00216 # This message contains information about the estimated class affiliation, object id and corresponding support\n\
00217 \n\
00218 # A string identifying the object's class (all objects of a class look the same)\n\
00219 string class_id\n\
00220 \n\
00221 # A string identifying the specific object\n\
00222 string object_id\n\
00223 \n\
00224 # A string that contains the name or a description of the specific object\n\
00225 string name\n\
00226 \n\
00227 # The support (degree of belief) of the object's presence given as log odd ratio\n\
00228 float32 support\n\
00229 \n\
00230 \n\
00231 ================================================================================\n\
00232 MSG: worldmodel_msgs/ObjectState\n\
00233 # The state of an object estimate used to track\n\
00234 # states smaller than 0 disable all updates\n\
00235 \n\
00236 int8 UNKNOWN = 0\n\
00237 int8 PENDING = 1\n\
00238 int8 ACTIVE = 2\n\
00239 int8 CONFIRMED = -1\n\
00240 int8 DISCARDED = -2\n\
00241 int8 APPROACHING = -3\n\
00242 \n\
00243 int8 state\n\
00244 \n\
00245 "; }
00246 public:
00247 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); }
00248
00249 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); }
00250
00251 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const
00252 {
00253 ros::serialization::OStream stream(write_ptr, 1000000000);
00254 ros::serialization::serialize(stream, model);
00255 return stream.getData();
00256 }
00257
00258 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr)
00259 {
00260 ros::serialization::IStream stream(read_ptr, 1000000000);
00261 ros::serialization::deserialize(stream, model);
00262 return stream.getData();
00263 }
00264
00265 ROS_DEPRECATED virtual uint32_t serializationLength() const
00266 {
00267 uint32_t size = 0;
00268 size += ros::serialization::serializationLength(model);
00269 return size;
00270 }
00271
00272 typedef boost::shared_ptr< ::worldmodel_msgs::GetObjectModelResponse_<ContainerAllocator> > Ptr;
00273 typedef boost::shared_ptr< ::worldmodel_msgs::GetObjectModelResponse_<ContainerAllocator> const> ConstPtr;
00274 boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00275 };
00276 typedef ::worldmodel_msgs::GetObjectModelResponse_<std::allocator<void> > GetObjectModelResponse;
00277
00278 typedef boost::shared_ptr< ::worldmodel_msgs::GetObjectModelResponse> GetObjectModelResponsePtr;
00279 typedef boost::shared_ptr< ::worldmodel_msgs::GetObjectModelResponse const> GetObjectModelResponseConstPtr;
00280
00281 struct GetObjectModel
00282 {
00283
00284 typedef GetObjectModelRequest Request;
00285 typedef GetObjectModelResponse Response;
00286 Request request;
00287 Response response;
00288
00289 typedef Request RequestType;
00290 typedef Response ResponseType;
00291 };
00292 }
00293
00294 namespace ros
00295 {
00296 namespace message_traits
00297 {
00298 template<class ContainerAllocator> struct IsMessage< ::worldmodel_msgs::GetObjectModelRequest_<ContainerAllocator> > : public TrueType {};
00299 template<class ContainerAllocator> struct IsMessage< ::worldmodel_msgs::GetObjectModelRequest_<ContainerAllocator> const> : public TrueType {};
00300 template<class ContainerAllocator>
00301 struct MD5Sum< ::worldmodel_msgs::GetObjectModelRequest_<ContainerAllocator> > {
00302 static const char* value()
00303 {
00304 return "d41d8cd98f00b204e9800998ecf8427e";
00305 }
00306
00307 static const char* value(const ::worldmodel_msgs::GetObjectModelRequest_<ContainerAllocator> &) { return value(); }
00308 static const uint64_t static_value1 = 0xd41d8cd98f00b204ULL;
00309 static const uint64_t static_value2 = 0xe9800998ecf8427eULL;
00310 };
00311
00312 template<class ContainerAllocator>
00313 struct DataType< ::worldmodel_msgs::GetObjectModelRequest_<ContainerAllocator> > {
00314 static const char* value()
00315 {
00316 return "worldmodel_msgs/GetObjectModelRequest";
00317 }
00318
00319 static const char* value(const ::worldmodel_msgs::GetObjectModelRequest_<ContainerAllocator> &) { return value(); }
00320 };
00321
00322 template<class ContainerAllocator>
00323 struct Definition< ::worldmodel_msgs::GetObjectModelRequest_<ContainerAllocator> > {
00324 static const char* value()
00325 {
00326 return "\n\
00327 \n\
00328 ";
00329 }
00330
00331 static const char* value(const ::worldmodel_msgs::GetObjectModelRequest_<ContainerAllocator> &) { return value(); }
00332 };
00333
00334 template<class ContainerAllocator> struct IsFixedSize< ::worldmodel_msgs::GetObjectModelRequest_<ContainerAllocator> > : public TrueType {};
00335 }
00336 }
00337
00338
00339 namespace ros
00340 {
00341 namespace message_traits
00342 {
00343 template<class ContainerAllocator> struct IsMessage< ::worldmodel_msgs::GetObjectModelResponse_<ContainerAllocator> > : public TrueType {};
00344 template<class ContainerAllocator> struct IsMessage< ::worldmodel_msgs::GetObjectModelResponse_<ContainerAllocator> const> : public TrueType {};
00345 template<class ContainerAllocator>
00346 struct MD5Sum< ::worldmodel_msgs::GetObjectModelResponse_<ContainerAllocator> > {
00347 static const char* value()
00348 {
00349 return "7db65d70fef30d6f864880ed7f1d35c9";
00350 }
00351
00352 static const char* value(const ::worldmodel_msgs::GetObjectModelResponse_<ContainerAllocator> &) { return value(); }
00353 static const uint64_t static_value1 = 0x7db65d70fef30d6fULL;
00354 static const uint64_t static_value2 = 0x864880ed7f1d35c9ULL;
00355 };
00356
00357 template<class ContainerAllocator>
00358 struct DataType< ::worldmodel_msgs::GetObjectModelResponse_<ContainerAllocator> > {
00359 static const char* value()
00360 {
00361 return "worldmodel_msgs/GetObjectModelResponse";
00362 }
00363
00364 static const char* value(const ::worldmodel_msgs::GetObjectModelResponse_<ContainerAllocator> &) { return value(); }
00365 };
00366
00367 template<class ContainerAllocator>
00368 struct Definition< ::worldmodel_msgs::GetObjectModelResponse_<ContainerAllocator> > {
00369 static const char* value()
00370 {
00371 return "ObjectModel model\n\
00372 \n\
00373 \n\
00374 ================================================================================\n\
00375 MSG: worldmodel_msgs/ObjectModel\n\
00376 # This message represents a collection of known objects.\n\
00377 worldmodel_msgs/Object[] objects\n\
00378 \n\
00379 ================================================================================\n\
00380 MSG: worldmodel_msgs/Object\n\
00381 # This message represents an estimate of an object's pose and identity.\n\
00382 \n\
00383 # The header.\n\
00384 # stamp: Timestamp of last update.\n\
00385 # frame_id: Coordinate frame, in which the pose is given\n\
00386 Header header\n\
00387 \n\
00388 # The pose\n\
00389 geometry_msgs/PoseWithCovariance pose\n\
00390 \n\
00391 # Further information about the object\n\
00392 ObjectInfo info\n\
00393 \n\
00394 # The tracked state of the object\n\
00395 ObjectState state\n\
00396 \n\
00397 ================================================================================\n\
00398 MSG: std_msgs/Header\n\
00399 # Standard metadata for higher-level stamped data types.\n\
00400 # This is generally used to communicate timestamped data \n\
00401 # in a particular coordinate frame.\n\
00402 # \n\
00403 # sequence ID: consecutively increasing ID \n\
00404 uint32 seq\n\
00405 #Two-integer timestamp that is expressed as:\n\
00406 # * stamp.secs: seconds (stamp_secs) since epoch\n\
00407 # * stamp.nsecs: nanoseconds since stamp_secs\n\
00408 # time-handling sugar is provided by the client library\n\
00409 time stamp\n\
00410 #Frame this data is associated with\n\
00411 # 0: no frame\n\
00412 # 1: global frame\n\
00413 string frame_id\n\
00414 \n\
00415 ================================================================================\n\
00416 MSG: geometry_msgs/PoseWithCovariance\n\
00417 # This represents a pose in free space with uncertainty.\n\
00418 \n\
00419 Pose pose\n\
00420 \n\
00421 # Row-major representation of the 6x6 covariance matrix\n\
00422 # The orientation parameters use a fixed-axis representation.\n\
00423 # In order, the parameters are:\n\
00424 # (x, y, z, rotation about X axis, rotation about Y axis, rotation about Z axis)\n\
00425 float64[36] covariance\n\
00426 \n\
00427 ================================================================================\n\
00428 MSG: geometry_msgs/Pose\n\
00429 # A representation of pose in free space, composed of postion and orientation. \n\
00430 Point position\n\
00431 Quaternion orientation\n\
00432 \n\
00433 ================================================================================\n\
00434 MSG: geometry_msgs/Point\n\
00435 # This contains the position of a point in free space\n\
00436 float64 x\n\
00437 float64 y\n\
00438 float64 z\n\
00439 \n\
00440 ================================================================================\n\
00441 MSG: geometry_msgs/Quaternion\n\
00442 # This represents an orientation in free space in quaternion form.\n\
00443 \n\
00444 float64 x\n\
00445 float64 y\n\
00446 float64 z\n\
00447 float64 w\n\
00448 \n\
00449 ================================================================================\n\
00450 MSG: worldmodel_msgs/ObjectInfo\n\
00451 # This message contains information about the estimated class affiliation, object id and corresponding support\n\
00452 \n\
00453 # A string identifying the object's class (all objects of a class look the same)\n\
00454 string class_id\n\
00455 \n\
00456 # A string identifying the specific object\n\
00457 string object_id\n\
00458 \n\
00459 # A string that contains the name or a description of the specific object\n\
00460 string name\n\
00461 \n\
00462 # The support (degree of belief) of the object's presence given as log odd ratio\n\
00463 float32 support\n\
00464 \n\
00465 \n\
00466 ================================================================================\n\
00467 MSG: worldmodel_msgs/ObjectState\n\
00468 # The state of an object estimate used to track\n\
00469 # states smaller than 0 disable all updates\n\
00470 \n\
00471 int8 UNKNOWN = 0\n\
00472 int8 PENDING = 1\n\
00473 int8 ACTIVE = 2\n\
00474 int8 CONFIRMED = -1\n\
00475 int8 DISCARDED = -2\n\
00476 int8 APPROACHING = -3\n\
00477 \n\
00478 int8 state\n\
00479 \n\
00480 ";
00481 }
00482
00483 static const char* value(const ::worldmodel_msgs::GetObjectModelResponse_<ContainerAllocator> &) { return value(); }
00484 };
00485
00486 }
00487 }
00488
00489 namespace ros
00490 {
00491 namespace serialization
00492 {
00493
00494 template<class ContainerAllocator> struct Serializer< ::worldmodel_msgs::GetObjectModelRequest_<ContainerAllocator> >
00495 {
00496 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00497 {
00498 }
00499
00500 ROS_DECLARE_ALLINONE_SERIALIZER;
00501 };
00502 }
00503 }
00504
00505
00506 namespace ros
00507 {
00508 namespace serialization
00509 {
00510
00511 template<class ContainerAllocator> struct Serializer< ::worldmodel_msgs::GetObjectModelResponse_<ContainerAllocator> >
00512 {
00513 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00514 {
00515 stream.next(m.model);
00516 }
00517
00518 ROS_DECLARE_ALLINONE_SERIALIZER;
00519 };
00520 }
00521 }
00522
00523 namespace ros
00524 {
00525 namespace service_traits
00526 {
00527 template<>
00528 struct MD5Sum<worldmodel_msgs::GetObjectModel> {
00529 static const char* value()
00530 {
00531 return "7db65d70fef30d6f864880ed7f1d35c9";
00532 }
00533
00534 static const char* value(const worldmodel_msgs::GetObjectModel&) { return value(); }
00535 };
00536
00537 template<>
00538 struct DataType<worldmodel_msgs::GetObjectModel> {
00539 static const char* value()
00540 {
00541 return "worldmodel_msgs/GetObjectModel";
00542 }
00543
00544 static const char* value(const worldmodel_msgs::GetObjectModel&) { return value(); }
00545 };
00546
00547 template<class ContainerAllocator>
00548 struct MD5Sum<worldmodel_msgs::GetObjectModelRequest_<ContainerAllocator> > {
00549 static const char* value()
00550 {
00551 return "7db65d70fef30d6f864880ed7f1d35c9";
00552 }
00553
00554 static const char* value(const worldmodel_msgs::GetObjectModelRequest_<ContainerAllocator> &) { return value(); }
00555 };
00556
00557 template<class ContainerAllocator>
00558 struct DataType<worldmodel_msgs::GetObjectModelRequest_<ContainerAllocator> > {
00559 static const char* value()
00560 {
00561 return "worldmodel_msgs/GetObjectModel";
00562 }
00563
00564 static const char* value(const worldmodel_msgs::GetObjectModelRequest_<ContainerAllocator> &) { return value(); }
00565 };
00566
00567 template<class ContainerAllocator>
00568 struct MD5Sum<worldmodel_msgs::GetObjectModelResponse_<ContainerAllocator> > {
00569 static const char* value()
00570 {
00571 return "7db65d70fef30d6f864880ed7f1d35c9";
00572 }
00573
00574 static const char* value(const worldmodel_msgs::GetObjectModelResponse_<ContainerAllocator> &) { return value(); }
00575 };
00576
00577 template<class ContainerAllocator>
00578 struct DataType<worldmodel_msgs::GetObjectModelResponse_<ContainerAllocator> > {
00579 static const char* value()
00580 {
00581 return "worldmodel_msgs/GetObjectModel";
00582 }
00583
00584 static const char* value(const worldmodel_msgs::GetObjectModelResponse_<ContainerAllocator> &) { return value(); }
00585 };
00586
00587 }
00588 }
00589
00590 #endif // WORLDMODEL_MSGS_SERVICE_GETOBJECTMODEL_H
00591