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