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