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