$search
00001 /* Auto-generated by genmsg_cpp for file /home/rosbuild/hudson/workspace/doc-electric-arbotix/doc_stacks/2013-03-01_14-04-13.532425/arbotix/arbotix_msgs/srv/SetupChannel.srv */ 00002 #ifndef ARBOTIX_MSGS_SERVICE_SETUPCHANNEL_H 00003 #define ARBOTIX_MSGS_SERVICE_SETUPCHANNEL_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 arbotix_msgs 00023 { 00024 template <class ContainerAllocator> 00025 struct SetupChannelRequest_ { 00026 typedef SetupChannelRequest_<ContainerAllocator> Type; 00027 00028 SetupChannelRequest_() 00029 : topic_name() 00030 , pin(0) 00031 , value(0) 00032 , rate(0) 00033 { 00034 } 00035 00036 SetupChannelRequest_(const ContainerAllocator& _alloc) 00037 : topic_name(_alloc) 00038 , pin(0) 00039 , value(0) 00040 , rate(0) 00041 { 00042 } 00043 00044 typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _topic_name_type; 00045 std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > topic_name; 00046 00047 typedef uint8_t _pin_type; 00048 uint8_t pin; 00049 00050 typedef uint8_t _value_type; 00051 uint8_t value; 00052 00053 typedef uint8_t _rate_type; 00054 uint8_t rate; 00055 00056 00057 private: 00058 static const char* __s_getDataType_() { return "arbotix_msgs/SetupChannelRequest"; } 00059 public: 00060 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00061 00062 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00063 00064 private: 00065 static const char* __s_getMD5Sum_() { return "c65e58d8b3b4d406126f6dc829a6011f"; } 00066 public: 00067 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00068 00069 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00070 00071 private: 00072 static const char* __s_getServerMD5Sum_() { return "c65e58d8b3b4d406126f6dc829a6011f"; } 00073 public: 00074 ROS_DEPRECATED static const std::string __s_getServerMD5Sum() { return __s_getServerMD5Sum_(); } 00075 00076 ROS_DEPRECATED const std::string __getServerMD5Sum() const { return __s_getServerMD5Sum_(); } 00077 00078 private: 00079 static const char* __s_getMessageDefinition_() { return "\n\ 00080 string topic_name\n\ 00081 uint8 pin\n\ 00082 uint8 value\n\ 00083 uint8 rate\n\ 00084 \n\ 00085 "; } 00086 public: 00087 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00088 00089 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00090 00091 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00092 { 00093 ros::serialization::OStream stream(write_ptr, 1000000000); 00094 ros::serialization::serialize(stream, topic_name); 00095 ros::serialization::serialize(stream, pin); 00096 ros::serialization::serialize(stream, value); 00097 ros::serialization::serialize(stream, rate); 00098 return stream.getData(); 00099 } 00100 00101 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00102 { 00103 ros::serialization::IStream stream(read_ptr, 1000000000); 00104 ros::serialization::deserialize(stream, topic_name); 00105 ros::serialization::deserialize(stream, pin); 00106 ros::serialization::deserialize(stream, value); 00107 ros::serialization::deserialize(stream, rate); 00108 return stream.getData(); 00109 } 00110 00111 ROS_DEPRECATED virtual uint32_t serializationLength() const 00112 { 00113 uint32_t size = 0; 00114 size += ros::serialization::serializationLength(topic_name); 00115 size += ros::serialization::serializationLength(pin); 00116 size += ros::serialization::serializationLength(value); 00117 size += ros::serialization::serializationLength(rate); 00118 return size; 00119 } 00120 00121 typedef boost::shared_ptr< ::arbotix_msgs::SetupChannelRequest_<ContainerAllocator> > Ptr; 00122 typedef boost::shared_ptr< ::arbotix_msgs::SetupChannelRequest_<ContainerAllocator> const> ConstPtr; 00123 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00124 }; // struct SetupChannelRequest 00125 typedef ::arbotix_msgs::SetupChannelRequest_<std::allocator<void> > SetupChannelRequest; 00126 00127 typedef boost::shared_ptr< ::arbotix_msgs::SetupChannelRequest> SetupChannelRequestPtr; 00128 typedef boost::shared_ptr< ::arbotix_msgs::SetupChannelRequest const> SetupChannelRequestConstPtr; 00129 00130 00131 template <class ContainerAllocator> 00132 struct SetupChannelResponse_ { 00133 typedef SetupChannelResponse_<ContainerAllocator> Type; 00134 00135 SetupChannelResponse_() 00136 { 00137 } 00138 00139 SetupChannelResponse_(const ContainerAllocator& _alloc) 00140 { 00141 } 00142 00143 00144 private: 00145 static const char* __s_getDataType_() { return "arbotix_msgs/SetupChannelResponse"; } 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 "d41d8cd98f00b204e9800998ecf8427e"; } 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 "c65e58d8b3b4d406126f6dc829a6011f"; } 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 \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 return stream.getData(); 00179 } 00180 00181 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00182 { 00183 ros::serialization::IStream stream(read_ptr, 1000000000); 00184 return stream.getData(); 00185 } 00186 00187 ROS_DEPRECATED virtual uint32_t serializationLength() const 00188 { 00189 uint32_t size = 0; 00190 return size; 00191 } 00192 00193 typedef boost::shared_ptr< ::arbotix_msgs::SetupChannelResponse_<ContainerAllocator> > Ptr; 00194 typedef boost::shared_ptr< ::arbotix_msgs::SetupChannelResponse_<ContainerAllocator> const> ConstPtr; 00195 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00196 }; // struct SetupChannelResponse 00197 typedef ::arbotix_msgs::SetupChannelResponse_<std::allocator<void> > SetupChannelResponse; 00198 00199 typedef boost::shared_ptr< ::arbotix_msgs::SetupChannelResponse> SetupChannelResponsePtr; 00200 typedef boost::shared_ptr< ::arbotix_msgs::SetupChannelResponse const> SetupChannelResponseConstPtr; 00201 00202 struct SetupChannel 00203 { 00204 00205 typedef SetupChannelRequest Request; 00206 typedef SetupChannelResponse Response; 00207 Request request; 00208 Response response; 00209 00210 typedef Request RequestType; 00211 typedef Response ResponseType; 00212 }; // struct SetupChannel 00213 } // namespace arbotix_msgs 00214 00215 namespace ros 00216 { 00217 namespace message_traits 00218 { 00219 template<class ContainerAllocator> struct IsMessage< ::arbotix_msgs::SetupChannelRequest_<ContainerAllocator> > : public TrueType {}; 00220 template<class ContainerAllocator> struct IsMessage< ::arbotix_msgs::SetupChannelRequest_<ContainerAllocator> const> : public TrueType {}; 00221 template<class ContainerAllocator> 00222 struct MD5Sum< ::arbotix_msgs::SetupChannelRequest_<ContainerAllocator> > { 00223 static const char* value() 00224 { 00225 return "c65e58d8b3b4d406126f6dc829a6011f"; 00226 } 00227 00228 static const char* value(const ::arbotix_msgs::SetupChannelRequest_<ContainerAllocator> &) { return value(); } 00229 static const uint64_t static_value1 = 0xc65e58d8b3b4d406ULL; 00230 static const uint64_t static_value2 = 0x126f6dc829a6011fULL; 00231 }; 00232 00233 template<class ContainerAllocator> 00234 struct DataType< ::arbotix_msgs::SetupChannelRequest_<ContainerAllocator> > { 00235 static const char* value() 00236 { 00237 return "arbotix_msgs/SetupChannelRequest"; 00238 } 00239 00240 static const char* value(const ::arbotix_msgs::SetupChannelRequest_<ContainerAllocator> &) { return value(); } 00241 }; 00242 00243 template<class ContainerAllocator> 00244 struct Definition< ::arbotix_msgs::SetupChannelRequest_<ContainerAllocator> > { 00245 static const char* value() 00246 { 00247 return "\n\ 00248 string topic_name\n\ 00249 uint8 pin\n\ 00250 uint8 value\n\ 00251 uint8 rate\n\ 00252 \n\ 00253 "; 00254 } 00255 00256 static const char* value(const ::arbotix_msgs::SetupChannelRequest_<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< ::arbotix_msgs::SetupChannelResponse_<ContainerAllocator> > : public TrueType {}; 00268 template<class ContainerAllocator> struct IsMessage< ::arbotix_msgs::SetupChannelResponse_<ContainerAllocator> const> : public TrueType {}; 00269 template<class ContainerAllocator> 00270 struct MD5Sum< ::arbotix_msgs::SetupChannelResponse_<ContainerAllocator> > { 00271 static const char* value() 00272 { 00273 return "d41d8cd98f00b204e9800998ecf8427e"; 00274 } 00275 00276 static const char* value(const ::arbotix_msgs::SetupChannelResponse_<ContainerAllocator> &) { return value(); } 00277 static const uint64_t static_value1 = 0xd41d8cd98f00b204ULL; 00278 static const uint64_t static_value2 = 0xe9800998ecf8427eULL; 00279 }; 00280 00281 template<class ContainerAllocator> 00282 struct DataType< ::arbotix_msgs::SetupChannelResponse_<ContainerAllocator> > { 00283 static const char* value() 00284 { 00285 return "arbotix_msgs/SetupChannelResponse"; 00286 } 00287 00288 static const char* value(const ::arbotix_msgs::SetupChannelResponse_<ContainerAllocator> &) { return value(); } 00289 }; 00290 00291 template<class ContainerAllocator> 00292 struct Definition< ::arbotix_msgs::SetupChannelResponse_<ContainerAllocator> > { 00293 static const char* value() 00294 { 00295 return "\n\ 00296 \n\ 00297 \n\ 00298 "; 00299 } 00300 00301 static const char* value(const ::arbotix_msgs::SetupChannelResponse_<ContainerAllocator> &) { return value(); } 00302 }; 00303 00304 template<class ContainerAllocator> struct IsFixedSize< ::arbotix_msgs::SetupChannelResponse_<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< ::arbotix_msgs::SetupChannelRequest_<ContainerAllocator> > 00314 { 00315 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00316 { 00317 stream.next(m.topic_name); 00318 stream.next(m.pin); 00319 stream.next(m.value); 00320 stream.next(m.rate); 00321 } 00322 00323 ROS_DECLARE_ALLINONE_SERIALIZER; 00324 }; // struct SetupChannelRequest_ 00325 } // namespace serialization 00326 } // namespace ros 00327 00328 00329 namespace ros 00330 { 00331 namespace serialization 00332 { 00333 00334 template<class ContainerAllocator> struct Serializer< ::arbotix_msgs::SetupChannelResponse_<ContainerAllocator> > 00335 { 00336 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00337 { 00338 } 00339 00340 ROS_DECLARE_ALLINONE_SERIALIZER; 00341 }; // struct SetupChannelResponse_ 00342 } // namespace serialization 00343 } // namespace ros 00344 00345 namespace ros 00346 { 00347 namespace service_traits 00348 { 00349 template<> 00350 struct MD5Sum<arbotix_msgs::SetupChannel> { 00351 static const char* value() 00352 { 00353 return "c65e58d8b3b4d406126f6dc829a6011f"; 00354 } 00355 00356 static const char* value(const arbotix_msgs::SetupChannel&) { return value(); } 00357 }; 00358 00359 template<> 00360 struct DataType<arbotix_msgs::SetupChannel> { 00361 static const char* value() 00362 { 00363 return "arbotix_msgs/SetupChannel"; 00364 } 00365 00366 static const char* value(const arbotix_msgs::SetupChannel&) { return value(); } 00367 }; 00368 00369 template<class ContainerAllocator> 00370 struct MD5Sum<arbotix_msgs::SetupChannelRequest_<ContainerAllocator> > { 00371 static const char* value() 00372 { 00373 return "c65e58d8b3b4d406126f6dc829a6011f"; 00374 } 00375 00376 static const char* value(const arbotix_msgs::SetupChannelRequest_<ContainerAllocator> &) { return value(); } 00377 }; 00378 00379 template<class ContainerAllocator> 00380 struct DataType<arbotix_msgs::SetupChannelRequest_<ContainerAllocator> > { 00381 static const char* value() 00382 { 00383 return "arbotix_msgs/SetupChannel"; 00384 } 00385 00386 static const char* value(const arbotix_msgs::SetupChannelRequest_<ContainerAllocator> &) { return value(); } 00387 }; 00388 00389 template<class ContainerAllocator> 00390 struct MD5Sum<arbotix_msgs::SetupChannelResponse_<ContainerAllocator> > { 00391 static const char* value() 00392 { 00393 return "c65e58d8b3b4d406126f6dc829a6011f"; 00394 } 00395 00396 static const char* value(const arbotix_msgs::SetupChannelResponse_<ContainerAllocator> &) { return value(); } 00397 }; 00398 00399 template<class ContainerAllocator> 00400 struct DataType<arbotix_msgs::SetupChannelResponse_<ContainerAllocator> > { 00401 static const char* value() 00402 { 00403 return "arbotix_msgs/SetupChannel"; 00404 } 00405 00406 static const char* value(const arbotix_msgs::SetupChannelResponse_<ContainerAllocator> &) { return value(); } 00407 }; 00408 00409 } // namespace service_traits 00410 } // namespace ros 00411 00412 #endif // ARBOTIX_MSGS_SERVICE_SETUPCHANNEL_H 00413