$search
00001 /* Auto-generated by genmsg_cpp for file /home/rosbuild/hudson/workspace/doc-electric-srs_public/doc_stacks/2013-03-05_12-22-34.333426/srs_public/srs_assisted_detection/srv/UiAnswer.srv */ 00002 #ifndef SRS_ASSISTED_DETECTION_SERVICE_UIANSWER_H 00003 #define SRS_ASSISTED_DETECTION_SERVICE_UIANSWER_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 "std_msgs/String.h" 00020 00021 00022 #include "std_msgs/String.h" 00023 00024 namespace srs_assisted_detection 00025 { 00026 template <class ContainerAllocator> 00027 struct UiAnswerRequest_ { 00028 typedef UiAnswerRequest_<ContainerAllocator> Type; 00029 00030 UiAnswerRequest_() 00031 : good_id() 00032 , id(0) 00033 , action() 00034 { 00035 } 00036 00037 UiAnswerRequest_(const ContainerAllocator& _alloc) 00038 : good_id(_alloc) 00039 , id(0) 00040 , action(_alloc) 00041 { 00042 } 00043 00044 typedef std::vector<int32_t, typename ContainerAllocator::template rebind<int32_t>::other > _good_id_type; 00045 std::vector<int32_t, typename ContainerAllocator::template rebind<int32_t>::other > good_id; 00046 00047 typedef int32_t _id_type; 00048 int32_t id; 00049 00050 typedef ::std_msgs::String_<ContainerAllocator> _action_type; 00051 ::std_msgs::String_<ContainerAllocator> action; 00052 00053 00054 ROS_DEPRECATED uint32_t get_good_id_size() const { return (uint32_t)good_id.size(); } 00055 ROS_DEPRECATED void set_good_id_size(uint32_t size) { good_id.resize((size_t)size); } 00056 ROS_DEPRECATED void get_good_id_vec(std::vector<int32_t, typename ContainerAllocator::template rebind<int32_t>::other > & vec) const { vec = this->good_id; } 00057 ROS_DEPRECATED void set_good_id_vec(const std::vector<int32_t, typename ContainerAllocator::template rebind<int32_t>::other > & vec) { this->good_id = vec; } 00058 private: 00059 static const char* __s_getDataType_() { return "srs_assisted_detection/UiAnswerRequest"; } 00060 public: 00061 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00062 00063 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00064 00065 private: 00066 static const char* __s_getMD5Sum_() { return "cc32782ae36a86ed4f27af02786d2807"; } 00067 public: 00068 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00069 00070 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00071 00072 private: 00073 static const char* __s_getServerMD5Sum_() { return "bf97fb2e53724797e0a6a0b23a449de3"; } 00074 public: 00075 ROS_DEPRECATED static const std::string __s_getServerMD5Sum() { return __s_getServerMD5Sum_(); } 00076 00077 ROS_DEPRECATED const std::string __getServerMD5Sum() const { return __s_getServerMD5Sum_(); } 00078 00079 private: 00080 static const char* __s_getMessageDefinition_() { return "\n\ 00081 int32[] good_id\n\ 00082 \n\ 00083 int32 id\n\ 00084 \n\ 00085 std_msgs/String action\n\ 00086 \n\ 00087 ================================================================================\n\ 00088 MSG: std_msgs/String\n\ 00089 string data\n\ 00090 \n\ 00091 "; } 00092 public: 00093 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00094 00095 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00096 00097 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00098 { 00099 ros::serialization::OStream stream(write_ptr, 1000000000); 00100 ros::serialization::serialize(stream, good_id); 00101 ros::serialization::serialize(stream, id); 00102 ros::serialization::serialize(stream, action); 00103 return stream.getData(); 00104 } 00105 00106 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00107 { 00108 ros::serialization::IStream stream(read_ptr, 1000000000); 00109 ros::serialization::deserialize(stream, good_id); 00110 ros::serialization::deserialize(stream, id); 00111 ros::serialization::deserialize(stream, action); 00112 return stream.getData(); 00113 } 00114 00115 ROS_DEPRECATED virtual uint32_t serializationLength() const 00116 { 00117 uint32_t size = 0; 00118 size += ros::serialization::serializationLength(good_id); 00119 size += ros::serialization::serializationLength(id); 00120 size += ros::serialization::serializationLength(action); 00121 return size; 00122 } 00123 00124 typedef boost::shared_ptr< ::srs_assisted_detection::UiAnswerRequest_<ContainerAllocator> > Ptr; 00125 typedef boost::shared_ptr< ::srs_assisted_detection::UiAnswerRequest_<ContainerAllocator> const> ConstPtr; 00126 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00127 }; // struct UiAnswerRequest 00128 typedef ::srs_assisted_detection::UiAnswerRequest_<std::allocator<void> > UiAnswerRequest; 00129 00130 typedef boost::shared_ptr< ::srs_assisted_detection::UiAnswerRequest> UiAnswerRequestPtr; 00131 typedef boost::shared_ptr< ::srs_assisted_detection::UiAnswerRequest const> UiAnswerRequestConstPtr; 00132 00133 00134 template <class ContainerAllocator> 00135 struct UiAnswerResponse_ { 00136 typedef UiAnswerResponse_<ContainerAllocator> Type; 00137 00138 UiAnswerResponse_() 00139 : message() 00140 { 00141 } 00142 00143 UiAnswerResponse_(const ContainerAllocator& _alloc) 00144 : message(_alloc) 00145 { 00146 } 00147 00148 typedef ::std_msgs::String_<ContainerAllocator> _message_type; 00149 ::std_msgs::String_<ContainerAllocator> message; 00150 00151 00152 private: 00153 static const char* __s_getDataType_() { return "srs_assisted_detection/UiAnswerResponse"; } 00154 public: 00155 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00156 00157 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00158 00159 private: 00160 static const char* __s_getMD5Sum_() { return "d8c2dd3109bf1dc2423499244e4009cf"; } 00161 public: 00162 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00163 00164 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00165 00166 private: 00167 static const char* __s_getServerMD5Sum_() { return "bf97fb2e53724797e0a6a0b23a449de3"; } 00168 public: 00169 ROS_DEPRECATED static const std::string __s_getServerMD5Sum() { return __s_getServerMD5Sum_(); } 00170 00171 ROS_DEPRECATED const std::string __getServerMD5Sum() const { return __s_getServerMD5Sum_(); } 00172 00173 private: 00174 static const char* __s_getMessageDefinition_() { return "\n\ 00175 std_msgs/String message\n\ 00176 \n\ 00177 \n\ 00178 ================================================================================\n\ 00179 MSG: std_msgs/String\n\ 00180 string data\n\ 00181 \n\ 00182 "; } 00183 public: 00184 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00185 00186 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00187 00188 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00189 { 00190 ros::serialization::OStream stream(write_ptr, 1000000000); 00191 ros::serialization::serialize(stream, message); 00192 return stream.getData(); 00193 } 00194 00195 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00196 { 00197 ros::serialization::IStream stream(read_ptr, 1000000000); 00198 ros::serialization::deserialize(stream, message); 00199 return stream.getData(); 00200 } 00201 00202 ROS_DEPRECATED virtual uint32_t serializationLength() const 00203 { 00204 uint32_t size = 0; 00205 size += ros::serialization::serializationLength(message); 00206 return size; 00207 } 00208 00209 typedef boost::shared_ptr< ::srs_assisted_detection::UiAnswerResponse_<ContainerAllocator> > Ptr; 00210 typedef boost::shared_ptr< ::srs_assisted_detection::UiAnswerResponse_<ContainerAllocator> const> ConstPtr; 00211 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00212 }; // struct UiAnswerResponse 00213 typedef ::srs_assisted_detection::UiAnswerResponse_<std::allocator<void> > UiAnswerResponse; 00214 00215 typedef boost::shared_ptr< ::srs_assisted_detection::UiAnswerResponse> UiAnswerResponsePtr; 00216 typedef boost::shared_ptr< ::srs_assisted_detection::UiAnswerResponse const> UiAnswerResponseConstPtr; 00217 00218 struct UiAnswer 00219 { 00220 00221 typedef UiAnswerRequest Request; 00222 typedef UiAnswerResponse Response; 00223 Request request; 00224 Response response; 00225 00226 typedef Request RequestType; 00227 typedef Response ResponseType; 00228 }; // struct UiAnswer 00229 } // namespace srs_assisted_detection 00230 00231 namespace ros 00232 { 00233 namespace message_traits 00234 { 00235 template<class ContainerAllocator> struct IsMessage< ::srs_assisted_detection::UiAnswerRequest_<ContainerAllocator> > : public TrueType {}; 00236 template<class ContainerAllocator> struct IsMessage< ::srs_assisted_detection::UiAnswerRequest_<ContainerAllocator> const> : public TrueType {}; 00237 template<class ContainerAllocator> 00238 struct MD5Sum< ::srs_assisted_detection::UiAnswerRequest_<ContainerAllocator> > { 00239 static const char* value() 00240 { 00241 return "cc32782ae36a86ed4f27af02786d2807"; 00242 } 00243 00244 static const char* value(const ::srs_assisted_detection::UiAnswerRequest_<ContainerAllocator> &) { return value(); } 00245 static const uint64_t static_value1 = 0xcc32782ae36a86edULL; 00246 static const uint64_t static_value2 = 0x4f27af02786d2807ULL; 00247 }; 00248 00249 template<class ContainerAllocator> 00250 struct DataType< ::srs_assisted_detection::UiAnswerRequest_<ContainerAllocator> > { 00251 static const char* value() 00252 { 00253 return "srs_assisted_detection/UiAnswerRequest"; 00254 } 00255 00256 static const char* value(const ::srs_assisted_detection::UiAnswerRequest_<ContainerAllocator> &) { return value(); } 00257 }; 00258 00259 template<class ContainerAllocator> 00260 struct Definition< ::srs_assisted_detection::UiAnswerRequest_<ContainerAllocator> > { 00261 static const char* value() 00262 { 00263 return "\n\ 00264 int32[] good_id\n\ 00265 \n\ 00266 int32 id\n\ 00267 \n\ 00268 std_msgs/String action\n\ 00269 \n\ 00270 ================================================================================\n\ 00271 MSG: std_msgs/String\n\ 00272 string data\n\ 00273 \n\ 00274 "; 00275 } 00276 00277 static const char* value(const ::srs_assisted_detection::UiAnswerRequest_<ContainerAllocator> &) { return value(); } 00278 }; 00279 00280 } // namespace message_traits 00281 } // namespace ros 00282 00283 00284 namespace ros 00285 { 00286 namespace message_traits 00287 { 00288 template<class ContainerAllocator> struct IsMessage< ::srs_assisted_detection::UiAnswerResponse_<ContainerAllocator> > : public TrueType {}; 00289 template<class ContainerAllocator> struct IsMessage< ::srs_assisted_detection::UiAnswerResponse_<ContainerAllocator> const> : public TrueType {}; 00290 template<class ContainerAllocator> 00291 struct MD5Sum< ::srs_assisted_detection::UiAnswerResponse_<ContainerAllocator> > { 00292 static const char* value() 00293 { 00294 return "d8c2dd3109bf1dc2423499244e4009cf"; 00295 } 00296 00297 static const char* value(const ::srs_assisted_detection::UiAnswerResponse_<ContainerAllocator> &) { return value(); } 00298 static const uint64_t static_value1 = 0xd8c2dd3109bf1dc2ULL; 00299 static const uint64_t static_value2 = 0x423499244e4009cfULL; 00300 }; 00301 00302 template<class ContainerAllocator> 00303 struct DataType< ::srs_assisted_detection::UiAnswerResponse_<ContainerAllocator> > { 00304 static const char* value() 00305 { 00306 return "srs_assisted_detection/UiAnswerResponse"; 00307 } 00308 00309 static const char* value(const ::srs_assisted_detection::UiAnswerResponse_<ContainerAllocator> &) { return value(); } 00310 }; 00311 00312 template<class ContainerAllocator> 00313 struct Definition< ::srs_assisted_detection::UiAnswerResponse_<ContainerAllocator> > { 00314 static const char* value() 00315 { 00316 return "\n\ 00317 std_msgs/String message\n\ 00318 \n\ 00319 \n\ 00320 ================================================================================\n\ 00321 MSG: std_msgs/String\n\ 00322 string data\n\ 00323 \n\ 00324 "; 00325 } 00326 00327 static const char* value(const ::srs_assisted_detection::UiAnswerResponse_<ContainerAllocator> &) { return value(); } 00328 }; 00329 00330 } // namespace message_traits 00331 } // namespace ros 00332 00333 namespace ros 00334 { 00335 namespace serialization 00336 { 00337 00338 template<class ContainerAllocator> struct Serializer< ::srs_assisted_detection::UiAnswerRequest_<ContainerAllocator> > 00339 { 00340 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00341 { 00342 stream.next(m.good_id); 00343 stream.next(m.id); 00344 stream.next(m.action); 00345 } 00346 00347 ROS_DECLARE_ALLINONE_SERIALIZER; 00348 }; // struct UiAnswerRequest_ 00349 } // namespace serialization 00350 } // namespace ros 00351 00352 00353 namespace ros 00354 { 00355 namespace serialization 00356 { 00357 00358 template<class ContainerAllocator> struct Serializer< ::srs_assisted_detection::UiAnswerResponse_<ContainerAllocator> > 00359 { 00360 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00361 { 00362 stream.next(m.message); 00363 } 00364 00365 ROS_DECLARE_ALLINONE_SERIALIZER; 00366 }; // struct UiAnswerResponse_ 00367 } // namespace serialization 00368 } // namespace ros 00369 00370 namespace ros 00371 { 00372 namespace service_traits 00373 { 00374 template<> 00375 struct MD5Sum<srs_assisted_detection::UiAnswer> { 00376 static const char* value() 00377 { 00378 return "bf97fb2e53724797e0a6a0b23a449de3"; 00379 } 00380 00381 static const char* value(const srs_assisted_detection::UiAnswer&) { return value(); } 00382 }; 00383 00384 template<> 00385 struct DataType<srs_assisted_detection::UiAnswer> { 00386 static const char* value() 00387 { 00388 return "srs_assisted_detection/UiAnswer"; 00389 } 00390 00391 static const char* value(const srs_assisted_detection::UiAnswer&) { return value(); } 00392 }; 00393 00394 template<class ContainerAllocator> 00395 struct MD5Sum<srs_assisted_detection::UiAnswerRequest_<ContainerAllocator> > { 00396 static const char* value() 00397 { 00398 return "bf97fb2e53724797e0a6a0b23a449de3"; 00399 } 00400 00401 static const char* value(const srs_assisted_detection::UiAnswerRequest_<ContainerAllocator> &) { return value(); } 00402 }; 00403 00404 template<class ContainerAllocator> 00405 struct DataType<srs_assisted_detection::UiAnswerRequest_<ContainerAllocator> > { 00406 static const char* value() 00407 { 00408 return "srs_assisted_detection/UiAnswer"; 00409 } 00410 00411 static const char* value(const srs_assisted_detection::UiAnswerRequest_<ContainerAllocator> &) { return value(); } 00412 }; 00413 00414 template<class ContainerAllocator> 00415 struct MD5Sum<srs_assisted_detection::UiAnswerResponse_<ContainerAllocator> > { 00416 static const char* value() 00417 { 00418 return "bf97fb2e53724797e0a6a0b23a449de3"; 00419 } 00420 00421 static const char* value(const srs_assisted_detection::UiAnswerResponse_<ContainerAllocator> &) { return value(); } 00422 }; 00423 00424 template<class ContainerAllocator> 00425 struct DataType<srs_assisted_detection::UiAnswerResponse_<ContainerAllocator> > { 00426 static const char* value() 00427 { 00428 return "srs_assisted_detection/UiAnswer"; 00429 } 00430 00431 static const char* value(const srs_assisted_detection::UiAnswerResponse_<ContainerAllocator> &) { return value(); } 00432 }; 00433 00434 } // namespace service_traits 00435 } // namespace ros 00436 00437 #endif // SRS_ASSISTED_DETECTION_SERVICE_UIANSWER_H 00438