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