00001
00002 #ifndef PR2_MECHANISM_CONTROLLERS_SERVICE_SETPROFILE_H
00003 #define PR2_MECHANISM_CONTROLLERS_SERVICE_SETPROFILE_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 pr2_mechanism_controllers
00019 {
00020 template <class ContainerAllocator>
00021 struct SetProfileRequest_ : public ros::Message
00022 {
00023 typedef SetProfileRequest_<ContainerAllocator> Type;
00024
00025 SetProfileRequest_()
00026 : UpperTurnaround(0.0)
00027 , LowerTurnaround(0.0)
00028 , upperDecelBuffer(0.0)
00029 , lowerDecelBuffer(0.0)
00030 , profile(0.0)
00031 , period(0.0)
00032 , amplitude(0.0)
00033 , offset(0.0)
00034 {
00035 }
00036
00037 SetProfileRequest_(const ContainerAllocator& _alloc)
00038 : UpperTurnaround(0.0)
00039 , LowerTurnaround(0.0)
00040 , upperDecelBuffer(0.0)
00041 , lowerDecelBuffer(0.0)
00042 , profile(0.0)
00043 , period(0.0)
00044 , amplitude(0.0)
00045 , offset(0.0)
00046 {
00047 }
00048
00049 typedef double _UpperTurnaround_type;
00050 double UpperTurnaround;
00051
00052 typedef double _LowerTurnaround_type;
00053 double LowerTurnaround;
00054
00055 typedef double _upperDecelBuffer_type;
00056 double upperDecelBuffer;
00057
00058 typedef double _lowerDecelBuffer_type;
00059 double lowerDecelBuffer;
00060
00061 typedef double _profile_type;
00062 double profile;
00063
00064 typedef double _period_type;
00065 double period;
00066
00067 typedef double _amplitude_type;
00068 double amplitude;
00069
00070 typedef double _offset_type;
00071 double offset;
00072
00073
00074 private:
00075 static const char* __s_getDataType_() { return "pr2_mechanism_controllers/SetProfileRequest"; }
00076 public:
00077 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); }
00078
00079 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); }
00080
00081 private:
00082 static const char* __s_getMD5Sum_() { return "309001fc196b0094f23b1ae2bd672fb2"; }
00083 public:
00084 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); }
00085
00086 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); }
00087
00088 private:
00089 static const char* __s_getServerMD5Sum_() { return "2c429583cad60964651aba828d788a9a"; }
00090 public:
00091 ROS_DEPRECATED static const std::string __s_getServerMD5Sum() { return __s_getServerMD5Sum_(); }
00092
00093 ROS_DEPRECATED const std::string __getServerMD5Sum() const { return __s_getServerMD5Sum_(); }
00094
00095 private:
00096 static const char* __s_getMessageDefinition_() { return "float64 UpperTurnaround\n\
00097 float64 LowerTurnaround\n\
00098 float64 upperDecelBuffer\n\
00099 float64 lowerDecelBuffer\n\
00100 float64 profile\n\
00101 float64 period\n\
00102 float64 amplitude\n\
00103 float64 offset\n\
00104 \n\
00105 "; }
00106 public:
00107 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); }
00108
00109 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); }
00110
00111 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const
00112 {
00113 ros::serialization::OStream stream(write_ptr, 1000000000);
00114 ros::serialization::serialize(stream, UpperTurnaround);
00115 ros::serialization::serialize(stream, LowerTurnaround);
00116 ros::serialization::serialize(stream, upperDecelBuffer);
00117 ros::serialization::serialize(stream, lowerDecelBuffer);
00118 ros::serialization::serialize(stream, profile);
00119 ros::serialization::serialize(stream, period);
00120 ros::serialization::serialize(stream, amplitude);
00121 ros::serialization::serialize(stream, offset);
00122 return stream.getData();
00123 }
00124
00125 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr)
00126 {
00127 ros::serialization::IStream stream(read_ptr, 1000000000);
00128 ros::serialization::deserialize(stream, UpperTurnaround);
00129 ros::serialization::deserialize(stream, LowerTurnaround);
00130 ros::serialization::deserialize(stream, upperDecelBuffer);
00131 ros::serialization::deserialize(stream, lowerDecelBuffer);
00132 ros::serialization::deserialize(stream, profile);
00133 ros::serialization::deserialize(stream, period);
00134 ros::serialization::deserialize(stream, amplitude);
00135 ros::serialization::deserialize(stream, offset);
00136 return stream.getData();
00137 }
00138
00139 ROS_DEPRECATED virtual uint32_t serializationLength() const
00140 {
00141 uint32_t size = 0;
00142 size += ros::serialization::serializationLength(UpperTurnaround);
00143 size += ros::serialization::serializationLength(LowerTurnaround);
00144 size += ros::serialization::serializationLength(upperDecelBuffer);
00145 size += ros::serialization::serializationLength(lowerDecelBuffer);
00146 size += ros::serialization::serializationLength(profile);
00147 size += ros::serialization::serializationLength(period);
00148 size += ros::serialization::serializationLength(amplitude);
00149 size += ros::serialization::serializationLength(offset);
00150 return size;
00151 }
00152
00153 typedef boost::shared_ptr< ::pr2_mechanism_controllers::SetProfileRequest_<ContainerAllocator> > Ptr;
00154 typedef boost::shared_ptr< ::pr2_mechanism_controllers::SetProfileRequest_<ContainerAllocator> const> ConstPtr;
00155 };
00156 typedef ::pr2_mechanism_controllers::SetProfileRequest_<std::allocator<void> > SetProfileRequest;
00157
00158 typedef boost::shared_ptr< ::pr2_mechanism_controllers::SetProfileRequest> SetProfileRequestPtr;
00159 typedef boost::shared_ptr< ::pr2_mechanism_controllers::SetProfileRequest const> SetProfileRequestConstPtr;
00160
00161
00162 template <class ContainerAllocator>
00163 struct SetProfileResponse_ : public ros::Message
00164 {
00165 typedef SetProfileResponse_<ContainerAllocator> Type;
00166
00167 SetProfileResponse_()
00168 : time(0.0)
00169 {
00170 }
00171
00172 SetProfileResponse_(const ContainerAllocator& _alloc)
00173 : time(0.0)
00174 {
00175 }
00176
00177 typedef double _time_type;
00178 double time;
00179
00180
00181 private:
00182 static const char* __s_getDataType_() { return "pr2_mechanism_controllers/SetProfileResponse"; }
00183 public:
00184 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); }
00185
00186 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); }
00187
00188 private:
00189 static const char* __s_getMD5Sum_() { return "be5310e7aa4c90cdee120add91648cee"; }
00190 public:
00191 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); }
00192
00193 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); }
00194
00195 private:
00196 static const char* __s_getServerMD5Sum_() { return "2c429583cad60964651aba828d788a9a"; }
00197 public:
00198 ROS_DEPRECATED static const std::string __s_getServerMD5Sum() { return __s_getServerMD5Sum_(); }
00199
00200 ROS_DEPRECATED const std::string __getServerMD5Sum() const { return __s_getServerMD5Sum_(); }
00201
00202 private:
00203 static const char* __s_getMessageDefinition_() { return "float64 time\n\
00204 \n\
00205 \n\
00206 \n\
00207 "; }
00208 public:
00209 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); }
00210
00211 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); }
00212
00213 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const
00214 {
00215 ros::serialization::OStream stream(write_ptr, 1000000000);
00216 ros::serialization::serialize(stream, time);
00217 return stream.getData();
00218 }
00219
00220 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr)
00221 {
00222 ros::serialization::IStream stream(read_ptr, 1000000000);
00223 ros::serialization::deserialize(stream, time);
00224 return stream.getData();
00225 }
00226
00227 ROS_DEPRECATED virtual uint32_t serializationLength() const
00228 {
00229 uint32_t size = 0;
00230 size += ros::serialization::serializationLength(time);
00231 return size;
00232 }
00233
00234 typedef boost::shared_ptr< ::pr2_mechanism_controllers::SetProfileResponse_<ContainerAllocator> > Ptr;
00235 typedef boost::shared_ptr< ::pr2_mechanism_controllers::SetProfileResponse_<ContainerAllocator> const> ConstPtr;
00236 };
00237 typedef ::pr2_mechanism_controllers::SetProfileResponse_<std::allocator<void> > SetProfileResponse;
00238
00239 typedef boost::shared_ptr< ::pr2_mechanism_controllers::SetProfileResponse> SetProfileResponsePtr;
00240 typedef boost::shared_ptr< ::pr2_mechanism_controllers::SetProfileResponse const> SetProfileResponseConstPtr;
00241
00242 struct SetProfile
00243 {
00244
00245 typedef SetProfileRequest Request;
00246 typedef SetProfileResponse Response;
00247 Request request;
00248 Response response;
00249
00250 typedef Request RequestType;
00251 typedef Response ResponseType;
00252 };
00253 }
00254
00255 namespace ros
00256 {
00257 namespace message_traits
00258 {
00259 template<class ContainerAllocator>
00260 struct MD5Sum< ::pr2_mechanism_controllers::SetProfileRequest_<ContainerAllocator> > {
00261 static const char* value()
00262 {
00263 return "309001fc196b0094f23b1ae2bd672fb2";
00264 }
00265
00266 static const char* value(const ::pr2_mechanism_controllers::SetProfileRequest_<ContainerAllocator> &) { return value(); }
00267 static const uint64_t static_value1 = 0x309001fc196b0094ULL;
00268 static const uint64_t static_value2 = 0xf23b1ae2bd672fb2ULL;
00269 };
00270
00271 template<class ContainerAllocator>
00272 struct DataType< ::pr2_mechanism_controllers::SetProfileRequest_<ContainerAllocator> > {
00273 static const char* value()
00274 {
00275 return "pr2_mechanism_controllers/SetProfileRequest";
00276 }
00277
00278 static const char* value(const ::pr2_mechanism_controllers::SetProfileRequest_<ContainerAllocator> &) { return value(); }
00279 };
00280
00281 template<class ContainerAllocator>
00282 struct Definition< ::pr2_mechanism_controllers::SetProfileRequest_<ContainerAllocator> > {
00283 static const char* value()
00284 {
00285 return "float64 UpperTurnaround\n\
00286 float64 LowerTurnaround\n\
00287 float64 upperDecelBuffer\n\
00288 float64 lowerDecelBuffer\n\
00289 float64 profile\n\
00290 float64 period\n\
00291 float64 amplitude\n\
00292 float64 offset\n\
00293 \n\
00294 ";
00295 }
00296
00297 static const char* value(const ::pr2_mechanism_controllers::SetProfileRequest_<ContainerAllocator> &) { return value(); }
00298 };
00299
00300 template<class ContainerAllocator> struct IsFixedSize< ::pr2_mechanism_controllers::SetProfileRequest_<ContainerAllocator> > : public TrueType {};
00301 }
00302 }
00303
00304
00305 namespace ros
00306 {
00307 namespace message_traits
00308 {
00309 template<class ContainerAllocator>
00310 struct MD5Sum< ::pr2_mechanism_controllers::SetProfileResponse_<ContainerAllocator> > {
00311 static const char* value()
00312 {
00313 return "be5310e7aa4c90cdee120add91648cee";
00314 }
00315
00316 static const char* value(const ::pr2_mechanism_controllers::SetProfileResponse_<ContainerAllocator> &) { return value(); }
00317 static const uint64_t static_value1 = 0xbe5310e7aa4c90cdULL;
00318 static const uint64_t static_value2 = 0xee120add91648ceeULL;
00319 };
00320
00321 template<class ContainerAllocator>
00322 struct DataType< ::pr2_mechanism_controllers::SetProfileResponse_<ContainerAllocator> > {
00323 static const char* value()
00324 {
00325 return "pr2_mechanism_controllers/SetProfileResponse";
00326 }
00327
00328 static const char* value(const ::pr2_mechanism_controllers::SetProfileResponse_<ContainerAllocator> &) { return value(); }
00329 };
00330
00331 template<class ContainerAllocator>
00332 struct Definition< ::pr2_mechanism_controllers::SetProfileResponse_<ContainerAllocator> > {
00333 static const char* value()
00334 {
00335 return "float64 time\n\
00336 \n\
00337 \n\
00338 \n\
00339 ";
00340 }
00341
00342 static const char* value(const ::pr2_mechanism_controllers::SetProfileResponse_<ContainerAllocator> &) { return value(); }
00343 };
00344
00345 template<class ContainerAllocator> struct IsFixedSize< ::pr2_mechanism_controllers::SetProfileResponse_<ContainerAllocator> > : public TrueType {};
00346 }
00347 }
00348
00349 namespace ros
00350 {
00351 namespace serialization
00352 {
00353
00354 template<class ContainerAllocator> struct Serializer< ::pr2_mechanism_controllers::SetProfileRequest_<ContainerAllocator> >
00355 {
00356 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00357 {
00358 stream.next(m.UpperTurnaround);
00359 stream.next(m.LowerTurnaround);
00360 stream.next(m.upperDecelBuffer);
00361 stream.next(m.lowerDecelBuffer);
00362 stream.next(m.profile);
00363 stream.next(m.period);
00364 stream.next(m.amplitude);
00365 stream.next(m.offset);
00366 }
00367
00368 ROS_DECLARE_ALLINONE_SERIALIZER;
00369 };
00370 }
00371 }
00372
00373
00374 namespace ros
00375 {
00376 namespace serialization
00377 {
00378
00379 template<class ContainerAllocator> struct Serializer< ::pr2_mechanism_controllers::SetProfileResponse_<ContainerAllocator> >
00380 {
00381 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00382 {
00383 stream.next(m.time);
00384 }
00385
00386 ROS_DECLARE_ALLINONE_SERIALIZER;
00387 };
00388 }
00389 }
00390
00391 namespace ros
00392 {
00393 namespace service_traits
00394 {
00395 template<>
00396 struct MD5Sum<pr2_mechanism_controllers::SetProfile> {
00397 static const char* value()
00398 {
00399 return "2c429583cad60964651aba828d788a9a";
00400 }
00401
00402 static const char* value(const pr2_mechanism_controllers::SetProfile&) { return value(); }
00403 };
00404
00405 template<>
00406 struct DataType<pr2_mechanism_controllers::SetProfile> {
00407 static const char* value()
00408 {
00409 return "pr2_mechanism_controllers/SetProfile";
00410 }
00411
00412 static const char* value(const pr2_mechanism_controllers::SetProfile&) { return value(); }
00413 };
00414
00415 template<class ContainerAllocator>
00416 struct MD5Sum<pr2_mechanism_controllers::SetProfileRequest_<ContainerAllocator> > {
00417 static const char* value()
00418 {
00419 return "2c429583cad60964651aba828d788a9a";
00420 }
00421
00422 static const char* value(const pr2_mechanism_controllers::SetProfileRequest_<ContainerAllocator> &) { return value(); }
00423 };
00424
00425 template<class ContainerAllocator>
00426 struct DataType<pr2_mechanism_controllers::SetProfileRequest_<ContainerAllocator> > {
00427 static const char* value()
00428 {
00429 return "pr2_mechanism_controllers/SetProfile";
00430 }
00431
00432 static const char* value(const pr2_mechanism_controllers::SetProfileRequest_<ContainerAllocator> &) { return value(); }
00433 };
00434
00435 template<class ContainerAllocator>
00436 struct MD5Sum<pr2_mechanism_controllers::SetProfileResponse_<ContainerAllocator> > {
00437 static const char* value()
00438 {
00439 return "2c429583cad60964651aba828d788a9a";
00440 }
00441
00442 static const char* value(const pr2_mechanism_controllers::SetProfileResponse_<ContainerAllocator> &) { return value(); }
00443 };
00444
00445 template<class ContainerAllocator>
00446 struct DataType<pr2_mechanism_controllers::SetProfileResponse_<ContainerAllocator> > {
00447 static const char* value()
00448 {
00449 return "pr2_mechanism_controllers/SetProfile";
00450 }
00451
00452 static const char* value(const pr2_mechanism_controllers::SetProfileResponse_<ContainerAllocator> &) { return value(); }
00453 };
00454
00455 }
00456 }
00457
00458 #endif // PR2_MECHANISM_CONTROLLERS_SERVICE_SETPROFILE_H
00459