Go to the documentation of this file.00001
00002 #ifndef ROBOT_MASK_SERVICE_GETMASK_H
00003 #define ROBOT_MASK_SERVICE_GETMASK_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 #include "tf/tfMessage.h"
00020
00021
00022
00023 namespace robot_mask
00024 {
00025 template <class ContainerAllocator>
00026 struct GetMaskRequest_ {
00027 typedef GetMaskRequest_<ContainerAllocator> Type;
00028
00029 GetMaskRequest_()
00030 : width(0)
00031 , height(0)
00032 , fovy(0.0)
00033 , camera_frame()
00034 , tf_state()
00035 {
00036 }
00037
00038 GetMaskRequest_(const ContainerAllocator& _alloc)
00039 : width(0)
00040 , height(0)
00041 , fovy(0.0)
00042 , camera_frame(_alloc)
00043 , tf_state(_alloc)
00044 {
00045 }
00046
00047 typedef uint32_t _width_type;
00048 uint32_t width;
00049
00050 typedef uint32_t _height_type;
00051 uint32_t height;
00052
00053 typedef double _fovy_type;
00054 double fovy;
00055
00056 typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _camera_frame_type;
00057 std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > camera_frame;
00058
00059 typedef ::tf::tfMessage_<ContainerAllocator> _tf_state_type;
00060 ::tf::tfMessage_<ContainerAllocator> tf_state;
00061
00062
00063 typedef boost::shared_ptr< ::robot_mask::GetMaskRequest_<ContainerAllocator> > Ptr;
00064 typedef boost::shared_ptr< ::robot_mask::GetMaskRequest_<ContainerAllocator> const> ConstPtr;
00065 boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00066 };
00067 typedef ::robot_mask::GetMaskRequest_<std::allocator<void> > GetMaskRequest;
00068
00069 typedef boost::shared_ptr< ::robot_mask::GetMaskRequest> GetMaskRequestPtr;
00070 typedef boost::shared_ptr< ::robot_mask::GetMaskRequest const> GetMaskRequestConstPtr;
00071
00072
00073 template <class ContainerAllocator>
00074 struct GetMaskResponse_ {
00075 typedef GetMaskResponse_<ContainerAllocator> Type;
00076
00077 GetMaskResponse_()
00078 : mask()
00079 {
00080 }
00081
00082 GetMaskResponse_(const ContainerAllocator& _alloc)
00083 : mask(_alloc)
00084 {
00085 }
00086
00087 typedef std::vector<uint8_t, typename ContainerAllocator::template rebind<uint8_t>::other > _mask_type;
00088 std::vector<uint8_t, typename ContainerAllocator::template rebind<uint8_t>::other > mask;
00089
00090
00091 typedef boost::shared_ptr< ::robot_mask::GetMaskResponse_<ContainerAllocator> > Ptr;
00092 typedef boost::shared_ptr< ::robot_mask::GetMaskResponse_<ContainerAllocator> const> ConstPtr;
00093 boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00094 };
00095 typedef ::robot_mask::GetMaskResponse_<std::allocator<void> > GetMaskResponse;
00096
00097 typedef boost::shared_ptr< ::robot_mask::GetMaskResponse> GetMaskResponsePtr;
00098 typedef boost::shared_ptr< ::robot_mask::GetMaskResponse const> GetMaskResponseConstPtr;
00099
00100 struct GetMask
00101 {
00102
00103 typedef GetMaskRequest Request;
00104 typedef GetMaskResponse Response;
00105 Request request;
00106 Response response;
00107
00108 typedef Request RequestType;
00109 typedef Response ResponseType;
00110 };
00111 }
00112
00113 namespace ros
00114 {
00115 namespace message_traits
00116 {
00117 template<class ContainerAllocator> struct IsMessage< ::robot_mask::GetMaskRequest_<ContainerAllocator> > : public TrueType {};
00118 template<class ContainerAllocator> struct IsMessage< ::robot_mask::GetMaskRequest_<ContainerAllocator> const> : public TrueType {};
00119 template<class ContainerAllocator>
00120 struct MD5Sum< ::robot_mask::GetMaskRequest_<ContainerAllocator> > {
00121 static const char* value()
00122 {
00123 return "e06981e5d05f6c91b2b3a722838ed210";
00124 }
00125
00126 static const char* value(const ::robot_mask::GetMaskRequest_<ContainerAllocator> &) { return value(); }
00127 static const uint64_t static_value1 = 0xe06981e5d05f6c91ULL;
00128 static const uint64_t static_value2 = 0xb2b3a722838ed210ULL;
00129 };
00130
00131 template<class ContainerAllocator>
00132 struct DataType< ::robot_mask::GetMaskRequest_<ContainerAllocator> > {
00133 static const char* value()
00134 {
00135 return "robot_mask/GetMaskRequest";
00136 }
00137
00138 static const char* value(const ::robot_mask::GetMaskRequest_<ContainerAllocator> &) { return value(); }
00139 };
00140
00141 template<class ContainerAllocator>
00142 struct Definition< ::robot_mask::GetMaskRequest_<ContainerAllocator> > {
00143 static const char* value()
00144 {
00145 return "uint32 width\n\
00146 uint32 height\n\
00147 float64 fovy\n\
00148 string camera_frame\n\
00149 tf/tfMessage tf_state\n\
00150 \n\
00151 ================================================================================\n\
00152 MSG: tf/tfMessage\n\
00153 geometry_msgs/TransformStamped[] transforms\n\
00154 \n\
00155 ================================================================================\n\
00156 MSG: geometry_msgs/TransformStamped\n\
00157 # This expresses a transform from coordinate frame header.frame_id\n\
00158 # to the coordinate frame child_frame_id\n\
00159 #\n\
00160 # This message is mostly used by the \n\
00161 # <a href=\"http://www.ros.org/wiki/tf\">tf</a> package. \n\
00162 # See it's documentation for more information.\n\
00163 \n\
00164 Header header\n\
00165 string child_frame_id # the frame id of the child frame\n\
00166 Transform transform\n\
00167 \n\
00168 ================================================================================\n\
00169 MSG: std_msgs/Header\n\
00170 # Standard metadata for higher-level stamped data types.\n\
00171 # This is generally used to communicate timestamped data \n\
00172 # in a particular coordinate frame.\n\
00173 # \n\
00174 # sequence ID: consecutively increasing ID \n\
00175 uint32 seq\n\
00176 #Two-integer timestamp that is expressed as:\n\
00177 # * stamp.secs: seconds (stamp_secs) since epoch\n\
00178 # * stamp.nsecs: nanoseconds since stamp_secs\n\
00179 # time-handling sugar is provided by the client library\n\
00180 time stamp\n\
00181 #Frame this data is associated with\n\
00182 # 0: no frame\n\
00183 # 1: global frame\n\
00184 string frame_id\n\
00185 \n\
00186 ================================================================================\n\
00187 MSG: geometry_msgs/Transform\n\
00188 # This represents the transform between two coordinate frames in free space.\n\
00189 \n\
00190 Vector3 translation\n\
00191 Quaternion rotation\n\
00192 \n\
00193 ================================================================================\n\
00194 MSG: geometry_msgs/Vector3\n\
00195 # This represents a vector in free space. \n\
00196 \n\
00197 float64 x\n\
00198 float64 y\n\
00199 float64 z\n\
00200 ================================================================================\n\
00201 MSG: geometry_msgs/Quaternion\n\
00202 # This represents an orientation in free space in quaternion form.\n\
00203 \n\
00204 float64 x\n\
00205 float64 y\n\
00206 float64 z\n\
00207 float64 w\n\
00208 \n\
00209 ";
00210 }
00211
00212 static const char* value(const ::robot_mask::GetMaskRequest_<ContainerAllocator> &) { return value(); }
00213 };
00214
00215 }
00216 }
00217
00218
00219 namespace ros
00220 {
00221 namespace message_traits
00222 {
00223 template<class ContainerAllocator> struct IsMessage< ::robot_mask::GetMaskResponse_<ContainerAllocator> > : public TrueType {};
00224 template<class ContainerAllocator> struct IsMessage< ::robot_mask::GetMaskResponse_<ContainerAllocator> const> : public TrueType {};
00225 template<class ContainerAllocator>
00226 struct MD5Sum< ::robot_mask::GetMaskResponse_<ContainerAllocator> > {
00227 static const char* value()
00228 {
00229 return "a13c3956372804bc48f4d40be0c229eb";
00230 }
00231
00232 static const char* value(const ::robot_mask::GetMaskResponse_<ContainerAllocator> &) { return value(); }
00233 static const uint64_t static_value1 = 0xa13c3956372804bcULL;
00234 static const uint64_t static_value2 = 0x48f4d40be0c229ebULL;
00235 };
00236
00237 template<class ContainerAllocator>
00238 struct DataType< ::robot_mask::GetMaskResponse_<ContainerAllocator> > {
00239 static const char* value()
00240 {
00241 return "robot_mask/GetMaskResponse";
00242 }
00243
00244 static const char* value(const ::robot_mask::GetMaskResponse_<ContainerAllocator> &) { return value(); }
00245 };
00246
00247 template<class ContainerAllocator>
00248 struct Definition< ::robot_mask::GetMaskResponse_<ContainerAllocator> > {
00249 static const char* value()
00250 {
00251 return "uint8[] mask\n\
00252 \n\
00253 \n\
00254 ";
00255 }
00256
00257 static const char* value(const ::robot_mask::GetMaskResponse_<ContainerAllocator> &) { return value(); }
00258 };
00259
00260 }
00261 }
00262
00263 namespace ros
00264 {
00265 namespace serialization
00266 {
00267
00268 template<class ContainerAllocator> struct Serializer< ::robot_mask::GetMaskRequest_<ContainerAllocator> >
00269 {
00270 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00271 {
00272 stream.next(m.width);
00273 stream.next(m.height);
00274 stream.next(m.fovy);
00275 stream.next(m.camera_frame);
00276 stream.next(m.tf_state);
00277 }
00278
00279 ROS_DECLARE_ALLINONE_SERIALIZER;
00280 };
00281 }
00282 }
00283
00284
00285 namespace ros
00286 {
00287 namespace serialization
00288 {
00289
00290 template<class ContainerAllocator> struct Serializer< ::robot_mask::GetMaskResponse_<ContainerAllocator> >
00291 {
00292 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00293 {
00294 stream.next(m.mask);
00295 }
00296
00297 ROS_DECLARE_ALLINONE_SERIALIZER;
00298 };
00299 }
00300 }
00301
00302 namespace ros
00303 {
00304 namespace service_traits
00305 {
00306 template<>
00307 struct MD5Sum<robot_mask::GetMask> {
00308 static const char* value()
00309 {
00310 return "99290833e40d59c68357cbb73b9680b3";
00311 }
00312
00313 static const char* value(const robot_mask::GetMask&) { return value(); }
00314 };
00315
00316 template<>
00317 struct DataType<robot_mask::GetMask> {
00318 static const char* value()
00319 {
00320 return "robot_mask/GetMask";
00321 }
00322
00323 static const char* value(const robot_mask::GetMask&) { return value(); }
00324 };
00325
00326 template<class ContainerAllocator>
00327 struct MD5Sum<robot_mask::GetMaskRequest_<ContainerAllocator> > {
00328 static const char* value()
00329 {
00330 return "99290833e40d59c68357cbb73b9680b3";
00331 }
00332
00333 static const char* value(const robot_mask::GetMaskRequest_<ContainerAllocator> &) { return value(); }
00334 };
00335
00336 template<class ContainerAllocator>
00337 struct DataType<robot_mask::GetMaskRequest_<ContainerAllocator> > {
00338 static const char* value()
00339 {
00340 return "robot_mask/GetMask";
00341 }
00342
00343 static const char* value(const robot_mask::GetMaskRequest_<ContainerAllocator> &) { return value(); }
00344 };
00345
00346 template<class ContainerAllocator>
00347 struct MD5Sum<robot_mask::GetMaskResponse_<ContainerAllocator> > {
00348 static const char* value()
00349 {
00350 return "99290833e40d59c68357cbb73b9680b3";
00351 }
00352
00353 static const char* value(const robot_mask::GetMaskResponse_<ContainerAllocator> &) { return value(); }
00354 };
00355
00356 template<class ContainerAllocator>
00357 struct DataType<robot_mask::GetMaskResponse_<ContainerAllocator> > {
00358 static const char* value()
00359 {
00360 return "robot_mask/GetMask";
00361 }
00362
00363 static const char* value(const robot_mask::GetMaskResponse_<ContainerAllocator> &) { return value(); }
00364 };
00365
00366 }
00367 }
00368
00369 #endif // ROBOT_MASK_SERVICE_GETMASK_H
00370