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