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