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