$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_knowledge/srv/TaskRequest.srv */ 00002 #ifndef SRS_KNOWLEDGE_SERVICE_TASKREQUEST_H 00003 #define SRS_KNOWLEDGE_SERVICE_TASKREQUEST_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 00020 00021 00022 namespace srs_knowledge 00023 { 00024 template <class ContainerAllocator> 00025 struct TaskRequestRequest_ { 00026 typedef TaskRequestRequest_<ContainerAllocator> Type; 00027 00028 TaskRequestRequest_() 00029 : task() 00030 , content() 00031 , json_parameters() 00032 , userPose() 00033 { 00034 } 00035 00036 TaskRequestRequest_(const ContainerAllocator& _alloc) 00037 : task(_alloc) 00038 , content(_alloc) 00039 , json_parameters(_alloc) 00040 , userPose(_alloc) 00041 { 00042 } 00043 00044 typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _task_type; 00045 std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > task; 00046 00047 typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _content_type; 00048 std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > content; 00049 00050 typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _json_parameters_type; 00051 std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > json_parameters; 00052 00053 typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _userPose_type; 00054 std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > userPose; 00055 00056 00057 private: 00058 static const char* __s_getDataType_() { return "srs_knowledge/TaskRequestRequest"; } 00059 public: 00060 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00061 00062 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00063 00064 private: 00065 static const char* __s_getMD5Sum_() { return "7e3d775419da798c607d4939563bd225"; } 00066 public: 00067 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00068 00069 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00070 00071 private: 00072 static const char* __s_getServerMD5Sum_() { return "1c55d07cc3cf6a5f7566797040a765f2"; } 00073 public: 00074 ROS_DEPRECATED static const std::string __s_getServerMD5Sum() { return __s_getServerMD5Sum_(); } 00075 00076 ROS_DEPRECATED const std::string __getServerMD5Sum() const { return __s_getServerMD5Sum_(); } 00077 00078 private: 00079 static const char* __s_getMessageDefinition_() { return "\n\ 00080 \n\ 00081 \n\ 00082 \n\ 00083 string task\n\ 00084 \n\ 00085 \n\ 00086 string content\n\ 00087 \n\ 00088 string json_parameters\n\ 00089 \n\ 00090 \n\ 00091 \n\ 00092 \n\ 00093 \n\ 00094 string userPose\n\ 00095 \n\ 00096 \n\ 00097 "; } 00098 public: 00099 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00100 00101 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00102 00103 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00104 { 00105 ros::serialization::OStream stream(write_ptr, 1000000000); 00106 ros::serialization::serialize(stream, task); 00107 ros::serialization::serialize(stream, content); 00108 ros::serialization::serialize(stream, json_parameters); 00109 ros::serialization::serialize(stream, userPose); 00110 return stream.getData(); 00111 } 00112 00113 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00114 { 00115 ros::serialization::IStream stream(read_ptr, 1000000000); 00116 ros::serialization::deserialize(stream, task); 00117 ros::serialization::deserialize(stream, content); 00118 ros::serialization::deserialize(stream, json_parameters); 00119 ros::serialization::deserialize(stream, userPose); 00120 return stream.getData(); 00121 } 00122 00123 ROS_DEPRECATED virtual uint32_t serializationLength() const 00124 { 00125 uint32_t size = 0; 00126 size += ros::serialization::serializationLength(task); 00127 size += ros::serialization::serializationLength(content); 00128 size += ros::serialization::serializationLength(json_parameters); 00129 size += ros::serialization::serializationLength(userPose); 00130 return size; 00131 } 00132 00133 typedef boost::shared_ptr< ::srs_knowledge::TaskRequestRequest_<ContainerAllocator> > Ptr; 00134 typedef boost::shared_ptr< ::srs_knowledge::TaskRequestRequest_<ContainerAllocator> const> ConstPtr; 00135 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00136 }; // struct TaskRequestRequest 00137 typedef ::srs_knowledge::TaskRequestRequest_<std::allocator<void> > TaskRequestRequest; 00138 00139 typedef boost::shared_ptr< ::srs_knowledge::TaskRequestRequest> TaskRequestRequestPtr; 00140 typedef boost::shared_ptr< ::srs_knowledge::TaskRequestRequest const> TaskRequestRequestConstPtr; 00141 00142 00143 template <class ContainerAllocator> 00144 struct TaskRequestResponse_ { 00145 typedef TaskRequestResponse_<ContainerAllocator> Type; 00146 00147 TaskRequestResponse_() 00148 : result(0) 00149 , sessionId(0) 00150 , description() 00151 { 00152 } 00153 00154 TaskRequestResponse_(const ContainerAllocator& _alloc) 00155 : result(0) 00156 , sessionId(0) 00157 , description(_alloc) 00158 { 00159 } 00160 00161 typedef int32_t _result_type; 00162 int32_t result; 00163 00164 typedef int32_t _sessionId_type; 00165 int32_t sessionId; 00166 00167 typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _description_type; 00168 std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > description; 00169 00170 00171 private: 00172 static const char* __s_getDataType_() { return "srs_knowledge/TaskRequestResponse"; } 00173 public: 00174 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00175 00176 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00177 00178 private: 00179 static const char* __s_getMD5Sum_() { return "db978a873040c67d04a65b0bd9ae7146"; } 00180 public: 00181 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00182 00183 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00184 00185 private: 00186 static const char* __s_getServerMD5Sum_() { return "1c55d07cc3cf6a5f7566797040a765f2"; } 00187 public: 00188 ROS_DEPRECATED static const std::string __s_getServerMD5Sum() { return __s_getServerMD5Sum_(); } 00189 00190 ROS_DEPRECATED const std::string __getServerMD5Sum() const { return __s_getServerMD5Sum_(); } 00191 00192 private: 00193 static const char* __s_getMessageDefinition_() { return "\n\ 00194 \n\ 00195 int32 result\n\ 00196 \n\ 00197 \n\ 00198 int32 sessionId\n\ 00199 \n\ 00200 \n\ 00201 string description\n\ 00202 \n\ 00203 \n\ 00204 "; } 00205 public: 00206 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00207 00208 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00209 00210 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00211 { 00212 ros::serialization::OStream stream(write_ptr, 1000000000); 00213 ros::serialization::serialize(stream, result); 00214 ros::serialization::serialize(stream, sessionId); 00215 ros::serialization::serialize(stream, description); 00216 return stream.getData(); 00217 } 00218 00219 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00220 { 00221 ros::serialization::IStream stream(read_ptr, 1000000000); 00222 ros::serialization::deserialize(stream, result); 00223 ros::serialization::deserialize(stream, sessionId); 00224 ros::serialization::deserialize(stream, description); 00225 return stream.getData(); 00226 } 00227 00228 ROS_DEPRECATED virtual uint32_t serializationLength() const 00229 { 00230 uint32_t size = 0; 00231 size += ros::serialization::serializationLength(result); 00232 size += ros::serialization::serializationLength(sessionId); 00233 size += ros::serialization::serializationLength(description); 00234 return size; 00235 } 00236 00237 typedef boost::shared_ptr< ::srs_knowledge::TaskRequestResponse_<ContainerAllocator> > Ptr; 00238 typedef boost::shared_ptr< ::srs_knowledge::TaskRequestResponse_<ContainerAllocator> const> ConstPtr; 00239 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00240 }; // struct TaskRequestResponse 00241 typedef ::srs_knowledge::TaskRequestResponse_<std::allocator<void> > TaskRequestResponse; 00242 00243 typedef boost::shared_ptr< ::srs_knowledge::TaskRequestResponse> TaskRequestResponsePtr; 00244 typedef boost::shared_ptr< ::srs_knowledge::TaskRequestResponse const> TaskRequestResponseConstPtr; 00245 00246 struct TaskRequest 00247 { 00248 00249 typedef TaskRequestRequest Request; 00250 typedef TaskRequestResponse Response; 00251 Request request; 00252 Response response; 00253 00254 typedef Request RequestType; 00255 typedef Response ResponseType; 00256 }; // struct TaskRequest 00257 } // namespace srs_knowledge 00258 00259 namespace ros 00260 { 00261 namespace message_traits 00262 { 00263 template<class ContainerAllocator> struct IsMessage< ::srs_knowledge::TaskRequestRequest_<ContainerAllocator> > : public TrueType {}; 00264 template<class ContainerAllocator> struct IsMessage< ::srs_knowledge::TaskRequestRequest_<ContainerAllocator> const> : public TrueType {}; 00265 template<class ContainerAllocator> 00266 struct MD5Sum< ::srs_knowledge::TaskRequestRequest_<ContainerAllocator> > { 00267 static const char* value() 00268 { 00269 return "7e3d775419da798c607d4939563bd225"; 00270 } 00271 00272 static const char* value(const ::srs_knowledge::TaskRequestRequest_<ContainerAllocator> &) { return value(); } 00273 static const uint64_t static_value1 = 0x7e3d775419da798cULL; 00274 static const uint64_t static_value2 = 0x607d4939563bd225ULL; 00275 }; 00276 00277 template<class ContainerAllocator> 00278 struct DataType< ::srs_knowledge::TaskRequestRequest_<ContainerAllocator> > { 00279 static const char* value() 00280 { 00281 return "srs_knowledge/TaskRequestRequest"; 00282 } 00283 00284 static const char* value(const ::srs_knowledge::TaskRequestRequest_<ContainerAllocator> &) { return value(); } 00285 }; 00286 00287 template<class ContainerAllocator> 00288 struct Definition< ::srs_knowledge::TaskRequestRequest_<ContainerAllocator> > { 00289 static const char* value() 00290 { 00291 return "\n\ 00292 \n\ 00293 \n\ 00294 \n\ 00295 string task\n\ 00296 \n\ 00297 \n\ 00298 string content\n\ 00299 \n\ 00300 string json_parameters\n\ 00301 \n\ 00302 \n\ 00303 \n\ 00304 \n\ 00305 \n\ 00306 string userPose\n\ 00307 \n\ 00308 \n\ 00309 "; 00310 } 00311 00312 static const char* value(const ::srs_knowledge::TaskRequestRequest_<ContainerAllocator> &) { return value(); } 00313 }; 00314 00315 } // namespace message_traits 00316 } // namespace ros 00317 00318 00319 namespace ros 00320 { 00321 namespace message_traits 00322 { 00323 template<class ContainerAllocator> struct IsMessage< ::srs_knowledge::TaskRequestResponse_<ContainerAllocator> > : public TrueType {}; 00324 template<class ContainerAllocator> struct IsMessage< ::srs_knowledge::TaskRequestResponse_<ContainerAllocator> const> : public TrueType {}; 00325 template<class ContainerAllocator> 00326 struct MD5Sum< ::srs_knowledge::TaskRequestResponse_<ContainerAllocator> > { 00327 static const char* value() 00328 { 00329 return "db978a873040c67d04a65b0bd9ae7146"; 00330 } 00331 00332 static const char* value(const ::srs_knowledge::TaskRequestResponse_<ContainerAllocator> &) { return value(); } 00333 static const uint64_t static_value1 = 0xdb978a873040c67dULL; 00334 static const uint64_t static_value2 = 0x04a65b0bd9ae7146ULL; 00335 }; 00336 00337 template<class ContainerAllocator> 00338 struct DataType< ::srs_knowledge::TaskRequestResponse_<ContainerAllocator> > { 00339 static const char* value() 00340 { 00341 return "srs_knowledge/TaskRequestResponse"; 00342 } 00343 00344 static const char* value(const ::srs_knowledge::TaskRequestResponse_<ContainerAllocator> &) { return value(); } 00345 }; 00346 00347 template<class ContainerAllocator> 00348 struct Definition< ::srs_knowledge::TaskRequestResponse_<ContainerAllocator> > { 00349 static const char* value() 00350 { 00351 return "\n\ 00352 \n\ 00353 int32 result\n\ 00354 \n\ 00355 \n\ 00356 int32 sessionId\n\ 00357 \n\ 00358 \n\ 00359 string description\n\ 00360 \n\ 00361 \n\ 00362 "; 00363 } 00364 00365 static const char* value(const ::srs_knowledge::TaskRequestResponse_<ContainerAllocator> &) { return value(); } 00366 }; 00367 00368 } // namespace message_traits 00369 } // namespace ros 00370 00371 namespace ros 00372 { 00373 namespace serialization 00374 { 00375 00376 template<class ContainerAllocator> struct Serializer< ::srs_knowledge::TaskRequestRequest_<ContainerAllocator> > 00377 { 00378 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00379 { 00380 stream.next(m.task); 00381 stream.next(m.content); 00382 stream.next(m.json_parameters); 00383 stream.next(m.userPose); 00384 } 00385 00386 ROS_DECLARE_ALLINONE_SERIALIZER; 00387 }; // struct TaskRequestRequest_ 00388 } // namespace serialization 00389 } // namespace ros 00390 00391 00392 namespace ros 00393 { 00394 namespace serialization 00395 { 00396 00397 template<class ContainerAllocator> struct Serializer< ::srs_knowledge::TaskRequestResponse_<ContainerAllocator> > 00398 { 00399 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00400 { 00401 stream.next(m.result); 00402 stream.next(m.sessionId); 00403 stream.next(m.description); 00404 } 00405 00406 ROS_DECLARE_ALLINONE_SERIALIZER; 00407 }; // struct TaskRequestResponse_ 00408 } // namespace serialization 00409 } // namespace ros 00410 00411 namespace ros 00412 { 00413 namespace service_traits 00414 { 00415 template<> 00416 struct MD5Sum<srs_knowledge::TaskRequest> { 00417 static const char* value() 00418 { 00419 return "1c55d07cc3cf6a5f7566797040a765f2"; 00420 } 00421 00422 static const char* value(const srs_knowledge::TaskRequest&) { return value(); } 00423 }; 00424 00425 template<> 00426 struct DataType<srs_knowledge::TaskRequest> { 00427 static const char* value() 00428 { 00429 return "srs_knowledge/TaskRequest"; 00430 } 00431 00432 static const char* value(const srs_knowledge::TaskRequest&) { return value(); } 00433 }; 00434 00435 template<class ContainerAllocator> 00436 struct MD5Sum<srs_knowledge::TaskRequestRequest_<ContainerAllocator> > { 00437 static const char* value() 00438 { 00439 return "1c55d07cc3cf6a5f7566797040a765f2"; 00440 } 00441 00442 static const char* value(const srs_knowledge::TaskRequestRequest_<ContainerAllocator> &) { return value(); } 00443 }; 00444 00445 template<class ContainerAllocator> 00446 struct DataType<srs_knowledge::TaskRequestRequest_<ContainerAllocator> > { 00447 static const char* value() 00448 { 00449 return "srs_knowledge/TaskRequest"; 00450 } 00451 00452 static const char* value(const srs_knowledge::TaskRequestRequest_<ContainerAllocator> &) { return value(); } 00453 }; 00454 00455 template<class ContainerAllocator> 00456 struct MD5Sum<srs_knowledge::TaskRequestResponse_<ContainerAllocator> > { 00457 static const char* value() 00458 { 00459 return "1c55d07cc3cf6a5f7566797040a765f2"; 00460 } 00461 00462 static const char* value(const srs_knowledge::TaskRequestResponse_<ContainerAllocator> &) { return value(); } 00463 }; 00464 00465 template<class ContainerAllocator> 00466 struct DataType<srs_knowledge::TaskRequestResponse_<ContainerAllocator> > { 00467 static const char* value() 00468 { 00469 return "srs_knowledge/TaskRequest"; 00470 } 00471 00472 static const char* value(const srs_knowledge::TaskRequestResponse_<ContainerAllocator> &) { return value(); } 00473 }; 00474 00475 } // namespace service_traits 00476 } // namespace ros 00477 00478 #endif // SRS_KNOWLEDGE_SERVICE_TASKREQUEST_H 00479