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