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