Go to the documentation of this file.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 <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_controllers
00023 {
00024 template <class ContainerAllocator>
00025 struct SetProfileRequest_ {
00026 typedef SetProfileRequest_<ContainerAllocator> Type;
00027
00028 SetProfileRequest_()
00029 : UpperTurnaround(0.0)
00030 , LowerTurnaround(0.0)
00031 , upperDecelBuffer(0.0)
00032 , lowerDecelBuffer(0.0)
00033 , profile(0.0)
00034 , period(0.0)
00035 , amplitude(0.0)
00036 , offset(0.0)
00037 {
00038 }
00039
00040 SetProfileRequest_(const ContainerAllocator& _alloc)
00041 : UpperTurnaround(0.0)
00042 , LowerTurnaround(0.0)
00043 , upperDecelBuffer(0.0)
00044 , lowerDecelBuffer(0.0)
00045 , profile(0.0)
00046 , period(0.0)
00047 , amplitude(0.0)
00048 , offset(0.0)
00049 {
00050 }
00051
00052 typedef double _UpperTurnaround_type;
00053 double UpperTurnaround;
00054
00055 typedef double _LowerTurnaround_type;
00056 double LowerTurnaround;
00057
00058 typedef double _upperDecelBuffer_type;
00059 double upperDecelBuffer;
00060
00061 typedef double _lowerDecelBuffer_type;
00062 double lowerDecelBuffer;
00063
00064 typedef double _profile_type;
00065 double profile;
00066
00067 typedef double _period_type;
00068 double period;
00069
00070 typedef double _amplitude_type;
00071 double amplitude;
00072
00073 typedef double _offset_type;
00074 double offset;
00075
00076
00077 typedef boost::shared_ptr< ::pr2_mechanism_controllers::SetProfileRequest_<ContainerAllocator> > Ptr;
00078 typedef boost::shared_ptr< ::pr2_mechanism_controllers::SetProfileRequest_<ContainerAllocator> const> ConstPtr;
00079 boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00080 };
00081 typedef ::pr2_mechanism_controllers::SetProfileRequest_<std::allocator<void> > SetProfileRequest;
00082
00083 typedef boost::shared_ptr< ::pr2_mechanism_controllers::SetProfileRequest> SetProfileRequestPtr;
00084 typedef boost::shared_ptr< ::pr2_mechanism_controllers::SetProfileRequest const> SetProfileRequestConstPtr;
00085
00086
00087
00088 template <class ContainerAllocator>
00089 struct SetProfileResponse_ {
00090 typedef SetProfileResponse_<ContainerAllocator> Type;
00091
00092 SetProfileResponse_()
00093 : time(0.0)
00094 {
00095 }
00096
00097 SetProfileResponse_(const ContainerAllocator& _alloc)
00098 : time(0.0)
00099 {
00100 }
00101
00102 typedef double _time_type;
00103 double time;
00104
00105
00106 typedef boost::shared_ptr< ::pr2_mechanism_controllers::SetProfileResponse_<ContainerAllocator> > Ptr;
00107 typedef boost::shared_ptr< ::pr2_mechanism_controllers::SetProfileResponse_<ContainerAllocator> const> ConstPtr;
00108 boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00109 };
00110 typedef ::pr2_mechanism_controllers::SetProfileResponse_<std::allocator<void> > SetProfileResponse;
00111
00112 typedef boost::shared_ptr< ::pr2_mechanism_controllers::SetProfileResponse> SetProfileResponsePtr;
00113 typedef boost::shared_ptr< ::pr2_mechanism_controllers::SetProfileResponse const> SetProfileResponseConstPtr;
00114
00115
00116 struct SetProfile
00117 {
00118
00119 typedef SetProfileRequest Request;
00120 typedef SetProfileResponse Response;
00121 Request request;
00122 Response response;
00123
00124 typedef Request RequestType;
00125 typedef Response ResponseType;
00126 };
00127 }
00128
00129 namespace ros
00130 {
00131 namespace message_traits
00132 {
00133 template<class ContainerAllocator> struct IsMessage< ::pr2_mechanism_controllers::SetProfileRequest_<ContainerAllocator> > : public TrueType {};
00134 template<class ContainerAllocator> struct IsMessage< ::pr2_mechanism_controllers::SetProfileRequest_<ContainerAllocator> const> : public TrueType {};
00135 template<class ContainerAllocator>
00136 struct MD5Sum< ::pr2_mechanism_controllers::SetProfileRequest_<ContainerAllocator> > {
00137 static const char* value()
00138 {
00139 return "309001fc196b0094f23b1ae2bd672fb2";
00140 }
00141
00142 static const char* value(const ::pr2_mechanism_controllers::SetProfileRequest_<ContainerAllocator> &) { return value(); }
00143 static const uint64_t static_value1 = 0x309001fc196b0094ULL;
00144 static const uint64_t static_value2 = 0xf23b1ae2bd672fb2ULL;
00145 };
00146
00147 template<class ContainerAllocator>
00148 struct DataType< ::pr2_mechanism_controllers::SetProfileRequest_<ContainerAllocator> > {
00149 static const char* value()
00150 {
00151 return "pr2_mechanism_controllers/SetProfileRequest";
00152 }
00153
00154 static const char* value(const ::pr2_mechanism_controllers::SetProfileRequest_<ContainerAllocator> &) { return value(); }
00155 };
00156
00157 template<class ContainerAllocator>
00158 struct Definition< ::pr2_mechanism_controllers::SetProfileRequest_<ContainerAllocator> > {
00159 static const char* value()
00160 {
00161 return "float64 UpperTurnaround\n\
00162 float64 LowerTurnaround\n\
00163 float64 upperDecelBuffer\n\
00164 float64 lowerDecelBuffer\n\
00165 float64 profile\n\
00166 float64 period\n\
00167 float64 amplitude\n\
00168 float64 offset\n\
00169 \n\
00170 ";
00171 }
00172
00173 static const char* value(const ::pr2_mechanism_controllers::SetProfileRequest_<ContainerAllocator> &) { return value(); }
00174 };
00175
00176 template<class ContainerAllocator> struct IsFixedSize< ::pr2_mechanism_controllers::SetProfileRequest_<ContainerAllocator> > : public TrueType {};
00177 }
00178 }
00179
00180
00181 namespace ros
00182 {
00183 namespace message_traits
00184 {
00185 template<class ContainerAllocator> struct IsMessage< ::pr2_mechanism_controllers::SetProfileResponse_<ContainerAllocator> > : public TrueType {};
00186 template<class ContainerAllocator> struct IsMessage< ::pr2_mechanism_controllers::SetProfileResponse_<ContainerAllocator> const> : public TrueType {};
00187 template<class ContainerAllocator>
00188 struct MD5Sum< ::pr2_mechanism_controllers::SetProfileResponse_<ContainerAllocator> > {
00189 static const char* value()
00190 {
00191 return "be5310e7aa4c90cdee120add91648cee";
00192 }
00193
00194 static const char* value(const ::pr2_mechanism_controllers::SetProfileResponse_<ContainerAllocator> &) { return value(); }
00195 static const uint64_t static_value1 = 0xbe5310e7aa4c90cdULL;
00196 static const uint64_t static_value2 = 0xee120add91648ceeULL;
00197 };
00198
00199 template<class ContainerAllocator>
00200 struct DataType< ::pr2_mechanism_controllers::SetProfileResponse_<ContainerAllocator> > {
00201 static const char* value()
00202 {
00203 return "pr2_mechanism_controllers/SetProfileResponse";
00204 }
00205
00206 static const char* value(const ::pr2_mechanism_controllers::SetProfileResponse_<ContainerAllocator> &) { return value(); }
00207 };
00208
00209 template<class ContainerAllocator>
00210 struct Definition< ::pr2_mechanism_controllers::SetProfileResponse_<ContainerAllocator> > {
00211 static const char* value()
00212 {
00213 return "float64 time\n\
00214 \n\
00215 \n\
00216 \n\
00217 ";
00218 }
00219
00220 static const char* value(const ::pr2_mechanism_controllers::SetProfileResponse_<ContainerAllocator> &) { return value(); }
00221 };
00222
00223 template<class ContainerAllocator> struct IsFixedSize< ::pr2_mechanism_controllers::SetProfileResponse_<ContainerAllocator> > : public TrueType {};
00224 }
00225 }
00226
00227 namespace ros
00228 {
00229 namespace serialization
00230 {
00231
00232 template<class ContainerAllocator> struct Serializer< ::pr2_mechanism_controllers::SetProfileRequest_<ContainerAllocator> >
00233 {
00234 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00235 {
00236 stream.next(m.UpperTurnaround);
00237 stream.next(m.LowerTurnaround);
00238 stream.next(m.upperDecelBuffer);
00239 stream.next(m.lowerDecelBuffer);
00240 stream.next(m.profile);
00241 stream.next(m.period);
00242 stream.next(m.amplitude);
00243 stream.next(m.offset);
00244 }
00245
00246 ROS_DECLARE_ALLINONE_SERIALIZER;
00247 };
00248 }
00249 }
00250
00251
00252 namespace ros
00253 {
00254 namespace serialization
00255 {
00256
00257 template<class ContainerAllocator> struct Serializer< ::pr2_mechanism_controllers::SetProfileResponse_<ContainerAllocator> >
00258 {
00259 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00260 {
00261 stream.next(m.time);
00262 }
00263
00264 ROS_DECLARE_ALLINONE_SERIALIZER;
00265 };
00266 }
00267 }
00268
00269 namespace ros
00270 {
00271 namespace service_traits
00272 {
00273 template<>
00274 struct MD5Sum<pr2_mechanism_controllers::SetProfile> {
00275 static const char* value()
00276 {
00277 return "2c429583cad60964651aba828d788a9a";
00278 }
00279
00280 static const char* value(const pr2_mechanism_controllers::SetProfile&) { return value(); }
00281 };
00282
00283 template<>
00284 struct DataType<pr2_mechanism_controllers::SetProfile> {
00285 static const char* value()
00286 {
00287 return "pr2_mechanism_controllers/SetProfile";
00288 }
00289
00290 static const char* value(const pr2_mechanism_controllers::SetProfile&) { return value(); }
00291 };
00292
00293 template<class ContainerAllocator>
00294 struct MD5Sum<pr2_mechanism_controllers::SetProfileRequest_<ContainerAllocator> > {
00295 static const char* value()
00296 {
00297 return "2c429583cad60964651aba828d788a9a";
00298 }
00299
00300 static const char* value(const pr2_mechanism_controllers::SetProfileRequest_<ContainerAllocator> &) { return value(); }
00301 };
00302
00303 template<class ContainerAllocator>
00304 struct DataType<pr2_mechanism_controllers::SetProfileRequest_<ContainerAllocator> > {
00305 static const char* value()
00306 {
00307 return "pr2_mechanism_controllers/SetProfile";
00308 }
00309
00310 static const char* value(const pr2_mechanism_controllers::SetProfileRequest_<ContainerAllocator> &) { return value(); }
00311 };
00312
00313 template<class ContainerAllocator>
00314 struct MD5Sum<pr2_mechanism_controllers::SetProfileResponse_<ContainerAllocator> > {
00315 static const char* value()
00316 {
00317 return "2c429583cad60964651aba828d788a9a";
00318 }
00319
00320 static const char* value(const pr2_mechanism_controllers::SetProfileResponse_<ContainerAllocator> &) { return value(); }
00321 };
00322
00323 template<class ContainerAllocator>
00324 struct DataType<pr2_mechanism_controllers::SetProfileResponse_<ContainerAllocator> > {
00325 static const char* value()
00326 {
00327 return "pr2_mechanism_controllers/SetProfile";
00328 }
00329
00330 static const char* value(const pr2_mechanism_controllers::SetProfileResponse_<ContainerAllocator> &) { return value(); }
00331 };
00332
00333 }
00334 }
00335
00336 #endif // PR2_MECHANISM_CONTROLLERS_SERVICE_SETPROFILE_H
00337