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