Go to the documentation of this file.00001
00002 #ifndef COB_SRVS_SERVICE_TRIGGER_H
00003 #define COB_SRVS_SERVICE_TRIGGER_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 "std_msgs/Bool.h"
00022 #include "std_msgs/String.h"
00023
00024 namespace cob_srvs
00025 {
00026 template <class ContainerAllocator>
00027 struct TriggerRequest_ {
00028 typedef TriggerRequest_<ContainerAllocator> Type;
00029
00030 TriggerRequest_()
00031 {
00032 }
00033
00034 TriggerRequest_(const ContainerAllocator& _alloc)
00035 {
00036 }
00037
00038
00039 typedef boost::shared_ptr< ::cob_srvs::TriggerRequest_<ContainerAllocator> > Ptr;
00040 typedef boost::shared_ptr< ::cob_srvs::TriggerRequest_<ContainerAllocator> const> ConstPtr;
00041 boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00042 };
00043 typedef ::cob_srvs::TriggerRequest_<std::allocator<void> > TriggerRequest;
00044
00045 typedef boost::shared_ptr< ::cob_srvs::TriggerRequest> TriggerRequestPtr;
00046 typedef boost::shared_ptr< ::cob_srvs::TriggerRequest const> TriggerRequestConstPtr;
00047
00048
00049 template <class ContainerAllocator>
00050 struct TriggerResponse_ {
00051 typedef TriggerResponse_<ContainerAllocator> Type;
00052
00053 TriggerResponse_()
00054 : success()
00055 , error_message()
00056 {
00057 }
00058
00059 TriggerResponse_(const ContainerAllocator& _alloc)
00060 : success(_alloc)
00061 , error_message(_alloc)
00062 {
00063 }
00064
00065 typedef ::std_msgs::Bool_<ContainerAllocator> _success_type;
00066 ::std_msgs::Bool_<ContainerAllocator> success;
00067
00068 typedef ::std_msgs::String_<ContainerAllocator> _error_message_type;
00069 ::std_msgs::String_<ContainerAllocator> error_message;
00070
00071
00072 typedef boost::shared_ptr< ::cob_srvs::TriggerResponse_<ContainerAllocator> > Ptr;
00073 typedef boost::shared_ptr< ::cob_srvs::TriggerResponse_<ContainerAllocator> const> ConstPtr;
00074 boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00075 };
00076 typedef ::cob_srvs::TriggerResponse_<std::allocator<void> > TriggerResponse;
00077
00078 typedef boost::shared_ptr< ::cob_srvs::TriggerResponse> TriggerResponsePtr;
00079 typedef boost::shared_ptr< ::cob_srvs::TriggerResponse const> TriggerResponseConstPtr;
00080
00081 struct Trigger
00082 {
00083
00084 typedef TriggerRequest Request;
00085 typedef TriggerResponse Response;
00086 Request request;
00087 Response response;
00088
00089 typedef Request RequestType;
00090 typedef Response ResponseType;
00091 };
00092 }
00093
00094 namespace ros
00095 {
00096 namespace message_traits
00097 {
00098 template<class ContainerAllocator> struct IsMessage< ::cob_srvs::TriggerRequest_<ContainerAllocator> > : public TrueType {};
00099 template<class ContainerAllocator> struct IsMessage< ::cob_srvs::TriggerRequest_<ContainerAllocator> const> : public TrueType {};
00100 template<class ContainerAllocator>
00101 struct MD5Sum< ::cob_srvs::TriggerRequest_<ContainerAllocator> > {
00102 static const char* value()
00103 {
00104 return "d41d8cd98f00b204e9800998ecf8427e";
00105 }
00106
00107 static const char* value(const ::cob_srvs::TriggerRequest_<ContainerAllocator> &) { return value(); }
00108 static const uint64_t static_value1 = 0xd41d8cd98f00b204ULL;
00109 static const uint64_t static_value2 = 0xe9800998ecf8427eULL;
00110 };
00111
00112 template<class ContainerAllocator>
00113 struct DataType< ::cob_srvs::TriggerRequest_<ContainerAllocator> > {
00114 static const char* value()
00115 {
00116 return "cob_srvs/TriggerRequest";
00117 }
00118
00119 static const char* value(const ::cob_srvs::TriggerRequest_<ContainerAllocator> &) { return value(); }
00120 };
00121
00122 template<class ContainerAllocator>
00123 struct Definition< ::cob_srvs::TriggerRequest_<ContainerAllocator> > {
00124 static const char* value()
00125 {
00126 return "\n\
00127 ";
00128 }
00129
00130 static const char* value(const ::cob_srvs::TriggerRequest_<ContainerAllocator> &) { return value(); }
00131 };
00132
00133 template<class ContainerAllocator> struct IsFixedSize< ::cob_srvs::TriggerRequest_<ContainerAllocator> > : public TrueType {};
00134 }
00135 }
00136
00137
00138 namespace ros
00139 {
00140 namespace message_traits
00141 {
00142 template<class ContainerAllocator> struct IsMessage< ::cob_srvs::TriggerResponse_<ContainerAllocator> > : public TrueType {};
00143 template<class ContainerAllocator> struct IsMessage< ::cob_srvs::TriggerResponse_<ContainerAllocator> const> : public TrueType {};
00144 template<class ContainerAllocator>
00145 struct MD5Sum< ::cob_srvs::TriggerResponse_<ContainerAllocator> > {
00146 static const char* value()
00147 {
00148 return "bdad515e8f4c013bd650d3407753d2b8";
00149 }
00150
00151 static const char* value(const ::cob_srvs::TriggerResponse_<ContainerAllocator> &) { return value(); }
00152 static const uint64_t static_value1 = 0xbdad515e8f4c013bULL;
00153 static const uint64_t static_value2 = 0xd650d3407753d2b8ULL;
00154 };
00155
00156 template<class ContainerAllocator>
00157 struct DataType< ::cob_srvs::TriggerResponse_<ContainerAllocator> > {
00158 static const char* value()
00159 {
00160 return "cob_srvs/TriggerResponse";
00161 }
00162
00163 static const char* value(const ::cob_srvs::TriggerResponse_<ContainerAllocator> &) { return value(); }
00164 };
00165
00166 template<class ContainerAllocator>
00167 struct Definition< ::cob_srvs::TriggerResponse_<ContainerAllocator> > {
00168 static const char* value()
00169 {
00170 return "std_msgs/Bool success\n\
00171 std_msgs/String error_message\n\
00172 \n\
00173 \n\
00174 ================================================================================\n\
00175 MSG: std_msgs/Bool\n\
00176 bool data\n\
00177 ================================================================================\n\
00178 MSG: std_msgs/String\n\
00179 string data\n\
00180 \n\
00181 ";
00182 }
00183
00184 static const char* value(const ::cob_srvs::TriggerResponse_<ContainerAllocator> &) { return value(); }
00185 };
00186
00187 }
00188 }
00189
00190 namespace ros
00191 {
00192 namespace serialization
00193 {
00194
00195 template<class ContainerAllocator> struct Serializer< ::cob_srvs::TriggerRequest_<ContainerAllocator> >
00196 {
00197 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00198 {
00199 }
00200
00201 ROS_DECLARE_ALLINONE_SERIALIZER;
00202 };
00203 }
00204 }
00205
00206
00207 namespace ros
00208 {
00209 namespace serialization
00210 {
00211
00212 template<class ContainerAllocator> struct Serializer< ::cob_srvs::TriggerResponse_<ContainerAllocator> >
00213 {
00214 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00215 {
00216 stream.next(m.success);
00217 stream.next(m.error_message);
00218 }
00219
00220 ROS_DECLARE_ALLINONE_SERIALIZER;
00221 };
00222 }
00223 }
00224
00225 namespace ros
00226 {
00227 namespace service_traits
00228 {
00229 template<>
00230 struct MD5Sum<cob_srvs::Trigger> {
00231 static const char* value()
00232 {
00233 return "bdad515e8f4c013bd650d3407753d2b8";
00234 }
00235
00236 static const char* value(const cob_srvs::Trigger&) { return value(); }
00237 };
00238
00239 template<>
00240 struct DataType<cob_srvs::Trigger> {
00241 static const char* value()
00242 {
00243 return "cob_srvs/Trigger";
00244 }
00245
00246 static const char* value(const cob_srvs::Trigger&) { return value(); }
00247 };
00248
00249 template<class ContainerAllocator>
00250 struct MD5Sum<cob_srvs::TriggerRequest_<ContainerAllocator> > {
00251 static const char* value()
00252 {
00253 return "bdad515e8f4c013bd650d3407753d2b8";
00254 }
00255
00256 static const char* value(const cob_srvs::TriggerRequest_<ContainerAllocator> &) { return value(); }
00257 };
00258
00259 template<class ContainerAllocator>
00260 struct DataType<cob_srvs::TriggerRequest_<ContainerAllocator> > {
00261 static const char* value()
00262 {
00263 return "cob_srvs/Trigger";
00264 }
00265
00266 static const char* value(const cob_srvs::TriggerRequest_<ContainerAllocator> &) { return value(); }
00267 };
00268
00269 template<class ContainerAllocator>
00270 struct MD5Sum<cob_srvs::TriggerResponse_<ContainerAllocator> > {
00271 static const char* value()
00272 {
00273 return "bdad515e8f4c013bd650d3407753d2b8";
00274 }
00275
00276 static const char* value(const cob_srvs::TriggerResponse_<ContainerAllocator> &) { return value(); }
00277 };
00278
00279 template<class ContainerAllocator>
00280 struct DataType<cob_srvs::TriggerResponse_<ContainerAllocator> > {
00281 static const char* value()
00282 {
00283 return "cob_srvs/Trigger";
00284 }
00285
00286 static const char* value(const cob_srvs::TriggerResponse_<ContainerAllocator> &) { return value(); }
00287 };
00288
00289 }
00290 }
00291
00292 #endif // COB_SRVS_SERVICE_TRIGGER_H
00293