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