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