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