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