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