$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/GenerateSequence.srv */ 00002 #ifndef SRS_KNOWLEDGE_SERVICE_GENERATESEQUENCE_H 00003 #define SRS_KNOWLEDGE_SERVICE_GENERATESEQUENCE_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 "srs_knowledge/ABoxObject.h" 00020 #include "srs_knowledge/TBoxObject.h" 00021 00022 00023 #include "srs_knowledge/CUAction.h" 00024 00025 namespace srs_knowledge 00026 { 00027 template <class ContainerAllocator> 00028 struct GenerateSequenceRequest_ { 00029 typedef GenerateSequenceRequest_<ContainerAllocator> Type; 00030 00031 GenerateSequenceRequest_() 00032 : task() 00033 , objectOrClass() 00034 , aboxObject() 00035 , tboxObject() 00036 { 00037 } 00038 00039 GenerateSequenceRequest_(const ContainerAllocator& _alloc) 00040 : task(_alloc) 00041 , objectOrClass(_alloc) 00042 , aboxObject(_alloc) 00043 , tboxObject(_alloc) 00044 { 00045 } 00046 00047 typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _task_type; 00048 std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > task; 00049 00050 typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _objectOrClass_type; 00051 std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > objectOrClass; 00052 00053 typedef ::srs_knowledge::ABoxObject_<ContainerAllocator> _aboxObject_type; 00054 ::srs_knowledge::ABoxObject_<ContainerAllocator> aboxObject; 00055 00056 typedef ::srs_knowledge::TBoxObject_<ContainerAllocator> _tboxObject_type; 00057 ::srs_knowledge::TBoxObject_<ContainerAllocator> tboxObject; 00058 00059 00060 private: 00061 static const char* __s_getDataType_() { return "srs_knowledge/GenerateSequenceRequest"; } 00062 public: 00063 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00064 00065 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00066 00067 private: 00068 static const char* __s_getMD5Sum_() { return "f8b7e6eac542462f61a4f22feaa3eb4d"; } 00069 public: 00070 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00071 00072 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00073 00074 private: 00075 static const char* __s_getServerMD5Sum_() { return "57423689670151932a208b25e4d16c4f"; } 00076 public: 00077 ROS_DEPRECATED static const std::string __s_getServerMD5Sum() { return __s_getServerMD5Sum_(); } 00078 00079 ROS_DEPRECATED const std::string __getServerMD5Sum() const { return __s_getServerMD5Sum_(); } 00080 00081 private: 00082 static const char* __s_getMessageDefinition_() { return "\n\ 00083 \n\ 00084 \n\ 00085 string task\n\ 00086 \n\ 00087 \n\ 00088 string objectOrClass\n\ 00089 \n\ 00090 ABoxObject aboxObject\n\ 00091 TBoxObject tboxObject\n\ 00092 \n\ 00093 \n\ 00094 ================================================================================\n\ 00095 MSG: srs_knowledge/ABoxObject\n\ 00096 int32 object_id\n\ 00097 string name\n\ 00098 string description\n\ 00099 \n\ 00100 ================================================================================\n\ 00101 MSG: srs_knowledge/TBoxObject\n\ 00102 int32 class_id\n\ 00103 string name\n\ 00104 string description\n\ 00105 string[] properties\n\ 00106 int32[] subjects\n\ 00107 "; } 00108 public: 00109 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00110 00111 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00112 00113 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00114 { 00115 ros::serialization::OStream stream(write_ptr, 1000000000); 00116 ros::serialization::serialize(stream, task); 00117 ros::serialization::serialize(stream, objectOrClass); 00118 ros::serialization::serialize(stream, aboxObject); 00119 ros::serialization::serialize(stream, tboxObject); 00120 return stream.getData(); 00121 } 00122 00123 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00124 { 00125 ros::serialization::IStream stream(read_ptr, 1000000000); 00126 ros::serialization::deserialize(stream, task); 00127 ros::serialization::deserialize(stream, objectOrClass); 00128 ros::serialization::deserialize(stream, aboxObject); 00129 ros::serialization::deserialize(stream, tboxObject); 00130 return stream.getData(); 00131 } 00132 00133 ROS_DEPRECATED virtual uint32_t serializationLength() const 00134 { 00135 uint32_t size = 0; 00136 size += ros::serialization::serializationLength(task); 00137 size += ros::serialization::serializationLength(objectOrClass); 00138 size += ros::serialization::serializationLength(aboxObject); 00139 size += ros::serialization::serializationLength(tboxObject); 00140 return size; 00141 } 00142 00143 typedef boost::shared_ptr< ::srs_knowledge::GenerateSequenceRequest_<ContainerAllocator> > Ptr; 00144 typedef boost::shared_ptr< ::srs_knowledge::GenerateSequenceRequest_<ContainerAllocator> const> ConstPtr; 00145 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00146 }; // struct GenerateSequenceRequest 00147 typedef ::srs_knowledge::GenerateSequenceRequest_<std::allocator<void> > GenerateSequenceRequest; 00148 00149 typedef boost::shared_ptr< ::srs_knowledge::GenerateSequenceRequest> GenerateSequenceRequestPtr; 00150 typedef boost::shared_ptr< ::srs_knowledge::GenerateSequenceRequest const> GenerateSequenceRequestConstPtr; 00151 00152 00153 template <class ContainerAllocator> 00154 struct GenerateSequenceResponse_ { 00155 typedef GenerateSequenceResponse_<ContainerAllocator> Type; 00156 00157 GenerateSequenceResponse_() 00158 : actionSequence() 00159 { 00160 } 00161 00162 GenerateSequenceResponse_(const ContainerAllocator& _alloc) 00163 : actionSequence(_alloc) 00164 { 00165 } 00166 00167 typedef std::vector< ::srs_knowledge::CUAction_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::srs_knowledge::CUAction_<ContainerAllocator> >::other > _actionSequence_type; 00168 std::vector< ::srs_knowledge::CUAction_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::srs_knowledge::CUAction_<ContainerAllocator> >::other > actionSequence; 00169 00170 00171 ROS_DEPRECATED uint32_t get_actionSequence_size() const { return (uint32_t)actionSequence.size(); } 00172 ROS_DEPRECATED void set_actionSequence_size(uint32_t size) { actionSequence.resize((size_t)size); } 00173 ROS_DEPRECATED void get_actionSequence_vec(std::vector< ::srs_knowledge::CUAction_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::srs_knowledge::CUAction_<ContainerAllocator> >::other > & vec) const { vec = this->actionSequence; } 00174 ROS_DEPRECATED void set_actionSequence_vec(const std::vector< ::srs_knowledge::CUAction_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::srs_knowledge::CUAction_<ContainerAllocator> >::other > & vec) { this->actionSequence = vec; } 00175 private: 00176 static const char* __s_getDataType_() { return "srs_knowledge/GenerateSequenceResponse"; } 00177 public: 00178 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00179 00180 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00181 00182 private: 00183 static const char* __s_getMD5Sum_() { return "3ae845dd4707356c6abaa6d2a05e9ebb"; } 00184 public: 00185 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00186 00187 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00188 00189 private: 00190 static const char* __s_getServerMD5Sum_() { return "57423689670151932a208b25e4d16c4f"; } 00191 public: 00192 ROS_DEPRECATED static const std::string __s_getServerMD5Sum() { return __s_getServerMD5Sum_(); } 00193 00194 ROS_DEPRECATED const std::string __getServerMD5Sum() const { return __s_getServerMD5Sum_(); } 00195 00196 private: 00197 static const char* __s_getMessageDefinition_() { return "\n\ 00198 CUAction[] actionSequence\n\ 00199 \n\ 00200 ================================================================================\n\ 00201 MSG: srs_knowledge/CUAction\n\ 00202 # still at alpha stage. not finalised yet. \n\ 00203 \n\ 00204 # indicate if task finished successfully (1); no feasible solution (-1); continue executing the given actions in this message (0)\n\ 00205 int32 status\n\ 00206 \n\ 00207 # [ifNavigate, ifDetect, ifGrasp]. 0: yes, 1: no, 2: others (undefined)\n\ 00208 #int32[] actionFlags\n\ 00209 \n\ 00210 #MoveAction ma\n\ 00211 #PerceptionAction pa\n\ 00212 #GraspAction ga\n\ 00213 GenericAction generic\n\ 00214 \n\ 00215 # move, perception, grasp, or generic\n\ 00216 string actionType\n\ 00217 ================================================================================\n\ 00218 MSG: srs_knowledge/GenericAction\n\ 00219 # use a list as the information container of an action\n\ 00220 # BE CAREFUL WHEN USING IT. FOR FLEXIBILITY REASON OR TESTING NEW ADDED ACTION TYPE \n\ 00221 # string[] actionInfo # to deprecate\n\ 00222 string jsonActionInfo\n\ 00223 \n\ 00224 "; } 00225 public: 00226 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00227 00228 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00229 00230 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00231 { 00232 ros::serialization::OStream stream(write_ptr, 1000000000); 00233 ros::serialization::serialize(stream, actionSequence); 00234 return stream.getData(); 00235 } 00236 00237 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00238 { 00239 ros::serialization::IStream stream(read_ptr, 1000000000); 00240 ros::serialization::deserialize(stream, actionSequence); 00241 return stream.getData(); 00242 } 00243 00244 ROS_DEPRECATED virtual uint32_t serializationLength() const 00245 { 00246 uint32_t size = 0; 00247 size += ros::serialization::serializationLength(actionSequence); 00248 return size; 00249 } 00250 00251 typedef boost::shared_ptr< ::srs_knowledge::GenerateSequenceResponse_<ContainerAllocator> > Ptr; 00252 typedef boost::shared_ptr< ::srs_knowledge::GenerateSequenceResponse_<ContainerAllocator> const> ConstPtr; 00253 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00254 }; // struct GenerateSequenceResponse 00255 typedef ::srs_knowledge::GenerateSequenceResponse_<std::allocator<void> > GenerateSequenceResponse; 00256 00257 typedef boost::shared_ptr< ::srs_knowledge::GenerateSequenceResponse> GenerateSequenceResponsePtr; 00258 typedef boost::shared_ptr< ::srs_knowledge::GenerateSequenceResponse const> GenerateSequenceResponseConstPtr; 00259 00260 struct GenerateSequence 00261 { 00262 00263 typedef GenerateSequenceRequest Request; 00264 typedef GenerateSequenceResponse Response; 00265 Request request; 00266 Response response; 00267 00268 typedef Request RequestType; 00269 typedef Response ResponseType; 00270 }; // struct GenerateSequence 00271 } // namespace srs_knowledge 00272 00273 namespace ros 00274 { 00275 namespace message_traits 00276 { 00277 template<class ContainerAllocator> struct IsMessage< ::srs_knowledge::GenerateSequenceRequest_<ContainerAllocator> > : public TrueType {}; 00278 template<class ContainerAllocator> struct IsMessage< ::srs_knowledge::GenerateSequenceRequest_<ContainerAllocator> const> : public TrueType {}; 00279 template<class ContainerAllocator> 00280 struct MD5Sum< ::srs_knowledge::GenerateSequenceRequest_<ContainerAllocator> > { 00281 static const char* value() 00282 { 00283 return "f8b7e6eac542462f61a4f22feaa3eb4d"; 00284 } 00285 00286 static const char* value(const ::srs_knowledge::GenerateSequenceRequest_<ContainerAllocator> &) { return value(); } 00287 static const uint64_t static_value1 = 0xf8b7e6eac542462fULL; 00288 static const uint64_t static_value2 = 0x61a4f22feaa3eb4dULL; 00289 }; 00290 00291 template<class ContainerAllocator> 00292 struct DataType< ::srs_knowledge::GenerateSequenceRequest_<ContainerAllocator> > { 00293 static const char* value() 00294 { 00295 return "srs_knowledge/GenerateSequenceRequest"; 00296 } 00297 00298 static const char* value(const ::srs_knowledge::GenerateSequenceRequest_<ContainerAllocator> &) { return value(); } 00299 }; 00300 00301 template<class ContainerAllocator> 00302 struct Definition< ::srs_knowledge::GenerateSequenceRequest_<ContainerAllocator> > { 00303 static const char* value() 00304 { 00305 return "\n\ 00306 \n\ 00307 \n\ 00308 string task\n\ 00309 \n\ 00310 \n\ 00311 string objectOrClass\n\ 00312 \n\ 00313 ABoxObject aboxObject\n\ 00314 TBoxObject tboxObject\n\ 00315 \n\ 00316 \n\ 00317 ================================================================================\n\ 00318 MSG: srs_knowledge/ABoxObject\n\ 00319 int32 object_id\n\ 00320 string name\n\ 00321 string description\n\ 00322 \n\ 00323 ================================================================================\n\ 00324 MSG: srs_knowledge/TBoxObject\n\ 00325 int32 class_id\n\ 00326 string name\n\ 00327 string description\n\ 00328 string[] properties\n\ 00329 int32[] subjects\n\ 00330 "; 00331 } 00332 00333 static const char* value(const ::srs_knowledge::GenerateSequenceRequest_<ContainerAllocator> &) { return value(); } 00334 }; 00335 00336 } // namespace message_traits 00337 } // namespace ros 00338 00339 00340 namespace ros 00341 { 00342 namespace message_traits 00343 { 00344 template<class ContainerAllocator> struct IsMessage< ::srs_knowledge::GenerateSequenceResponse_<ContainerAllocator> > : public TrueType {}; 00345 template<class ContainerAllocator> struct IsMessage< ::srs_knowledge::GenerateSequenceResponse_<ContainerAllocator> const> : public TrueType {}; 00346 template<class ContainerAllocator> 00347 struct MD5Sum< ::srs_knowledge::GenerateSequenceResponse_<ContainerAllocator> > { 00348 static const char* value() 00349 { 00350 return "3ae845dd4707356c6abaa6d2a05e9ebb"; 00351 } 00352 00353 static const char* value(const ::srs_knowledge::GenerateSequenceResponse_<ContainerAllocator> &) { return value(); } 00354 static const uint64_t static_value1 = 0x3ae845dd4707356cULL; 00355 static const uint64_t static_value2 = 0x6abaa6d2a05e9ebbULL; 00356 }; 00357 00358 template<class ContainerAllocator> 00359 struct DataType< ::srs_knowledge::GenerateSequenceResponse_<ContainerAllocator> > { 00360 static const char* value() 00361 { 00362 return "srs_knowledge/GenerateSequenceResponse"; 00363 } 00364 00365 static const char* value(const ::srs_knowledge::GenerateSequenceResponse_<ContainerAllocator> &) { return value(); } 00366 }; 00367 00368 template<class ContainerAllocator> 00369 struct Definition< ::srs_knowledge::GenerateSequenceResponse_<ContainerAllocator> > { 00370 static const char* value() 00371 { 00372 return "\n\ 00373 CUAction[] actionSequence\n\ 00374 \n\ 00375 ================================================================================\n\ 00376 MSG: srs_knowledge/CUAction\n\ 00377 # still at alpha stage. not finalised yet. \n\ 00378 \n\ 00379 # indicate if task finished successfully (1); no feasible solution (-1); continue executing the given actions in this message (0)\n\ 00380 int32 status\n\ 00381 \n\ 00382 # [ifNavigate, ifDetect, ifGrasp]. 0: yes, 1: no, 2: others (undefined)\n\ 00383 #int32[] actionFlags\n\ 00384 \n\ 00385 #MoveAction ma\n\ 00386 #PerceptionAction pa\n\ 00387 #GraspAction ga\n\ 00388 GenericAction generic\n\ 00389 \n\ 00390 # move, perception, grasp, or generic\n\ 00391 string actionType\n\ 00392 ================================================================================\n\ 00393 MSG: srs_knowledge/GenericAction\n\ 00394 # use a list as the information container of an action\n\ 00395 # BE CAREFUL WHEN USING IT. FOR FLEXIBILITY REASON OR TESTING NEW ADDED ACTION TYPE \n\ 00396 # string[] actionInfo # to deprecate\n\ 00397 string jsonActionInfo\n\ 00398 \n\ 00399 "; 00400 } 00401 00402 static const char* value(const ::srs_knowledge::GenerateSequenceResponse_<ContainerAllocator> &) { return value(); } 00403 }; 00404 00405 } // namespace message_traits 00406 } // namespace ros 00407 00408 namespace ros 00409 { 00410 namespace serialization 00411 { 00412 00413 template<class ContainerAllocator> struct Serializer< ::srs_knowledge::GenerateSequenceRequest_<ContainerAllocator> > 00414 { 00415 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00416 { 00417 stream.next(m.task); 00418 stream.next(m.objectOrClass); 00419 stream.next(m.aboxObject); 00420 stream.next(m.tboxObject); 00421 } 00422 00423 ROS_DECLARE_ALLINONE_SERIALIZER; 00424 }; // struct GenerateSequenceRequest_ 00425 } // namespace serialization 00426 } // namespace ros 00427 00428 00429 namespace ros 00430 { 00431 namespace serialization 00432 { 00433 00434 template<class ContainerAllocator> struct Serializer< ::srs_knowledge::GenerateSequenceResponse_<ContainerAllocator> > 00435 { 00436 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00437 { 00438 stream.next(m.actionSequence); 00439 } 00440 00441 ROS_DECLARE_ALLINONE_SERIALIZER; 00442 }; // struct GenerateSequenceResponse_ 00443 } // namespace serialization 00444 } // namespace ros 00445 00446 namespace ros 00447 { 00448 namespace service_traits 00449 { 00450 template<> 00451 struct MD5Sum<srs_knowledge::GenerateSequence> { 00452 static const char* value() 00453 { 00454 return "57423689670151932a208b25e4d16c4f"; 00455 } 00456 00457 static const char* value(const srs_knowledge::GenerateSequence&) { return value(); } 00458 }; 00459 00460 template<> 00461 struct DataType<srs_knowledge::GenerateSequence> { 00462 static const char* value() 00463 { 00464 return "srs_knowledge/GenerateSequence"; 00465 } 00466 00467 static const char* value(const srs_knowledge::GenerateSequence&) { return value(); } 00468 }; 00469 00470 template<class ContainerAllocator> 00471 struct MD5Sum<srs_knowledge::GenerateSequenceRequest_<ContainerAllocator> > { 00472 static const char* value() 00473 { 00474 return "57423689670151932a208b25e4d16c4f"; 00475 } 00476 00477 static const char* value(const srs_knowledge::GenerateSequenceRequest_<ContainerAllocator> &) { return value(); } 00478 }; 00479 00480 template<class ContainerAllocator> 00481 struct DataType<srs_knowledge::GenerateSequenceRequest_<ContainerAllocator> > { 00482 static const char* value() 00483 { 00484 return "srs_knowledge/GenerateSequence"; 00485 } 00486 00487 static const char* value(const srs_knowledge::GenerateSequenceRequest_<ContainerAllocator> &) { return value(); } 00488 }; 00489 00490 template<class ContainerAllocator> 00491 struct MD5Sum<srs_knowledge::GenerateSequenceResponse_<ContainerAllocator> > { 00492 static const char* value() 00493 { 00494 return "57423689670151932a208b25e4d16c4f"; 00495 } 00496 00497 static const char* value(const srs_knowledge::GenerateSequenceResponse_<ContainerAllocator> &) { return value(); } 00498 }; 00499 00500 template<class ContainerAllocator> 00501 struct DataType<srs_knowledge::GenerateSequenceResponse_<ContainerAllocator> > { 00502 static const char* value() 00503 { 00504 return "srs_knowledge/GenerateSequence"; 00505 } 00506 00507 static const char* value(const srs_knowledge::GenerateSequenceResponse_<ContainerAllocator> &) { return value(); } 00508 }; 00509 00510 } // namespace service_traits 00511 } // namespace ros 00512 00513 #endif // SRS_KNOWLEDGE_SERVICE_GENERATESEQUENCE_H 00514