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