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