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