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