Go to the documentation of this file.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 <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 typedef boost::shared_ptr< ::vision_srvs::cop_callRequest_<ContainerAllocator> > Ptr;
00077 typedef boost::shared_ptr< ::vision_srvs::cop_callRequest_<ContainerAllocator> const> ConstPtr;
00078 boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00079 };
00080 typedef ::vision_srvs::cop_callRequest_<std::allocator<void> > cop_callRequest;
00081
00082 typedef boost::shared_ptr< ::vision_srvs::cop_callRequest> cop_callRequestPtr;
00083 typedef boost::shared_ptr< ::vision_srvs::cop_callRequest const> cop_callRequestConstPtr;
00084
00085
00086
00087 template <class ContainerAllocator>
00088 struct cop_callResponse_ {
00089 typedef cop_callResponse_<ContainerAllocator> Type;
00090
00091 cop_callResponse_()
00092 : perception_primitive(0)
00093 {
00094 }
00095
00096 cop_callResponse_(const ContainerAllocator& _alloc)
00097 : perception_primitive(0)
00098 {
00099 }
00100
00101 typedef uint64_t _perception_primitive_type;
00102 uint64_t perception_primitive;
00103
00104
00105 typedef boost::shared_ptr< ::vision_srvs::cop_callResponse_<ContainerAllocator> > Ptr;
00106 typedef boost::shared_ptr< ::vision_srvs::cop_callResponse_<ContainerAllocator> const> ConstPtr;
00107 boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00108 };
00109 typedef ::vision_srvs::cop_callResponse_<std::allocator<void> > cop_callResponse;
00110
00111 typedef boost::shared_ptr< ::vision_srvs::cop_callResponse> cop_callResponsePtr;
00112 typedef boost::shared_ptr< ::vision_srvs::cop_callResponse const> cop_callResponseConstPtr;
00113
00114
00115 struct cop_call
00116 {
00117
00118 typedef cop_callRequest Request;
00119 typedef cop_callResponse Response;
00120 Request request;
00121 Response response;
00122
00123 typedef Request RequestType;
00124 typedef Response ResponseType;
00125 };
00126 }
00127
00128 namespace ros
00129 {
00130 namespace message_traits
00131 {
00132 template<class ContainerAllocator> struct IsMessage< ::vision_srvs::cop_callRequest_<ContainerAllocator> > : public TrueType {};
00133 template<class ContainerAllocator> struct IsMessage< ::vision_srvs::cop_callRequest_<ContainerAllocator> const> : public TrueType {};
00134 template<class ContainerAllocator>
00135 struct MD5Sum< ::vision_srvs::cop_callRequest_<ContainerAllocator> > {
00136 static const char* value()
00137 {
00138 return "8159879f6a0c16d501638a9c44ad2860";
00139 }
00140
00141 static const char* value(const ::vision_srvs::cop_callRequest_<ContainerAllocator> &) { return value(); }
00142 static const uint64_t static_value1 = 0x8159879f6a0c16d5ULL;
00143 static const uint64_t static_value2 = 0x01638a9c44ad2860ULL;
00144 };
00145
00146 template<class ContainerAllocator>
00147 struct DataType< ::vision_srvs::cop_callRequest_<ContainerAllocator> > {
00148 static const char* value()
00149 {
00150 return "vision_srvs/cop_callRequest";
00151 }
00152
00153 static const char* value(const ::vision_srvs::cop_callRequest_<ContainerAllocator> &) { return value(); }
00154 };
00155
00156 template<class ContainerAllocator>
00157 struct Definition< ::vision_srvs::cop_callRequest_<ContainerAllocator> > {
00158 static const char* value()
00159 {
00160 return "\n\
00161 \n\
00162 uint64 LOCATE = 0\n\
00163 uint64 TRACK = 16\n\
00164 uint64 REFINE = 256\n\
00165 uint64 STOPTRACK = 2048\n\
00166 uint64 STARTATTENT = 4096\n\
00167 uint64 STOPATTENT = 8192\n\
00168 uint64 LOOKUP = 25600\n\
00169 uint64 LOOKUPALL = 25601\n\
00170 \n\
00171 string outputtopic\n\
00172 string[] object_classes\n\
00173 uint64[] object_ids\n\
00174 uint64 action_type\n\
00175 uint64 number_of_objects\n\
00176 vision_msgs/apriori_position[] list_of_poses\n\
00177 \n\
00178 ================================================================================\n\
00179 MSG: vision_msgs/apriori_position\n\
00180 #Tuple for cop call\n\
00181 float64 probability # apriori probability of the position\n\
00182 uint64 positionId # lo id of an position\n\
00183 \n\
00184 ";
00185 }
00186
00187 static const char* value(const ::vision_srvs::cop_callRequest_<ContainerAllocator> &) { return value(); }
00188 };
00189
00190 }
00191 }
00192
00193
00194 namespace ros
00195 {
00196 namespace message_traits
00197 {
00198 template<class ContainerAllocator> struct IsMessage< ::vision_srvs::cop_callResponse_<ContainerAllocator> > : public TrueType {};
00199 template<class ContainerAllocator> struct IsMessage< ::vision_srvs::cop_callResponse_<ContainerAllocator> const> : public TrueType {};
00200 template<class ContainerAllocator>
00201 struct MD5Sum< ::vision_srvs::cop_callResponse_<ContainerAllocator> > {
00202 static const char* value()
00203 {
00204 return "44338ff3890880904a6cc02046a2df09";
00205 }
00206
00207 static const char* value(const ::vision_srvs::cop_callResponse_<ContainerAllocator> &) { return value(); }
00208 static const uint64_t static_value1 = 0x44338ff389088090ULL;
00209 static const uint64_t static_value2 = 0x4a6cc02046a2df09ULL;
00210 };
00211
00212 template<class ContainerAllocator>
00213 struct DataType< ::vision_srvs::cop_callResponse_<ContainerAllocator> > {
00214 static const char* value()
00215 {
00216 return "vision_srvs/cop_callResponse";
00217 }
00218
00219 static const char* value(const ::vision_srvs::cop_callResponse_<ContainerAllocator> &) { return value(); }
00220 };
00221
00222 template<class ContainerAllocator>
00223 struct Definition< ::vision_srvs::cop_callResponse_<ContainerAllocator> > {
00224 static const char* value()
00225 {
00226 return "uint64 perception_primitive\n\
00227 \n\
00228 ";
00229 }
00230
00231 static const char* value(const ::vision_srvs::cop_callResponse_<ContainerAllocator> &) { return value(); }
00232 };
00233
00234 template<class ContainerAllocator> struct IsFixedSize< ::vision_srvs::cop_callResponse_<ContainerAllocator> > : public TrueType {};
00235 }
00236 }
00237
00238 namespace ros
00239 {
00240 namespace serialization
00241 {
00242
00243 template<class ContainerAllocator> struct Serializer< ::vision_srvs::cop_callRequest_<ContainerAllocator> >
00244 {
00245 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00246 {
00247 stream.next(m.outputtopic);
00248 stream.next(m.object_classes);
00249 stream.next(m.object_ids);
00250 stream.next(m.action_type);
00251 stream.next(m.number_of_objects);
00252 stream.next(m.list_of_poses);
00253 }
00254
00255 ROS_DECLARE_ALLINONE_SERIALIZER;
00256 };
00257 }
00258 }
00259
00260
00261 namespace ros
00262 {
00263 namespace serialization
00264 {
00265
00266 template<class ContainerAllocator> struct Serializer< ::vision_srvs::cop_callResponse_<ContainerAllocator> >
00267 {
00268 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00269 {
00270 stream.next(m.perception_primitive);
00271 }
00272
00273 ROS_DECLARE_ALLINONE_SERIALIZER;
00274 };
00275 }
00276 }
00277
00278 namespace ros
00279 {
00280 namespace service_traits
00281 {
00282 template<>
00283 struct MD5Sum<vision_srvs::cop_call> {
00284 static const char* value()
00285 {
00286 return "df853a883b53431ef52c184e4ff2b0b3";
00287 }
00288
00289 static const char* value(const vision_srvs::cop_call&) { return value(); }
00290 };
00291
00292 template<>
00293 struct DataType<vision_srvs::cop_call> {
00294 static const char* value()
00295 {
00296 return "vision_srvs/cop_call";
00297 }
00298
00299 static const char* value(const vision_srvs::cop_call&) { return value(); }
00300 };
00301
00302 template<class ContainerAllocator>
00303 struct MD5Sum<vision_srvs::cop_callRequest_<ContainerAllocator> > {
00304 static const char* value()
00305 {
00306 return "df853a883b53431ef52c184e4ff2b0b3";
00307 }
00308
00309 static const char* value(const vision_srvs::cop_callRequest_<ContainerAllocator> &) { return value(); }
00310 };
00311
00312 template<class ContainerAllocator>
00313 struct DataType<vision_srvs::cop_callRequest_<ContainerAllocator> > {
00314 static const char* value()
00315 {
00316 return "vision_srvs/cop_call";
00317 }
00318
00319 static const char* value(const vision_srvs::cop_callRequest_<ContainerAllocator> &) { return value(); }
00320 };
00321
00322 template<class ContainerAllocator>
00323 struct MD5Sum<vision_srvs::cop_callResponse_<ContainerAllocator> > {
00324 static const char* value()
00325 {
00326 return "df853a883b53431ef52c184e4ff2b0b3";
00327 }
00328
00329 static const char* value(const vision_srvs::cop_callResponse_<ContainerAllocator> &) { return value(); }
00330 };
00331
00332 template<class ContainerAllocator>
00333 struct DataType<vision_srvs::cop_callResponse_<ContainerAllocator> > {
00334 static const char* value()
00335 {
00336 return "vision_srvs/cop_call";
00337 }
00338
00339 static const char* value(const vision_srvs::cop_callResponse_<ContainerAllocator> &) { return value(); }
00340 };
00341
00342 }
00343 }
00344
00345 #endif // VISION_SRVS_SERVICE_COP_CALL_H
00346