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