$search
00001 /* Auto-generated by genmsg_cpp for file /home/rosbuild/hudson/workspace/doc-electric-ethzasl_message_transport/doc_stacks/2013-03-02_12-29-27.912819/ethzasl_message_transport/throttled_transport/srv/SetThrottlingParameters.srv */ 00002 #ifndef THROTTLED_TRANSPORT_SERVICE_SETTHROTTLINGPARAMETERS_H 00003 #define THROTTLED_TRANSPORT_SERVICE_SETTHROTTLINGPARAMETERS_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 throttled_transport 00023 { 00024 template <class ContainerAllocator> 00025 struct SetThrottlingParametersRequest_ { 00026 typedef SetThrottlingParametersRequest_<ContainerAllocator> Type; 00027 00028 SetThrottlingParametersRequest_() 00029 : throttling_mode() 00030 , max_frequency(0.0) 00031 , max_bandwidth(0.0) 00032 { 00033 } 00034 00035 SetThrottlingParametersRequest_(const ContainerAllocator& _alloc) 00036 : throttling_mode(_alloc) 00037 , max_frequency(0.0) 00038 , max_bandwidth(0.0) 00039 { 00040 } 00041 00042 typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _throttling_mode_type; 00043 std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > throttling_mode; 00044 00045 typedef float _max_frequency_type; 00046 float max_frequency; 00047 00048 typedef float _max_bandwidth_type; 00049 float max_bandwidth; 00050 00051 00052 private: 00053 static const char* __s_getDataType_() { return "throttled_transport/SetThrottlingParametersRequest"; } 00054 public: 00055 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00056 00057 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00058 00059 private: 00060 static const char* __s_getMD5Sum_() { return "50cf0f51c8cc02031c322ecf054f5f39"; } 00061 public: 00062 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00063 00064 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00065 00066 private: 00067 static const char* __s_getServerMD5Sum_() { return "1171dbf4537d0192990c184bda16de61"; } 00068 public: 00069 ROS_DEPRECATED static const std::string __s_getServerMD5Sum() { return __s_getServerMD5Sum_(); } 00070 00071 ROS_DEPRECATED const std::string __getServerMD5Sum() const { return __s_getServerMD5Sum_(); } 00072 00073 private: 00074 static const char* __s_getMessageDefinition_() { return "\n\ 00075 string throttling_mode\n\ 00076 \n\ 00077 float32 max_frequency\n\ 00078 float32 max_bandwidth\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, throttling_mode); 00090 ros::serialization::serialize(stream, max_frequency); 00091 ros::serialization::serialize(stream, max_bandwidth); 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, throttling_mode); 00099 ros::serialization::deserialize(stream, max_frequency); 00100 ros::serialization::deserialize(stream, max_bandwidth); 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(throttling_mode); 00108 size += ros::serialization::serializationLength(max_frequency); 00109 size += ros::serialization::serializationLength(max_bandwidth); 00110 return size; 00111 } 00112 00113 typedef boost::shared_ptr< ::throttled_transport::SetThrottlingParametersRequest_<ContainerAllocator> > Ptr; 00114 typedef boost::shared_ptr< ::throttled_transport::SetThrottlingParametersRequest_<ContainerAllocator> const> ConstPtr; 00115 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00116 }; // struct SetThrottlingParametersRequest 00117 typedef ::throttled_transport::SetThrottlingParametersRequest_<std::allocator<void> > SetThrottlingParametersRequest; 00118 00119 typedef boost::shared_ptr< ::throttled_transport::SetThrottlingParametersRequest> SetThrottlingParametersRequestPtr; 00120 typedef boost::shared_ptr< ::throttled_transport::SetThrottlingParametersRequest const> SetThrottlingParametersRequestConstPtr; 00121 00122 00123 template <class ContainerAllocator> 00124 struct SetThrottlingParametersResponse_ { 00125 typedef SetThrottlingParametersResponse_<ContainerAllocator> Type; 00126 00127 SetThrottlingParametersResponse_() 00128 : result(0) 00129 { 00130 } 00131 00132 SetThrottlingParametersResponse_(const ContainerAllocator& _alloc) 00133 : result(0) 00134 { 00135 } 00136 00137 typedef int32_t _result_type; 00138 int32_t result; 00139 00140 00141 private: 00142 static const char* __s_getDataType_() { return "throttled_transport/SetThrottlingParametersResponse"; } 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 "034a8e20d6a306665e3a5b340fab3f09"; } 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 "1171dbf4537d0192990c184bda16de61"; } 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 "int32 result\n\ 00164 \n\ 00165 \n\ 00166 "; } 00167 public: 00168 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00169 00170 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00171 00172 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00173 { 00174 ros::serialization::OStream stream(write_ptr, 1000000000); 00175 ros::serialization::serialize(stream, result); 00176 return stream.getData(); 00177 } 00178 00179 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00180 { 00181 ros::serialization::IStream stream(read_ptr, 1000000000); 00182 ros::serialization::deserialize(stream, result); 00183 return stream.getData(); 00184 } 00185 00186 ROS_DEPRECATED virtual uint32_t serializationLength() const 00187 { 00188 uint32_t size = 0; 00189 size += ros::serialization::serializationLength(result); 00190 return size; 00191 } 00192 00193 typedef boost::shared_ptr< ::throttled_transport::SetThrottlingParametersResponse_<ContainerAllocator> > Ptr; 00194 typedef boost::shared_ptr< ::throttled_transport::SetThrottlingParametersResponse_<ContainerAllocator> const> ConstPtr; 00195 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00196 }; // struct SetThrottlingParametersResponse 00197 typedef ::throttled_transport::SetThrottlingParametersResponse_<std::allocator<void> > SetThrottlingParametersResponse; 00198 00199 typedef boost::shared_ptr< ::throttled_transport::SetThrottlingParametersResponse> SetThrottlingParametersResponsePtr; 00200 typedef boost::shared_ptr< ::throttled_transport::SetThrottlingParametersResponse const> SetThrottlingParametersResponseConstPtr; 00201 00202 struct SetThrottlingParameters 00203 { 00204 00205 typedef SetThrottlingParametersRequest Request; 00206 typedef SetThrottlingParametersResponse Response; 00207 Request request; 00208 Response response; 00209 00210 typedef Request RequestType; 00211 typedef Response ResponseType; 00212 }; // struct SetThrottlingParameters 00213 } // namespace throttled_transport 00214 00215 namespace ros 00216 { 00217 namespace message_traits 00218 { 00219 template<class ContainerAllocator> struct IsMessage< ::throttled_transport::SetThrottlingParametersRequest_<ContainerAllocator> > : public TrueType {}; 00220 template<class ContainerAllocator> struct IsMessage< ::throttled_transport::SetThrottlingParametersRequest_<ContainerAllocator> const> : public TrueType {}; 00221 template<class ContainerAllocator> 00222 struct MD5Sum< ::throttled_transport::SetThrottlingParametersRequest_<ContainerAllocator> > { 00223 static const char* value() 00224 { 00225 return "50cf0f51c8cc02031c322ecf054f5f39"; 00226 } 00227 00228 static const char* value(const ::throttled_transport::SetThrottlingParametersRequest_<ContainerAllocator> &) { return value(); } 00229 static const uint64_t static_value1 = 0x50cf0f51c8cc0203ULL; 00230 static const uint64_t static_value2 = 0x1c322ecf054f5f39ULL; 00231 }; 00232 00233 template<class ContainerAllocator> 00234 struct DataType< ::throttled_transport::SetThrottlingParametersRequest_<ContainerAllocator> > { 00235 static const char* value() 00236 { 00237 return "throttled_transport/SetThrottlingParametersRequest"; 00238 } 00239 00240 static const char* value(const ::throttled_transport::SetThrottlingParametersRequest_<ContainerAllocator> &) { return value(); } 00241 }; 00242 00243 template<class ContainerAllocator> 00244 struct Definition< ::throttled_transport::SetThrottlingParametersRequest_<ContainerAllocator> > { 00245 static const char* value() 00246 { 00247 return "\n\ 00248 string throttling_mode\n\ 00249 \n\ 00250 float32 max_frequency\n\ 00251 float32 max_bandwidth\n\ 00252 \n\ 00253 "; 00254 } 00255 00256 static const char* value(const ::throttled_transport::SetThrottlingParametersRequest_<ContainerAllocator> &) { return value(); } 00257 }; 00258 00259 } // namespace message_traits 00260 } // namespace ros 00261 00262 00263 namespace ros 00264 { 00265 namespace message_traits 00266 { 00267 template<class ContainerAllocator> struct IsMessage< ::throttled_transport::SetThrottlingParametersResponse_<ContainerAllocator> > : public TrueType {}; 00268 template<class ContainerAllocator> struct IsMessage< ::throttled_transport::SetThrottlingParametersResponse_<ContainerAllocator> const> : public TrueType {}; 00269 template<class ContainerAllocator> 00270 struct MD5Sum< ::throttled_transport::SetThrottlingParametersResponse_<ContainerAllocator> > { 00271 static const char* value() 00272 { 00273 return "034a8e20d6a306665e3a5b340fab3f09"; 00274 } 00275 00276 static const char* value(const ::throttled_transport::SetThrottlingParametersResponse_<ContainerAllocator> &) { return value(); } 00277 static const uint64_t static_value1 = 0x034a8e20d6a30666ULL; 00278 static const uint64_t static_value2 = 0x5e3a5b340fab3f09ULL; 00279 }; 00280 00281 template<class ContainerAllocator> 00282 struct DataType< ::throttled_transport::SetThrottlingParametersResponse_<ContainerAllocator> > { 00283 static const char* value() 00284 { 00285 return "throttled_transport/SetThrottlingParametersResponse"; 00286 } 00287 00288 static const char* value(const ::throttled_transport::SetThrottlingParametersResponse_<ContainerAllocator> &) { return value(); } 00289 }; 00290 00291 template<class ContainerAllocator> 00292 struct Definition< ::throttled_transport::SetThrottlingParametersResponse_<ContainerAllocator> > { 00293 static const char* value() 00294 { 00295 return "int32 result\n\ 00296 \n\ 00297 \n\ 00298 "; 00299 } 00300 00301 static const char* value(const ::throttled_transport::SetThrottlingParametersResponse_<ContainerAllocator> &) { return value(); } 00302 }; 00303 00304 template<class ContainerAllocator> struct IsFixedSize< ::throttled_transport::SetThrottlingParametersResponse_<ContainerAllocator> > : public TrueType {}; 00305 } // namespace message_traits 00306 } // namespace ros 00307 00308 namespace ros 00309 { 00310 namespace serialization 00311 { 00312 00313 template<class ContainerAllocator> struct Serializer< ::throttled_transport::SetThrottlingParametersRequest_<ContainerAllocator> > 00314 { 00315 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00316 { 00317 stream.next(m.throttling_mode); 00318 stream.next(m.max_frequency); 00319 stream.next(m.max_bandwidth); 00320 } 00321 00322 ROS_DECLARE_ALLINONE_SERIALIZER; 00323 }; // struct SetThrottlingParametersRequest_ 00324 } // namespace serialization 00325 } // namespace ros 00326 00327 00328 namespace ros 00329 { 00330 namespace serialization 00331 { 00332 00333 template<class ContainerAllocator> struct Serializer< ::throttled_transport::SetThrottlingParametersResponse_<ContainerAllocator> > 00334 { 00335 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00336 { 00337 stream.next(m.result); 00338 } 00339 00340 ROS_DECLARE_ALLINONE_SERIALIZER; 00341 }; // struct SetThrottlingParametersResponse_ 00342 } // namespace serialization 00343 } // namespace ros 00344 00345 namespace ros 00346 { 00347 namespace service_traits 00348 { 00349 template<> 00350 struct MD5Sum<throttled_transport::SetThrottlingParameters> { 00351 static const char* value() 00352 { 00353 return "1171dbf4537d0192990c184bda16de61"; 00354 } 00355 00356 static const char* value(const throttled_transport::SetThrottlingParameters&) { return value(); } 00357 }; 00358 00359 template<> 00360 struct DataType<throttled_transport::SetThrottlingParameters> { 00361 static const char* value() 00362 { 00363 return "throttled_transport/SetThrottlingParameters"; 00364 } 00365 00366 static const char* value(const throttled_transport::SetThrottlingParameters&) { return value(); } 00367 }; 00368 00369 template<class ContainerAllocator> 00370 struct MD5Sum<throttled_transport::SetThrottlingParametersRequest_<ContainerAllocator> > { 00371 static const char* value() 00372 { 00373 return "1171dbf4537d0192990c184bda16de61"; 00374 } 00375 00376 static const char* value(const throttled_transport::SetThrottlingParametersRequest_<ContainerAllocator> &) { return value(); } 00377 }; 00378 00379 template<class ContainerAllocator> 00380 struct DataType<throttled_transport::SetThrottlingParametersRequest_<ContainerAllocator> > { 00381 static const char* value() 00382 { 00383 return "throttled_transport/SetThrottlingParameters"; 00384 } 00385 00386 static const char* value(const throttled_transport::SetThrottlingParametersRequest_<ContainerAllocator> &) { return value(); } 00387 }; 00388 00389 template<class ContainerAllocator> 00390 struct MD5Sum<throttled_transport::SetThrottlingParametersResponse_<ContainerAllocator> > { 00391 static const char* value() 00392 { 00393 return "1171dbf4537d0192990c184bda16de61"; 00394 } 00395 00396 static const char* value(const throttled_transport::SetThrottlingParametersResponse_<ContainerAllocator> &) { return value(); } 00397 }; 00398 00399 template<class ContainerAllocator> 00400 struct DataType<throttled_transport::SetThrottlingParametersResponse_<ContainerAllocator> > { 00401 static const char* value() 00402 { 00403 return "throttled_transport/SetThrottlingParameters"; 00404 } 00405 00406 static const char* value(const throttled_transport::SetThrottlingParametersResponse_<ContainerAllocator> &) { return value(); } 00407 }; 00408 00409 } // namespace service_traits 00410 } // namespace ros 00411 00412 #endif // THROTTLED_TRANSPORT_SERVICE_SETTHROTTLINGPARAMETERS_H 00413