$search
00001 /* Auto-generated by genmsg_cpp for file /home/rosbuild/hudson/workspace/doc-electric-pr2_self_test/doc_stacks/2013-03-02_13-02-42.165655/pr2_self_test/pr2_self_test_msgs/srv/ScriptDone.srv */ 00002 #ifndef PR2_SELF_TEST_MSGS_SERVICE_SCRIPTDONE_H 00003 #define PR2_SELF_TEST_MSGS_SERVICE_SCRIPTDONE_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 pr2_self_test_msgs 00023 { 00024 template <class ContainerAllocator> 00025 struct ScriptDoneRequest_ { 00026 typedef ScriptDoneRequest_<ContainerAllocator> Type; 00027 00028 ScriptDoneRequest_() 00029 : result(0) 00030 , failure_msg() 00031 { 00032 } 00033 00034 ScriptDoneRequest_(const ContainerAllocator& _alloc) 00035 : result(0) 00036 , failure_msg(_alloc) 00037 { 00038 } 00039 00040 typedef int8_t _result_type; 00041 int8_t result; 00042 00043 typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _failure_msg_type; 00044 std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > failure_msg; 00045 00046 enum { RESULT_OK = 0 }; 00047 enum { RESULT_FAIL = 1 }; 00048 enum { RESULT_ERROR = 2 }; 00049 00050 private: 00051 static const char* __s_getDataType_() { return "pr2_self_test_msgs/ScriptDoneRequest"; } 00052 public: 00053 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00054 00055 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00056 00057 private: 00058 static const char* __s_getMD5Sum_() { return "5ba149050d1d4dafdca40945725022b3"; } 00059 public: 00060 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00061 00062 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00063 00064 private: 00065 static const char* __s_getServerMD5Sum_() { return "5ba149050d1d4dafdca40945725022b3"; } 00066 public: 00067 ROS_DEPRECATED static const std::string __s_getServerMD5Sum() { return __s_getServerMD5Sum_(); } 00068 00069 ROS_DEPRECATED const std::string __getServerMD5Sum() const { return __s_getServerMD5Sum_(); } 00070 00071 private: 00072 static const char* __s_getMessageDefinition_() { return "byte RESULT_OK = 0\n\ 00073 byte RESULT_FAIL = 1\n\ 00074 byte RESULT_ERROR = 2\n\ 00075 \n\ 00076 byte result\n\ 00077 string failure_msg\n\ 00078 \n\ 00079 "; } 00080 public: 00081 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00082 00083 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00084 00085 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00086 { 00087 ros::serialization::OStream stream(write_ptr, 1000000000); 00088 ros::serialization::serialize(stream, result); 00089 ros::serialization::serialize(stream, failure_msg); 00090 return stream.getData(); 00091 } 00092 00093 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00094 { 00095 ros::serialization::IStream stream(read_ptr, 1000000000); 00096 ros::serialization::deserialize(stream, result); 00097 ros::serialization::deserialize(stream, failure_msg); 00098 return stream.getData(); 00099 } 00100 00101 ROS_DEPRECATED virtual uint32_t serializationLength() const 00102 { 00103 uint32_t size = 0; 00104 size += ros::serialization::serializationLength(result); 00105 size += ros::serialization::serializationLength(failure_msg); 00106 return size; 00107 } 00108 00109 typedef boost::shared_ptr< ::pr2_self_test_msgs::ScriptDoneRequest_<ContainerAllocator> > Ptr; 00110 typedef boost::shared_ptr< ::pr2_self_test_msgs::ScriptDoneRequest_<ContainerAllocator> const> ConstPtr; 00111 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00112 }; // struct ScriptDoneRequest 00113 typedef ::pr2_self_test_msgs::ScriptDoneRequest_<std::allocator<void> > ScriptDoneRequest; 00114 00115 typedef boost::shared_ptr< ::pr2_self_test_msgs::ScriptDoneRequest> ScriptDoneRequestPtr; 00116 typedef boost::shared_ptr< ::pr2_self_test_msgs::ScriptDoneRequest const> ScriptDoneRequestConstPtr; 00117 00118 00119 template <class ContainerAllocator> 00120 struct ScriptDoneResponse_ { 00121 typedef ScriptDoneResponse_<ContainerAllocator> Type; 00122 00123 ScriptDoneResponse_() 00124 { 00125 } 00126 00127 ScriptDoneResponse_(const ContainerAllocator& _alloc) 00128 { 00129 } 00130 00131 00132 private: 00133 static const char* __s_getDataType_() { return "pr2_self_test_msgs/ScriptDoneResponse"; } 00134 public: 00135 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00136 00137 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00138 00139 private: 00140 static const char* __s_getMD5Sum_() { return "d41d8cd98f00b204e9800998ecf8427e"; } 00141 public: 00142 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00143 00144 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00145 00146 private: 00147 static const char* __s_getServerMD5Sum_() { return "5ba149050d1d4dafdca40945725022b3"; } 00148 public: 00149 ROS_DEPRECATED static const std::string __s_getServerMD5Sum() { return __s_getServerMD5Sum_(); } 00150 00151 ROS_DEPRECATED const std::string __getServerMD5Sum() const { return __s_getServerMD5Sum_(); } 00152 00153 private: 00154 static const char* __s_getMessageDefinition_() { return "\n\ 00155 "; } 00156 public: 00157 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00158 00159 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00160 00161 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00162 { 00163 ros::serialization::OStream stream(write_ptr, 1000000000); 00164 return stream.getData(); 00165 } 00166 00167 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00168 { 00169 ros::serialization::IStream stream(read_ptr, 1000000000); 00170 return stream.getData(); 00171 } 00172 00173 ROS_DEPRECATED virtual uint32_t serializationLength() const 00174 { 00175 uint32_t size = 0; 00176 return size; 00177 } 00178 00179 typedef boost::shared_ptr< ::pr2_self_test_msgs::ScriptDoneResponse_<ContainerAllocator> > Ptr; 00180 typedef boost::shared_ptr< ::pr2_self_test_msgs::ScriptDoneResponse_<ContainerAllocator> const> ConstPtr; 00181 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00182 }; // struct ScriptDoneResponse 00183 typedef ::pr2_self_test_msgs::ScriptDoneResponse_<std::allocator<void> > ScriptDoneResponse; 00184 00185 typedef boost::shared_ptr< ::pr2_self_test_msgs::ScriptDoneResponse> ScriptDoneResponsePtr; 00186 typedef boost::shared_ptr< ::pr2_self_test_msgs::ScriptDoneResponse const> ScriptDoneResponseConstPtr; 00187 00188 struct ScriptDone 00189 { 00190 00191 typedef ScriptDoneRequest Request; 00192 typedef ScriptDoneResponse Response; 00193 Request request; 00194 Response response; 00195 00196 typedef Request RequestType; 00197 typedef Response ResponseType; 00198 }; // struct ScriptDone 00199 } // namespace pr2_self_test_msgs 00200 00201 namespace ros 00202 { 00203 namespace message_traits 00204 { 00205 template<class ContainerAllocator> struct IsMessage< ::pr2_self_test_msgs::ScriptDoneRequest_<ContainerAllocator> > : public TrueType {}; 00206 template<class ContainerAllocator> struct IsMessage< ::pr2_self_test_msgs::ScriptDoneRequest_<ContainerAllocator> const> : public TrueType {}; 00207 template<class ContainerAllocator> 00208 struct MD5Sum< ::pr2_self_test_msgs::ScriptDoneRequest_<ContainerAllocator> > { 00209 static const char* value() 00210 { 00211 return "5ba149050d1d4dafdca40945725022b3"; 00212 } 00213 00214 static const char* value(const ::pr2_self_test_msgs::ScriptDoneRequest_<ContainerAllocator> &) { return value(); } 00215 static const uint64_t static_value1 = 0x5ba149050d1d4dafULL; 00216 static const uint64_t static_value2 = 0xdca40945725022b3ULL; 00217 }; 00218 00219 template<class ContainerAllocator> 00220 struct DataType< ::pr2_self_test_msgs::ScriptDoneRequest_<ContainerAllocator> > { 00221 static const char* value() 00222 { 00223 return "pr2_self_test_msgs/ScriptDoneRequest"; 00224 } 00225 00226 static const char* value(const ::pr2_self_test_msgs::ScriptDoneRequest_<ContainerAllocator> &) { return value(); } 00227 }; 00228 00229 template<class ContainerAllocator> 00230 struct Definition< ::pr2_self_test_msgs::ScriptDoneRequest_<ContainerAllocator> > { 00231 static const char* value() 00232 { 00233 return "byte RESULT_OK = 0\n\ 00234 byte RESULT_FAIL = 1\n\ 00235 byte RESULT_ERROR = 2\n\ 00236 \n\ 00237 byte result\n\ 00238 string failure_msg\n\ 00239 \n\ 00240 "; 00241 } 00242 00243 static const char* value(const ::pr2_self_test_msgs::ScriptDoneRequest_<ContainerAllocator> &) { return value(); } 00244 }; 00245 00246 } // namespace message_traits 00247 } // namespace ros 00248 00249 00250 namespace ros 00251 { 00252 namespace message_traits 00253 { 00254 template<class ContainerAllocator> struct IsMessage< ::pr2_self_test_msgs::ScriptDoneResponse_<ContainerAllocator> > : public TrueType {}; 00255 template<class ContainerAllocator> struct IsMessage< ::pr2_self_test_msgs::ScriptDoneResponse_<ContainerAllocator> const> : public TrueType {}; 00256 template<class ContainerAllocator> 00257 struct MD5Sum< ::pr2_self_test_msgs::ScriptDoneResponse_<ContainerAllocator> > { 00258 static const char* value() 00259 { 00260 return "d41d8cd98f00b204e9800998ecf8427e"; 00261 } 00262 00263 static const char* value(const ::pr2_self_test_msgs::ScriptDoneResponse_<ContainerAllocator> &) { return value(); } 00264 static const uint64_t static_value1 = 0xd41d8cd98f00b204ULL; 00265 static const uint64_t static_value2 = 0xe9800998ecf8427eULL; 00266 }; 00267 00268 template<class ContainerAllocator> 00269 struct DataType< ::pr2_self_test_msgs::ScriptDoneResponse_<ContainerAllocator> > { 00270 static const char* value() 00271 { 00272 return "pr2_self_test_msgs/ScriptDoneResponse"; 00273 } 00274 00275 static const char* value(const ::pr2_self_test_msgs::ScriptDoneResponse_<ContainerAllocator> &) { return value(); } 00276 }; 00277 00278 template<class ContainerAllocator> 00279 struct Definition< ::pr2_self_test_msgs::ScriptDoneResponse_<ContainerAllocator> > { 00280 static const char* value() 00281 { 00282 return "\n\ 00283 "; 00284 } 00285 00286 static const char* value(const ::pr2_self_test_msgs::ScriptDoneResponse_<ContainerAllocator> &) { return value(); } 00287 }; 00288 00289 template<class ContainerAllocator> struct IsFixedSize< ::pr2_self_test_msgs::ScriptDoneResponse_<ContainerAllocator> > : public TrueType {}; 00290 } // namespace message_traits 00291 } // namespace ros 00292 00293 namespace ros 00294 { 00295 namespace serialization 00296 { 00297 00298 template<class ContainerAllocator> struct Serializer< ::pr2_self_test_msgs::ScriptDoneRequest_<ContainerAllocator> > 00299 { 00300 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00301 { 00302 stream.next(m.result); 00303 stream.next(m.failure_msg); 00304 } 00305 00306 ROS_DECLARE_ALLINONE_SERIALIZER; 00307 }; // struct ScriptDoneRequest_ 00308 } // namespace serialization 00309 } // namespace ros 00310 00311 00312 namespace ros 00313 { 00314 namespace serialization 00315 { 00316 00317 template<class ContainerAllocator> struct Serializer< ::pr2_self_test_msgs::ScriptDoneResponse_<ContainerAllocator> > 00318 { 00319 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00320 { 00321 } 00322 00323 ROS_DECLARE_ALLINONE_SERIALIZER; 00324 }; // struct ScriptDoneResponse_ 00325 } // namespace serialization 00326 } // namespace ros 00327 00328 namespace ros 00329 { 00330 namespace service_traits 00331 { 00332 template<> 00333 struct MD5Sum<pr2_self_test_msgs::ScriptDone> { 00334 static const char* value() 00335 { 00336 return "5ba149050d1d4dafdca40945725022b3"; 00337 } 00338 00339 static const char* value(const pr2_self_test_msgs::ScriptDone&) { return value(); } 00340 }; 00341 00342 template<> 00343 struct DataType<pr2_self_test_msgs::ScriptDone> { 00344 static const char* value() 00345 { 00346 return "pr2_self_test_msgs/ScriptDone"; 00347 } 00348 00349 static const char* value(const pr2_self_test_msgs::ScriptDone&) { return value(); } 00350 }; 00351 00352 template<class ContainerAllocator> 00353 struct MD5Sum<pr2_self_test_msgs::ScriptDoneRequest_<ContainerAllocator> > { 00354 static const char* value() 00355 { 00356 return "5ba149050d1d4dafdca40945725022b3"; 00357 } 00358 00359 static const char* value(const pr2_self_test_msgs::ScriptDoneRequest_<ContainerAllocator> &) { return value(); } 00360 }; 00361 00362 template<class ContainerAllocator> 00363 struct DataType<pr2_self_test_msgs::ScriptDoneRequest_<ContainerAllocator> > { 00364 static const char* value() 00365 { 00366 return "pr2_self_test_msgs/ScriptDone"; 00367 } 00368 00369 static const char* value(const pr2_self_test_msgs::ScriptDoneRequest_<ContainerAllocator> &) { return value(); } 00370 }; 00371 00372 template<class ContainerAllocator> 00373 struct MD5Sum<pr2_self_test_msgs::ScriptDoneResponse_<ContainerAllocator> > { 00374 static const char* value() 00375 { 00376 return "5ba149050d1d4dafdca40945725022b3"; 00377 } 00378 00379 static const char* value(const pr2_self_test_msgs::ScriptDoneResponse_<ContainerAllocator> &) { return value(); } 00380 }; 00381 00382 template<class ContainerAllocator> 00383 struct DataType<pr2_self_test_msgs::ScriptDoneResponse_<ContainerAllocator> > { 00384 static const char* value() 00385 { 00386 return "pr2_self_test_msgs/ScriptDone"; 00387 } 00388 00389 static const char* value(const pr2_self_test_msgs::ScriptDoneResponse_<ContainerAllocator> &) { return value(); } 00390 }; 00391 00392 } // namespace service_traits 00393 } // namespace ros 00394 00395 #endif // PR2_SELF_TEST_MSGS_SERVICE_SCRIPTDONE_H 00396