00001
00002 #ifndef AMTEC_SERVICE_TARGETVELOCITY_H
00003 #define AMTEC_SERVICE_TARGETVELOCITY_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 TargetVelocityRequest_ : public ros::Message
00022 {
00023 typedef TargetVelocityRequest_<ContainerAllocator> Type;
00024
00025 TargetVelocityRequest_()
00026 : velocity_pan(0.0)
00027 , velocity_tilt(0.0)
00028 {
00029 }
00030
00031 TargetVelocityRequest_(const ContainerAllocator& _alloc)
00032 : velocity_pan(0.0)
00033 , velocity_tilt(0.0)
00034 {
00035 }
00036
00037 typedef double _velocity_pan_type;
00038 double velocity_pan;
00039
00040 typedef double _velocity_tilt_type;
00041 double velocity_tilt;
00042
00043
00044 private:
00045 static const char* __s_getDataType_() { return "amtec/TargetVelocityRequest"; }
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 "2adb301f21428b03215ce423fc357684"; }
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 "2adb301f21428b03215ce423fc357684"; }
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 velocity_pan\n\
00067 float64 velocity_tilt\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, velocity_pan);
00079 ros::serialization::serialize(stream, velocity_tilt);
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, velocity_pan);
00087 ros::serialization::deserialize(stream, velocity_tilt);
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(velocity_pan);
00095 size += ros::serialization::serializationLength(velocity_tilt);
00096 return size;
00097 }
00098
00099 typedef boost::shared_ptr< ::amtec::TargetVelocityRequest_<ContainerAllocator> > Ptr;
00100 typedef boost::shared_ptr< ::amtec::TargetVelocityRequest_<ContainerAllocator> const> ConstPtr;
00101 };
00102 typedef ::amtec::TargetVelocityRequest_<std::allocator<void> > TargetVelocityRequest;
00103
00104 typedef boost::shared_ptr< ::amtec::TargetVelocityRequest> TargetVelocityRequestPtr;
00105 typedef boost::shared_ptr< ::amtec::TargetVelocityRequest const> TargetVelocityRequestConstPtr;
00106
00107
00108 template <class ContainerAllocator>
00109 struct TargetVelocityResponse_ : public ros::Message
00110 {
00111 typedef TargetVelocityResponse_<ContainerAllocator> Type;
00112
00113 TargetVelocityResponse_()
00114 {
00115 }
00116
00117 TargetVelocityResponse_(const ContainerAllocator& _alloc)
00118 {
00119 }
00120
00121
00122 private:
00123 static const char* __s_getDataType_() { return "amtec/TargetVelocityResponse"; }
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 "2adb301f21428b03215ce423fc357684"; }
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::TargetVelocityResponse_<ContainerAllocator> > Ptr;
00170 typedef boost::shared_ptr< ::amtec::TargetVelocityResponse_<ContainerAllocator> const> ConstPtr;
00171 };
00172 typedef ::amtec::TargetVelocityResponse_<std::allocator<void> > TargetVelocityResponse;
00173
00174 typedef boost::shared_ptr< ::amtec::TargetVelocityResponse> TargetVelocityResponsePtr;
00175 typedef boost::shared_ptr< ::amtec::TargetVelocityResponse const> TargetVelocityResponseConstPtr;
00176
00177 struct TargetVelocity
00178 {
00179
00180 typedef TargetVelocityRequest Request;
00181 typedef TargetVelocityResponse 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::TargetVelocityRequest_<ContainerAllocator> > {
00196 static const char* value()
00197 {
00198 return "2adb301f21428b03215ce423fc357684";
00199 }
00200
00201 static const char* value(const ::amtec::TargetVelocityRequest_<ContainerAllocator> &) { return value(); }
00202 static const uint64_t static_value1 = 0x2adb301f21428b03ULL;
00203 static const uint64_t static_value2 = 0x215ce423fc357684ULL;
00204 };
00205
00206 template<class ContainerAllocator>
00207 struct DataType< ::amtec::TargetVelocityRequest_<ContainerAllocator> > {
00208 static const char* value()
00209 {
00210 return "amtec/TargetVelocityRequest";
00211 }
00212
00213 static const char* value(const ::amtec::TargetVelocityRequest_<ContainerAllocator> &) { return value(); }
00214 };
00215
00216 template<class ContainerAllocator>
00217 struct Definition< ::amtec::TargetVelocityRequest_<ContainerAllocator> > {
00218 static const char* value()
00219 {
00220 return "float64 velocity_pan\n\
00221 float64 velocity_tilt\n\
00222 \n\
00223 ";
00224 }
00225
00226 static const char* value(const ::amtec::TargetVelocityRequest_<ContainerAllocator> &) { return value(); }
00227 };
00228
00229 template<class ContainerAllocator> struct IsFixedSize< ::amtec::TargetVelocityRequest_<ContainerAllocator> > : public TrueType {};
00230 }
00231 }
00232
00233
00234 namespace ros
00235 {
00236 namespace message_traits
00237 {
00238 template<class ContainerAllocator>
00239 struct MD5Sum< ::amtec::TargetVelocityResponse_<ContainerAllocator> > {
00240 static const char* value()
00241 {
00242 return "d41d8cd98f00b204e9800998ecf8427e";
00243 }
00244
00245 static const char* value(const ::amtec::TargetVelocityResponse_<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::TargetVelocityResponse_<ContainerAllocator> > {
00252 static const char* value()
00253 {
00254 return "amtec/TargetVelocityResponse";
00255 }
00256
00257 static const char* value(const ::amtec::TargetVelocityResponse_<ContainerAllocator> &) { return value(); }
00258 };
00259
00260 template<class ContainerAllocator>
00261 struct Definition< ::amtec::TargetVelocityResponse_<ContainerAllocator> > {
00262 static const char* value()
00263 {
00264 return "\n\
00265 ";
00266 }
00267
00268 static const char* value(const ::amtec::TargetVelocityResponse_<ContainerAllocator> &) { return value(); }
00269 };
00270
00271 template<class ContainerAllocator> struct IsFixedSize< ::amtec::TargetVelocityResponse_<ContainerAllocator> > : public TrueType {};
00272 }
00273 }
00274
00275 namespace ros
00276 {
00277 namespace serialization
00278 {
00279
00280 template<class ContainerAllocator> struct Serializer< ::amtec::TargetVelocityRequest_<ContainerAllocator> >
00281 {
00282 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00283 {
00284 stream.next(m.velocity_pan);
00285 stream.next(m.velocity_tilt);
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::TargetVelocityResponse_<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::TargetVelocity> {
00316 static const char* value()
00317 {
00318 return "2adb301f21428b03215ce423fc357684";
00319 }
00320
00321 static const char* value(const amtec::TargetVelocity&) { return value(); }
00322 };
00323
00324 template<>
00325 struct DataType<amtec::TargetVelocity> {
00326 static const char* value()
00327 {
00328 return "amtec/TargetVelocity";
00329 }
00330
00331 static const char* value(const amtec::TargetVelocity&) { return value(); }
00332 };
00333
00334 template<class ContainerAllocator>
00335 struct MD5Sum<amtec::TargetVelocityRequest_<ContainerAllocator> > {
00336 static const char* value()
00337 {
00338 return "2adb301f21428b03215ce423fc357684";
00339 }
00340
00341 static const char* value(const amtec::TargetVelocityRequest_<ContainerAllocator> &) { return value(); }
00342 };
00343
00344 template<class ContainerAllocator>
00345 struct DataType<amtec::TargetVelocityRequest_<ContainerAllocator> > {
00346 static const char* value()
00347 {
00348 return "amtec/TargetVelocity";
00349 }
00350
00351 static const char* value(const amtec::TargetVelocityRequest_<ContainerAllocator> &) { return value(); }
00352 };
00353
00354 template<class ContainerAllocator>
00355 struct MD5Sum<amtec::TargetVelocityResponse_<ContainerAllocator> > {
00356 static const char* value()
00357 {
00358 return "2adb301f21428b03215ce423fc357684";
00359 }
00360
00361 static const char* value(const amtec::TargetVelocityResponse_<ContainerAllocator> &) { return value(); }
00362 };
00363
00364 template<class ContainerAllocator>
00365 struct DataType<amtec::TargetVelocityResponse_<ContainerAllocator> > {
00366 static const char* value()
00367 {
00368 return "amtec/TargetVelocity";
00369 }
00370
00371 static const char* value(const amtec::TargetVelocityResponse_<ContainerAllocator> &) { return value(); }
00372 };
00373
00374 }
00375 }
00376
00377 #endif // AMTEC_SERVICE_TARGETVELOCITY_H
00378