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