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