$search
00001 /* Auto-generated by genmsg_cpp for file /home/rosbuild/hudson/workspace/doc-electric-ias_common/doc_stacks/2013-03-01_15-41-55.252100/ias_common/vision_srvs/srv/cop_call.srv */ 00002 #ifndef VISION_SRVS_SERVICE_COP_CALL_H 00003 #define VISION_SRVS_SERVICE_COP_CALL_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 "vision_msgs/apriori_position.h" 00020 00021 00022 00023 namespace vision_srvs 00024 { 00025 template <class ContainerAllocator> 00026 struct cop_callRequest_ { 00027 typedef cop_callRequest_<ContainerAllocator> Type; 00028 00029 cop_callRequest_() 00030 : outputtopic() 00031 , object_classes() 00032 , object_ids() 00033 , action_type(0) 00034 , number_of_objects(0) 00035 , list_of_poses() 00036 { 00037 } 00038 00039 cop_callRequest_(const ContainerAllocator& _alloc) 00040 : outputtopic(_alloc) 00041 , object_classes(_alloc) 00042 , object_ids(_alloc) 00043 , action_type(0) 00044 , number_of_objects(0) 00045 , list_of_poses(_alloc) 00046 { 00047 } 00048 00049 typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _outputtopic_type; 00050 std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > outputtopic; 00051 00052 typedef std::vector<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > , typename ContainerAllocator::template rebind<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::other > _object_classes_type; 00053 std::vector<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > , typename ContainerAllocator::template rebind<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::other > object_classes; 00054 00055 typedef std::vector<uint64_t, typename ContainerAllocator::template rebind<uint64_t>::other > _object_ids_type; 00056 std::vector<uint64_t, typename ContainerAllocator::template rebind<uint64_t>::other > object_ids; 00057 00058 typedef uint64_t _action_type_type; 00059 uint64_t action_type; 00060 00061 typedef uint64_t _number_of_objects_type; 00062 uint64_t number_of_objects; 00063 00064 typedef std::vector< ::vision_msgs::apriori_position_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::vision_msgs::apriori_position_<ContainerAllocator> >::other > _list_of_poses_type; 00065 std::vector< ::vision_msgs::apriori_position_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::vision_msgs::apriori_position_<ContainerAllocator> >::other > list_of_poses; 00066 00067 enum { LOCATE = 0 }; 00068 enum { TRACK = 16 }; 00069 enum { REFINE = 256 }; 00070 enum { STOPTRACK = 2048 }; 00071 enum { STARTATTENT = 4096 }; 00072 enum { STOPATTENT = 8192 }; 00073 enum { LOOKUP = 25600 }; 00074 enum { LOOKUPALL = 25601 }; 00075 00076 ROS_DEPRECATED uint32_t get_object_classes_size() const { return (uint32_t)object_classes.size(); } 00077 ROS_DEPRECATED void set_object_classes_size(uint32_t size) { object_classes.resize((size_t)size); } 00078 ROS_DEPRECATED void get_object_classes_vec(std::vector<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > , typename ContainerAllocator::template rebind<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::other > & vec) const { vec = this->object_classes; } 00079 ROS_DEPRECATED void set_object_classes_vec(const std::vector<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > , typename ContainerAllocator::template rebind<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::other > & vec) { this->object_classes = vec; } 00080 ROS_DEPRECATED uint32_t get_object_ids_size() const { return (uint32_t)object_ids.size(); } 00081 ROS_DEPRECATED void set_object_ids_size(uint32_t size) { object_ids.resize((size_t)size); } 00082 ROS_DEPRECATED void get_object_ids_vec(std::vector<uint64_t, typename ContainerAllocator::template rebind<uint64_t>::other > & vec) const { vec = this->object_ids; } 00083 ROS_DEPRECATED void set_object_ids_vec(const std::vector<uint64_t, typename ContainerAllocator::template rebind<uint64_t>::other > & vec) { this->object_ids = vec; } 00084 ROS_DEPRECATED uint32_t get_list_of_poses_size() const { return (uint32_t)list_of_poses.size(); } 00085 ROS_DEPRECATED void set_list_of_poses_size(uint32_t size) { list_of_poses.resize((size_t)size); } 00086 ROS_DEPRECATED void get_list_of_poses_vec(std::vector< ::vision_msgs::apriori_position_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::vision_msgs::apriori_position_<ContainerAllocator> >::other > & vec) const { vec = this->list_of_poses; } 00087 ROS_DEPRECATED void set_list_of_poses_vec(const std::vector< ::vision_msgs::apriori_position_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::vision_msgs::apriori_position_<ContainerAllocator> >::other > & vec) { this->list_of_poses = vec; } 00088 private: 00089 static const char* __s_getDataType_() { return "vision_srvs/cop_callRequest"; } 00090 public: 00091 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00092 00093 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00094 00095 private: 00096 static const char* __s_getMD5Sum_() { return "8159879f6a0c16d501638a9c44ad2860"; } 00097 public: 00098 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00099 00100 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00101 00102 private: 00103 static const char* __s_getServerMD5Sum_() { return "df853a883b53431ef52c184e4ff2b0b3"; } 00104 public: 00105 ROS_DEPRECATED static const std::string __s_getServerMD5Sum() { return __s_getServerMD5Sum_(); } 00106 00107 ROS_DEPRECATED const std::string __getServerMD5Sum() const { return __s_getServerMD5Sum_(); } 00108 00109 private: 00110 static const char* __s_getMessageDefinition_() { return "\n\ 00111 \n\ 00112 uint64 LOCATE = 0\n\ 00113 uint64 TRACK = 16\n\ 00114 uint64 REFINE = 256\n\ 00115 uint64 STOPTRACK = 2048\n\ 00116 uint64 STARTATTENT = 4096\n\ 00117 uint64 STOPATTENT = 8192\n\ 00118 uint64 LOOKUP = 25600\n\ 00119 uint64 LOOKUPALL = 25601\n\ 00120 \n\ 00121 string outputtopic\n\ 00122 string[] object_classes\n\ 00123 uint64[] object_ids\n\ 00124 uint64 action_type\n\ 00125 uint64 number_of_objects\n\ 00126 vision_msgs/apriori_position[] list_of_poses\n\ 00127 \n\ 00128 ================================================================================\n\ 00129 MSG: vision_msgs/apriori_position\n\ 00130 #Tuple for cop call\n\ 00131 float64 probability # apriori probability of the position\n\ 00132 uint64 positionId # lo id of an position\n\ 00133 \n\ 00134 "; } 00135 public: 00136 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00137 00138 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00139 00140 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00141 { 00142 ros::serialization::OStream stream(write_ptr, 1000000000); 00143 ros::serialization::serialize(stream, outputtopic); 00144 ros::serialization::serialize(stream, object_classes); 00145 ros::serialization::serialize(stream, object_ids); 00146 ros::serialization::serialize(stream, action_type); 00147 ros::serialization::serialize(stream, number_of_objects); 00148 ros::serialization::serialize(stream, list_of_poses); 00149 return stream.getData(); 00150 } 00151 00152 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00153 { 00154 ros::serialization::IStream stream(read_ptr, 1000000000); 00155 ros::serialization::deserialize(stream, outputtopic); 00156 ros::serialization::deserialize(stream, object_classes); 00157 ros::serialization::deserialize(stream, object_ids); 00158 ros::serialization::deserialize(stream, action_type); 00159 ros::serialization::deserialize(stream, number_of_objects); 00160 ros::serialization::deserialize(stream, list_of_poses); 00161 return stream.getData(); 00162 } 00163 00164 ROS_DEPRECATED virtual uint32_t serializationLength() const 00165 { 00166 uint32_t size = 0; 00167 size += ros::serialization::serializationLength(outputtopic); 00168 size += ros::serialization::serializationLength(object_classes); 00169 size += ros::serialization::serializationLength(object_ids); 00170 size += ros::serialization::serializationLength(action_type); 00171 size += ros::serialization::serializationLength(number_of_objects); 00172 size += ros::serialization::serializationLength(list_of_poses); 00173 return size; 00174 } 00175 00176 typedef boost::shared_ptr< ::vision_srvs::cop_callRequest_<ContainerAllocator> > Ptr; 00177 typedef boost::shared_ptr< ::vision_srvs::cop_callRequest_<ContainerAllocator> const> ConstPtr; 00178 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00179 }; // struct cop_callRequest 00180 typedef ::vision_srvs::cop_callRequest_<std::allocator<void> > cop_callRequest; 00181 00182 typedef boost::shared_ptr< ::vision_srvs::cop_callRequest> cop_callRequestPtr; 00183 typedef boost::shared_ptr< ::vision_srvs::cop_callRequest const> cop_callRequestConstPtr; 00184 00185 00186 template <class ContainerAllocator> 00187 struct cop_callResponse_ { 00188 typedef cop_callResponse_<ContainerAllocator> Type; 00189 00190 cop_callResponse_() 00191 : perception_primitive(0) 00192 { 00193 } 00194 00195 cop_callResponse_(const ContainerAllocator& _alloc) 00196 : perception_primitive(0) 00197 { 00198 } 00199 00200 typedef uint64_t _perception_primitive_type; 00201 uint64_t perception_primitive; 00202 00203 00204 private: 00205 static const char* __s_getDataType_() { return "vision_srvs/cop_callResponse"; } 00206 public: 00207 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00208 00209 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00210 00211 private: 00212 static const char* __s_getMD5Sum_() { return "44338ff3890880904a6cc02046a2df09"; } 00213 public: 00214 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00215 00216 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00217 00218 private: 00219 static const char* __s_getServerMD5Sum_() { return "df853a883b53431ef52c184e4ff2b0b3"; } 00220 public: 00221 ROS_DEPRECATED static const std::string __s_getServerMD5Sum() { return __s_getServerMD5Sum_(); } 00222 00223 ROS_DEPRECATED const std::string __getServerMD5Sum() const { return __s_getServerMD5Sum_(); } 00224 00225 private: 00226 static const char* __s_getMessageDefinition_() { return "uint64 perception_primitive\n\ 00227 \n\ 00228 "; } 00229 public: 00230 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00231 00232 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00233 00234 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00235 { 00236 ros::serialization::OStream stream(write_ptr, 1000000000); 00237 ros::serialization::serialize(stream, perception_primitive); 00238 return stream.getData(); 00239 } 00240 00241 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00242 { 00243 ros::serialization::IStream stream(read_ptr, 1000000000); 00244 ros::serialization::deserialize(stream, perception_primitive); 00245 return stream.getData(); 00246 } 00247 00248 ROS_DEPRECATED virtual uint32_t serializationLength() const 00249 { 00250 uint32_t size = 0; 00251 size += ros::serialization::serializationLength(perception_primitive); 00252 return size; 00253 } 00254 00255 typedef boost::shared_ptr< ::vision_srvs::cop_callResponse_<ContainerAllocator> > Ptr; 00256 typedef boost::shared_ptr< ::vision_srvs::cop_callResponse_<ContainerAllocator> const> ConstPtr; 00257 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00258 }; // struct cop_callResponse 00259 typedef ::vision_srvs::cop_callResponse_<std::allocator<void> > cop_callResponse; 00260 00261 typedef boost::shared_ptr< ::vision_srvs::cop_callResponse> cop_callResponsePtr; 00262 typedef boost::shared_ptr< ::vision_srvs::cop_callResponse const> cop_callResponseConstPtr; 00263 00264 struct cop_call 00265 { 00266 00267 typedef cop_callRequest Request; 00268 typedef cop_callResponse Response; 00269 Request request; 00270 Response response; 00271 00272 typedef Request RequestType; 00273 typedef Response ResponseType; 00274 }; // struct cop_call 00275 } // namespace vision_srvs 00276 00277 namespace ros 00278 { 00279 namespace message_traits 00280 { 00281 template<class ContainerAllocator> struct IsMessage< ::vision_srvs::cop_callRequest_<ContainerAllocator> > : public TrueType {}; 00282 template<class ContainerAllocator> struct IsMessage< ::vision_srvs::cop_callRequest_<ContainerAllocator> const> : public TrueType {}; 00283 template<class ContainerAllocator> 00284 struct MD5Sum< ::vision_srvs::cop_callRequest_<ContainerAllocator> > { 00285 static const char* value() 00286 { 00287 return "8159879f6a0c16d501638a9c44ad2860"; 00288 } 00289 00290 static const char* value(const ::vision_srvs::cop_callRequest_<ContainerAllocator> &) { return value(); } 00291 static const uint64_t static_value1 = 0x8159879f6a0c16d5ULL; 00292 static const uint64_t static_value2 = 0x01638a9c44ad2860ULL; 00293 }; 00294 00295 template<class ContainerAllocator> 00296 struct DataType< ::vision_srvs::cop_callRequest_<ContainerAllocator> > { 00297 static const char* value() 00298 { 00299 return "vision_srvs/cop_callRequest"; 00300 } 00301 00302 static const char* value(const ::vision_srvs::cop_callRequest_<ContainerAllocator> &) { return value(); } 00303 }; 00304 00305 template<class ContainerAllocator> 00306 struct Definition< ::vision_srvs::cop_callRequest_<ContainerAllocator> > { 00307 static const char* value() 00308 { 00309 return "\n\ 00310 \n\ 00311 uint64 LOCATE = 0\n\ 00312 uint64 TRACK = 16\n\ 00313 uint64 REFINE = 256\n\ 00314 uint64 STOPTRACK = 2048\n\ 00315 uint64 STARTATTENT = 4096\n\ 00316 uint64 STOPATTENT = 8192\n\ 00317 uint64 LOOKUP = 25600\n\ 00318 uint64 LOOKUPALL = 25601\n\ 00319 \n\ 00320 string outputtopic\n\ 00321 string[] object_classes\n\ 00322 uint64[] object_ids\n\ 00323 uint64 action_type\n\ 00324 uint64 number_of_objects\n\ 00325 vision_msgs/apriori_position[] list_of_poses\n\ 00326 \n\ 00327 ================================================================================\n\ 00328 MSG: vision_msgs/apriori_position\n\ 00329 #Tuple for cop call\n\ 00330 float64 probability # apriori probability of the position\n\ 00331 uint64 positionId # lo id of an position\n\ 00332 \n\ 00333 "; 00334 } 00335 00336 static const char* value(const ::vision_srvs::cop_callRequest_<ContainerAllocator> &) { return value(); } 00337 }; 00338 00339 } // namespace message_traits 00340 } // namespace ros 00341 00342 00343 namespace ros 00344 { 00345 namespace message_traits 00346 { 00347 template<class ContainerAllocator> struct IsMessage< ::vision_srvs::cop_callResponse_<ContainerAllocator> > : public TrueType {}; 00348 template<class ContainerAllocator> struct IsMessage< ::vision_srvs::cop_callResponse_<ContainerAllocator> const> : public TrueType {}; 00349 template<class ContainerAllocator> 00350 struct MD5Sum< ::vision_srvs::cop_callResponse_<ContainerAllocator> > { 00351 static const char* value() 00352 { 00353 return "44338ff3890880904a6cc02046a2df09"; 00354 } 00355 00356 static const char* value(const ::vision_srvs::cop_callResponse_<ContainerAllocator> &) { return value(); } 00357 static const uint64_t static_value1 = 0x44338ff389088090ULL; 00358 static const uint64_t static_value2 = 0x4a6cc02046a2df09ULL; 00359 }; 00360 00361 template<class ContainerAllocator> 00362 struct DataType< ::vision_srvs::cop_callResponse_<ContainerAllocator> > { 00363 static const char* value() 00364 { 00365 return "vision_srvs/cop_callResponse"; 00366 } 00367 00368 static const char* value(const ::vision_srvs::cop_callResponse_<ContainerAllocator> &) { return value(); } 00369 }; 00370 00371 template<class ContainerAllocator> 00372 struct Definition< ::vision_srvs::cop_callResponse_<ContainerAllocator> > { 00373 static const char* value() 00374 { 00375 return "uint64 perception_primitive\n\ 00376 \n\ 00377 "; 00378 } 00379 00380 static const char* value(const ::vision_srvs::cop_callResponse_<ContainerAllocator> &) { return value(); } 00381 }; 00382 00383 template<class ContainerAllocator> struct IsFixedSize< ::vision_srvs::cop_callResponse_<ContainerAllocator> > : public TrueType {}; 00384 } // namespace message_traits 00385 } // namespace ros 00386 00387 namespace ros 00388 { 00389 namespace serialization 00390 { 00391 00392 template<class ContainerAllocator> struct Serializer< ::vision_srvs::cop_callRequest_<ContainerAllocator> > 00393 { 00394 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00395 { 00396 stream.next(m.outputtopic); 00397 stream.next(m.object_classes); 00398 stream.next(m.object_ids); 00399 stream.next(m.action_type); 00400 stream.next(m.number_of_objects); 00401 stream.next(m.list_of_poses); 00402 } 00403 00404 ROS_DECLARE_ALLINONE_SERIALIZER; 00405 }; // struct cop_callRequest_ 00406 } // namespace serialization 00407 } // namespace ros 00408 00409 00410 namespace ros 00411 { 00412 namespace serialization 00413 { 00414 00415 template<class ContainerAllocator> struct Serializer< ::vision_srvs::cop_callResponse_<ContainerAllocator> > 00416 { 00417 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00418 { 00419 stream.next(m.perception_primitive); 00420 } 00421 00422 ROS_DECLARE_ALLINONE_SERIALIZER; 00423 }; // struct cop_callResponse_ 00424 } // namespace serialization 00425 } // namespace ros 00426 00427 namespace ros 00428 { 00429 namespace service_traits 00430 { 00431 template<> 00432 struct MD5Sum<vision_srvs::cop_call> { 00433 static const char* value() 00434 { 00435 return "df853a883b53431ef52c184e4ff2b0b3"; 00436 } 00437 00438 static const char* value(const vision_srvs::cop_call&) { return value(); } 00439 }; 00440 00441 template<> 00442 struct DataType<vision_srvs::cop_call> { 00443 static const char* value() 00444 { 00445 return "vision_srvs/cop_call"; 00446 } 00447 00448 static const char* value(const vision_srvs::cop_call&) { return value(); } 00449 }; 00450 00451 template<class ContainerAllocator> 00452 struct MD5Sum<vision_srvs::cop_callRequest_<ContainerAllocator> > { 00453 static const char* value() 00454 { 00455 return "df853a883b53431ef52c184e4ff2b0b3"; 00456 } 00457 00458 static const char* value(const vision_srvs::cop_callRequest_<ContainerAllocator> &) { return value(); } 00459 }; 00460 00461 template<class ContainerAllocator> 00462 struct DataType<vision_srvs::cop_callRequest_<ContainerAllocator> > { 00463 static const char* value() 00464 { 00465 return "vision_srvs/cop_call"; 00466 } 00467 00468 static const char* value(const vision_srvs::cop_callRequest_<ContainerAllocator> &) { return value(); } 00469 }; 00470 00471 template<class ContainerAllocator> 00472 struct MD5Sum<vision_srvs::cop_callResponse_<ContainerAllocator> > { 00473 static const char* value() 00474 { 00475 return "df853a883b53431ef52c184e4ff2b0b3"; 00476 } 00477 00478 static const char* value(const vision_srvs::cop_callResponse_<ContainerAllocator> &) { return value(); } 00479 }; 00480 00481 template<class ContainerAllocator> 00482 struct DataType<vision_srvs::cop_callResponse_<ContainerAllocator> > { 00483 static const char* value() 00484 { 00485 return "vision_srvs/cop_call"; 00486 } 00487 00488 static const char* value(const vision_srvs::cop_callResponse_<ContainerAllocator> &) { return value(); } 00489 }; 00490 00491 } // namespace service_traits 00492 } // namespace ros 00493 00494 #endif // VISION_SRVS_SERVICE_COP_CALL_H 00495