Go to the documentation of this file.00001
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 typedef boost::shared_ptr< ::asebaros::SetVariableRequest_<ContainerAllocator> > Ptr;
00053 typedef boost::shared_ptr< ::asebaros::SetVariableRequest_<ContainerAllocator> const> ConstPtr;
00054 boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00055 };
00056 typedef ::asebaros::SetVariableRequest_<std::allocator<void> > SetVariableRequest;
00057
00058 typedef boost::shared_ptr< ::asebaros::SetVariableRequest> SetVariableRequestPtr;
00059 typedef boost::shared_ptr< ::asebaros::SetVariableRequest const> SetVariableRequestConstPtr;
00060
00061
00062
00063 template <class ContainerAllocator>
00064 struct SetVariableResponse_ {
00065 typedef SetVariableResponse_<ContainerAllocator> Type;
00066
00067 SetVariableResponse_()
00068 {
00069 }
00070
00071 SetVariableResponse_(const ContainerAllocator& _alloc)
00072 {
00073 }
00074
00075
00076 typedef boost::shared_ptr< ::asebaros::SetVariableResponse_<ContainerAllocator> > Ptr;
00077 typedef boost::shared_ptr< ::asebaros::SetVariableResponse_<ContainerAllocator> const> ConstPtr;
00078 boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00079 };
00080 typedef ::asebaros::SetVariableResponse_<std::allocator<void> > SetVariableResponse;
00081
00082 typedef boost::shared_ptr< ::asebaros::SetVariableResponse> SetVariableResponsePtr;
00083 typedef boost::shared_ptr< ::asebaros::SetVariableResponse const> SetVariableResponseConstPtr;
00084
00085
00086 struct SetVariable
00087 {
00088
00089 typedef SetVariableRequest Request;
00090 typedef SetVariableResponse Response;
00091 Request request;
00092 Response response;
00093
00094 typedef Request RequestType;
00095 typedef Response ResponseType;
00096 };
00097 }
00098
00099 namespace ros
00100 {
00101 namespace message_traits
00102 {
00103 template<class ContainerAllocator> struct IsMessage< ::asebaros::SetVariableRequest_<ContainerAllocator> > : public TrueType {};
00104 template<class ContainerAllocator> struct IsMessage< ::asebaros::SetVariableRequest_<ContainerAllocator> const> : public TrueType {};
00105 template<class ContainerAllocator>
00106 struct MD5Sum< ::asebaros::SetVariableRequest_<ContainerAllocator> > {
00107 static const char* value()
00108 {
00109 return "44d6658323411da63b773411b762c345";
00110 }
00111
00112 static const char* value(const ::asebaros::SetVariableRequest_<ContainerAllocator> &) { return value(); }
00113 static const uint64_t static_value1 = 0x44d6658323411da6ULL;
00114 static const uint64_t static_value2 = 0x3b773411b762c345ULL;
00115 };
00116
00117 template<class ContainerAllocator>
00118 struct DataType< ::asebaros::SetVariableRequest_<ContainerAllocator> > {
00119 static const char* value()
00120 {
00121 return "asebaros/SetVariableRequest";
00122 }
00123
00124 static const char* value(const ::asebaros::SetVariableRequest_<ContainerAllocator> &) { return value(); }
00125 };
00126
00127 template<class ContainerAllocator>
00128 struct Definition< ::asebaros::SetVariableRequest_<ContainerAllocator> > {
00129 static const char* value()
00130 {
00131 return "string nodeName\n\
00132 string variableName\n\
00133 int16[] data\n\
00134 \n\
00135 \n\
00136 ";
00137 }
00138
00139 static const char* value(const ::asebaros::SetVariableRequest_<ContainerAllocator> &) { return value(); }
00140 };
00141
00142 }
00143 }
00144
00145
00146 namespace ros
00147 {
00148 namespace message_traits
00149 {
00150 template<class ContainerAllocator> struct IsMessage< ::asebaros::SetVariableResponse_<ContainerAllocator> > : public TrueType {};
00151 template<class ContainerAllocator> struct IsMessage< ::asebaros::SetVariableResponse_<ContainerAllocator> const> : public TrueType {};
00152 template<class ContainerAllocator>
00153 struct MD5Sum< ::asebaros::SetVariableResponse_<ContainerAllocator> > {
00154 static const char* value()
00155 {
00156 return "d41d8cd98f00b204e9800998ecf8427e";
00157 }
00158
00159 static const char* value(const ::asebaros::SetVariableResponse_<ContainerAllocator> &) { return value(); }
00160 static const uint64_t static_value1 = 0xd41d8cd98f00b204ULL;
00161 static const uint64_t static_value2 = 0xe9800998ecf8427eULL;
00162 };
00163
00164 template<class ContainerAllocator>
00165 struct DataType< ::asebaros::SetVariableResponse_<ContainerAllocator> > {
00166 static const char* value()
00167 {
00168 return "asebaros/SetVariableResponse";
00169 }
00170
00171 static const char* value(const ::asebaros::SetVariableResponse_<ContainerAllocator> &) { return value(); }
00172 };
00173
00174 template<class ContainerAllocator>
00175 struct Definition< ::asebaros::SetVariableResponse_<ContainerAllocator> > {
00176 static const char* value()
00177 {
00178 return "\n\
00179 ";
00180 }
00181
00182 static const char* value(const ::asebaros::SetVariableResponse_<ContainerAllocator> &) { return value(); }
00183 };
00184
00185 template<class ContainerAllocator> struct IsFixedSize< ::asebaros::SetVariableResponse_<ContainerAllocator> > : public TrueType {};
00186 }
00187 }
00188
00189 namespace ros
00190 {
00191 namespace serialization
00192 {
00193
00194 template<class ContainerAllocator> struct Serializer< ::asebaros::SetVariableRequest_<ContainerAllocator> >
00195 {
00196 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00197 {
00198 stream.next(m.nodeName);
00199 stream.next(m.variableName);
00200 stream.next(m.data);
00201 }
00202
00203 ROS_DECLARE_ALLINONE_SERIALIZER;
00204 };
00205 }
00206 }
00207
00208
00209 namespace ros
00210 {
00211 namespace serialization
00212 {
00213
00214 template<class ContainerAllocator> struct Serializer< ::asebaros::SetVariableResponse_<ContainerAllocator> >
00215 {
00216 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00217 {
00218 }
00219
00220 ROS_DECLARE_ALLINONE_SERIALIZER;
00221 };
00222 }
00223 }
00224
00225 namespace ros
00226 {
00227 namespace service_traits
00228 {
00229 template<>
00230 struct MD5Sum<asebaros::SetVariable> {
00231 static const char* value()
00232 {
00233 return "44d6658323411da63b773411b762c345";
00234 }
00235
00236 static const char* value(const asebaros::SetVariable&) { return value(); }
00237 };
00238
00239 template<>
00240 struct DataType<asebaros::SetVariable> {
00241 static const char* value()
00242 {
00243 return "asebaros/SetVariable";
00244 }
00245
00246 static const char* value(const asebaros::SetVariable&) { return value(); }
00247 };
00248
00249 template<class ContainerAllocator>
00250 struct MD5Sum<asebaros::SetVariableRequest_<ContainerAllocator> > {
00251 static const char* value()
00252 {
00253 return "44d6658323411da63b773411b762c345";
00254 }
00255
00256 static const char* value(const asebaros::SetVariableRequest_<ContainerAllocator> &) { return value(); }
00257 };
00258
00259 template<class ContainerAllocator>
00260 struct DataType<asebaros::SetVariableRequest_<ContainerAllocator> > {
00261 static const char* value()
00262 {
00263 return "asebaros/SetVariable";
00264 }
00265
00266 static const char* value(const asebaros::SetVariableRequest_<ContainerAllocator> &) { return value(); }
00267 };
00268
00269 template<class ContainerAllocator>
00270 struct MD5Sum<asebaros::SetVariableResponse_<ContainerAllocator> > {
00271 static const char* value()
00272 {
00273 return "44d6658323411da63b773411b762c345";
00274 }
00275
00276 static const char* value(const asebaros::SetVariableResponse_<ContainerAllocator> &) { return value(); }
00277 };
00278
00279 template<class ContainerAllocator>
00280 struct DataType<asebaros::SetVariableResponse_<ContainerAllocator> > {
00281 static const char* value()
00282 {
00283 return "asebaros/SetVariable";
00284 }
00285
00286 static const char* value(const asebaros::SetVariableResponse_<ContainerAllocator> &) { return value(); }
00287 };
00288
00289 }
00290 }
00291
00292 #endif // ASEBAROS_SERVICE_SETVARIABLE_H
00293