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