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