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