Go to the documentation of this file.00001
00002 #ifndef YOUBOT_OVERHEAD_VISION_SERVICE_COORDCONVERSION_H
00003 #define YOUBOT_OVERHEAD_VISION_SERVICE_COORDCONVERSION_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 youbot_overhead_vision
00023 {
00024 template <class ContainerAllocator>
00025 struct CoordConversionRequest_ {
00026 typedef CoordConversionRequest_<ContainerAllocator> Type;
00027
00028 CoordConversionRequest_()
00029 : x(0.0)
00030 , y(0.0)
00031 , type(0)
00032 {
00033 }
00034
00035 CoordConversionRequest_(const ContainerAllocator& _alloc)
00036 : x(0.0)
00037 , y(0.0)
00038 , type(0)
00039 {
00040 }
00041
00042 typedef float _x_type;
00043 float x;
00044
00045 typedef float _y_type;
00046 float y;
00047
00048 typedef int8_t _type_type;
00049 int8_t type;
00050
00051
00052 typedef boost::shared_ptr< ::youbot_overhead_vision::CoordConversionRequest_<ContainerAllocator> > Ptr;
00053 typedef boost::shared_ptr< ::youbot_overhead_vision::CoordConversionRequest_<ContainerAllocator> const> ConstPtr;
00054 boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00055 };
00056 typedef ::youbot_overhead_vision::CoordConversionRequest_<std::allocator<void> > CoordConversionRequest;
00057
00058 typedef boost::shared_ptr< ::youbot_overhead_vision::CoordConversionRequest> CoordConversionRequestPtr;
00059 typedef boost::shared_ptr< ::youbot_overhead_vision::CoordConversionRequest const> CoordConversionRequestConstPtr;
00060
00061
00062 template <class ContainerAllocator>
00063 struct CoordConversionResponse_ {
00064 typedef CoordConversionResponse_<ContainerAllocator> Type;
00065
00066 CoordConversionResponse_()
00067 : xConverted(0.0)
00068 , yConverted(0.0)
00069 {
00070 }
00071
00072 CoordConversionResponse_(const ContainerAllocator& _alloc)
00073 : xConverted(0.0)
00074 , yConverted(0.0)
00075 {
00076 }
00077
00078 typedef float _xConverted_type;
00079 float xConverted;
00080
00081 typedef float _yConverted_type;
00082 float yConverted;
00083
00084
00085 typedef boost::shared_ptr< ::youbot_overhead_vision::CoordConversionResponse_<ContainerAllocator> > Ptr;
00086 typedef boost::shared_ptr< ::youbot_overhead_vision::CoordConversionResponse_<ContainerAllocator> const> ConstPtr;
00087 boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00088 };
00089 typedef ::youbot_overhead_vision::CoordConversionResponse_<std::allocator<void> > CoordConversionResponse;
00090
00091 typedef boost::shared_ptr< ::youbot_overhead_vision::CoordConversionResponse> CoordConversionResponsePtr;
00092 typedef boost::shared_ptr< ::youbot_overhead_vision::CoordConversionResponse const> CoordConversionResponseConstPtr;
00093
00094 struct CoordConversion
00095 {
00096
00097 typedef CoordConversionRequest Request;
00098 typedef CoordConversionResponse Response;
00099 Request request;
00100 Response response;
00101
00102 typedef Request RequestType;
00103 typedef Response ResponseType;
00104 };
00105 }
00106
00107 namespace ros
00108 {
00109 namespace message_traits
00110 {
00111 template<class ContainerAllocator> struct IsMessage< ::youbot_overhead_vision::CoordConversionRequest_<ContainerAllocator> > : public TrueType {};
00112 template<class ContainerAllocator> struct IsMessage< ::youbot_overhead_vision::CoordConversionRequest_<ContainerAllocator> const> : public TrueType {};
00113 template<class ContainerAllocator>
00114 struct MD5Sum< ::youbot_overhead_vision::CoordConversionRequest_<ContainerAllocator> > {
00115 static const char* value()
00116 {
00117 return "f33fcc4170d425926934a81b4fde305c";
00118 }
00119
00120 static const char* value(const ::youbot_overhead_vision::CoordConversionRequest_<ContainerAllocator> &) { return value(); }
00121 static const uint64_t static_value1 = 0xf33fcc4170d42592ULL;
00122 static const uint64_t static_value2 = 0x6934a81b4fde305cULL;
00123 };
00124
00125 template<class ContainerAllocator>
00126 struct DataType< ::youbot_overhead_vision::CoordConversionRequest_<ContainerAllocator> > {
00127 static const char* value()
00128 {
00129 return "youbot_overhead_vision/CoordConversionRequest";
00130 }
00131
00132 static const char* value(const ::youbot_overhead_vision::CoordConversionRequest_<ContainerAllocator> &) { return value(); }
00133 };
00134
00135 template<class ContainerAllocator>
00136 struct Definition< ::youbot_overhead_vision::CoordConversionRequest_<ContainerAllocator> > {
00137 static const char* value()
00138 {
00139 return "float32 x\n\
00140 float32 y\n\
00141 int8 type\n\
00142 \n\
00143 ";
00144 }
00145
00146 static const char* value(const ::youbot_overhead_vision::CoordConversionRequest_<ContainerAllocator> &) { return value(); }
00147 };
00148
00149 template<class ContainerAllocator> struct IsFixedSize< ::youbot_overhead_vision::CoordConversionRequest_<ContainerAllocator> > : public TrueType {};
00150 }
00151 }
00152
00153
00154 namespace ros
00155 {
00156 namespace message_traits
00157 {
00158 template<class ContainerAllocator> struct IsMessage< ::youbot_overhead_vision::CoordConversionResponse_<ContainerAllocator> > : public TrueType {};
00159 template<class ContainerAllocator> struct IsMessage< ::youbot_overhead_vision::CoordConversionResponse_<ContainerAllocator> const> : public TrueType {};
00160 template<class ContainerAllocator>
00161 struct MD5Sum< ::youbot_overhead_vision::CoordConversionResponse_<ContainerAllocator> > {
00162 static const char* value()
00163 {
00164 return "9c11728d8a06caf3ca3da804eac2711b";
00165 }
00166
00167 static const char* value(const ::youbot_overhead_vision::CoordConversionResponse_<ContainerAllocator> &) { return value(); }
00168 static const uint64_t static_value1 = 0x9c11728d8a06caf3ULL;
00169 static const uint64_t static_value2 = 0xca3da804eac2711bULL;
00170 };
00171
00172 template<class ContainerAllocator>
00173 struct DataType< ::youbot_overhead_vision::CoordConversionResponse_<ContainerAllocator> > {
00174 static const char* value()
00175 {
00176 return "youbot_overhead_vision/CoordConversionResponse";
00177 }
00178
00179 static const char* value(const ::youbot_overhead_vision::CoordConversionResponse_<ContainerAllocator> &) { return value(); }
00180 };
00181
00182 template<class ContainerAllocator>
00183 struct Definition< ::youbot_overhead_vision::CoordConversionResponse_<ContainerAllocator> > {
00184 static const char* value()
00185 {
00186 return "float32 xConverted\n\
00187 float32 yConverted\n\
00188 \n\
00189 \n\
00190 ";
00191 }
00192
00193 static const char* value(const ::youbot_overhead_vision::CoordConversionResponse_<ContainerAllocator> &) { return value(); }
00194 };
00195
00196 template<class ContainerAllocator> struct IsFixedSize< ::youbot_overhead_vision::CoordConversionResponse_<ContainerAllocator> > : public TrueType {};
00197 }
00198 }
00199
00200 namespace ros
00201 {
00202 namespace serialization
00203 {
00204
00205 template<class ContainerAllocator> struct Serializer< ::youbot_overhead_vision::CoordConversionRequest_<ContainerAllocator> >
00206 {
00207 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00208 {
00209 stream.next(m.x);
00210 stream.next(m.y);
00211 stream.next(m.type);
00212 }
00213
00214 ROS_DECLARE_ALLINONE_SERIALIZER;
00215 };
00216 }
00217 }
00218
00219
00220 namespace ros
00221 {
00222 namespace serialization
00223 {
00224
00225 template<class ContainerAllocator> struct Serializer< ::youbot_overhead_vision::CoordConversionResponse_<ContainerAllocator> >
00226 {
00227 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00228 {
00229 stream.next(m.xConverted);
00230 stream.next(m.yConverted);
00231 }
00232
00233 ROS_DECLARE_ALLINONE_SERIALIZER;
00234 };
00235 }
00236 }
00237
00238 namespace ros
00239 {
00240 namespace service_traits
00241 {
00242 template<>
00243 struct MD5Sum<youbot_overhead_vision::CoordConversion> {
00244 static const char* value()
00245 {
00246 return "48b74b346cf89d5d80c18bc2886cc171";
00247 }
00248
00249 static const char* value(const youbot_overhead_vision::CoordConversion&) { return value(); }
00250 };
00251
00252 template<>
00253 struct DataType<youbot_overhead_vision::CoordConversion> {
00254 static const char* value()
00255 {
00256 return "youbot_overhead_vision/CoordConversion";
00257 }
00258
00259 static const char* value(const youbot_overhead_vision::CoordConversion&) { return value(); }
00260 };
00261
00262 template<class ContainerAllocator>
00263 struct MD5Sum<youbot_overhead_vision::CoordConversionRequest_<ContainerAllocator> > {
00264 static const char* value()
00265 {
00266 return "48b74b346cf89d5d80c18bc2886cc171";
00267 }
00268
00269 static const char* value(const youbot_overhead_vision::CoordConversionRequest_<ContainerAllocator> &) { return value(); }
00270 };
00271
00272 template<class ContainerAllocator>
00273 struct DataType<youbot_overhead_vision::CoordConversionRequest_<ContainerAllocator> > {
00274 static const char* value()
00275 {
00276 return "youbot_overhead_vision/CoordConversion";
00277 }
00278
00279 static const char* value(const youbot_overhead_vision::CoordConversionRequest_<ContainerAllocator> &) { return value(); }
00280 };
00281
00282 template<class ContainerAllocator>
00283 struct MD5Sum<youbot_overhead_vision::CoordConversionResponse_<ContainerAllocator> > {
00284 static const char* value()
00285 {
00286 return "48b74b346cf89d5d80c18bc2886cc171";
00287 }
00288
00289 static const char* value(const youbot_overhead_vision::CoordConversionResponse_<ContainerAllocator> &) { return value(); }
00290 };
00291
00292 template<class ContainerAllocator>
00293 struct DataType<youbot_overhead_vision::CoordConversionResponse_<ContainerAllocator> > {
00294 static const char* value()
00295 {
00296 return "youbot_overhead_vision/CoordConversion";
00297 }
00298
00299 static const char* value(const youbot_overhead_vision::CoordConversionResponse_<ContainerAllocator> &) { return value(); }
00300 };
00301
00302 }
00303 }
00304
00305 #endif // YOUBOT_OVERHEAD_VISION_SERVICE_COORDCONVERSION_H
00306