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