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