00001 /* Auto-generated by genmsg_cpp for file /home/rosbuild/hudson/workspace/doc-fuerte-ros_arduino_bridge/doc_stacks/2013-11-21_12-07-58.016446/ros_arduino_bridge/ros_arduino_msgs/srv/DigitalSetDirection.srv */ 00002 #ifndef ROS_ARDUINO_MSGS_SERVICE_DIGITALSETDIRECTION_H 00003 #define ROS_ARDUINO_MSGS_SERVICE_DIGITALSETDIRECTION_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 ros_arduino_msgs 00023 { 00024 template <class ContainerAllocator> 00025 struct DigitalSetDirectionRequest_ { 00026 typedef DigitalSetDirectionRequest_<ContainerAllocator> Type; 00027 00028 DigitalSetDirectionRequest_() 00029 : pin(0) 00030 , direction(false) 00031 { 00032 } 00033 00034 DigitalSetDirectionRequest_(const ContainerAllocator& _alloc) 00035 : pin(0) 00036 , direction(false) 00037 { 00038 } 00039 00040 typedef uint8_t _pin_type; 00041 uint8_t pin; 00042 00043 typedef uint8_t _direction_type; 00044 uint8_t direction; 00045 00046 00047 typedef boost::shared_ptr< ::ros_arduino_msgs::DigitalSetDirectionRequest_<ContainerAllocator> > Ptr; 00048 typedef boost::shared_ptr< ::ros_arduino_msgs::DigitalSetDirectionRequest_<ContainerAllocator> const> ConstPtr; 00049 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00050 }; // struct DigitalSetDirectionRequest 00051 typedef ::ros_arduino_msgs::DigitalSetDirectionRequest_<std::allocator<void> > DigitalSetDirectionRequest; 00052 00053 typedef boost::shared_ptr< ::ros_arduino_msgs::DigitalSetDirectionRequest> DigitalSetDirectionRequestPtr; 00054 typedef boost::shared_ptr< ::ros_arduino_msgs::DigitalSetDirectionRequest const> DigitalSetDirectionRequestConstPtr; 00055 00056 00057 template <class ContainerAllocator> 00058 struct DigitalSetDirectionResponse_ { 00059 typedef DigitalSetDirectionResponse_<ContainerAllocator> Type; 00060 00061 DigitalSetDirectionResponse_() 00062 { 00063 } 00064 00065 DigitalSetDirectionResponse_(const ContainerAllocator& _alloc) 00066 { 00067 } 00068 00069 00070 typedef boost::shared_ptr< ::ros_arduino_msgs::DigitalSetDirectionResponse_<ContainerAllocator> > Ptr; 00071 typedef boost::shared_ptr< ::ros_arduino_msgs::DigitalSetDirectionResponse_<ContainerAllocator> const> ConstPtr; 00072 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00073 }; // struct DigitalSetDirectionResponse 00074 typedef ::ros_arduino_msgs::DigitalSetDirectionResponse_<std::allocator<void> > DigitalSetDirectionResponse; 00075 00076 typedef boost::shared_ptr< ::ros_arduino_msgs::DigitalSetDirectionResponse> DigitalSetDirectionResponsePtr; 00077 typedef boost::shared_ptr< ::ros_arduino_msgs::DigitalSetDirectionResponse const> DigitalSetDirectionResponseConstPtr; 00078 00079 struct DigitalSetDirection 00080 { 00081 00082 typedef DigitalSetDirectionRequest Request; 00083 typedef DigitalSetDirectionResponse Response; 00084 Request request; 00085 Response response; 00086 00087 typedef Request RequestType; 00088 typedef Response ResponseType; 00089 }; // struct DigitalSetDirection 00090 } // namespace ros_arduino_msgs 00091 00092 namespace ros 00093 { 00094 namespace message_traits 00095 { 00096 template<class ContainerAllocator> struct IsMessage< ::ros_arduino_msgs::DigitalSetDirectionRequest_<ContainerAllocator> > : public TrueType {}; 00097 template<class ContainerAllocator> struct IsMessage< ::ros_arduino_msgs::DigitalSetDirectionRequest_<ContainerAllocator> const> : public TrueType {}; 00098 template<class ContainerAllocator> 00099 struct MD5Sum< ::ros_arduino_msgs::DigitalSetDirectionRequest_<ContainerAllocator> > { 00100 static const char* value() 00101 { 00102 return "b10eff5e5e7e4623e1ee840cec92b372"; 00103 } 00104 00105 static const char* value(const ::ros_arduino_msgs::DigitalSetDirectionRequest_<ContainerAllocator> &) { return value(); } 00106 static const uint64_t static_value1 = 0xb10eff5e5e7e4623ULL; 00107 static const uint64_t static_value2 = 0xe1ee840cec92b372ULL; 00108 }; 00109 00110 template<class ContainerAllocator> 00111 struct DataType< ::ros_arduino_msgs::DigitalSetDirectionRequest_<ContainerAllocator> > { 00112 static const char* value() 00113 { 00114 return "ros_arduino_msgs/DigitalSetDirectionRequest"; 00115 } 00116 00117 static const char* value(const ::ros_arduino_msgs::DigitalSetDirectionRequest_<ContainerAllocator> &) { return value(); } 00118 }; 00119 00120 template<class ContainerAllocator> 00121 struct Definition< ::ros_arduino_msgs::DigitalSetDirectionRequest_<ContainerAllocator> > { 00122 static const char* value() 00123 { 00124 return "uint8 pin\n\ 00125 bool direction\n\ 00126 \n\ 00127 "; 00128 } 00129 00130 static const char* value(const ::ros_arduino_msgs::DigitalSetDirectionRequest_<ContainerAllocator> &) { return value(); } 00131 }; 00132 00133 template<class ContainerAllocator> struct IsFixedSize< ::ros_arduino_msgs::DigitalSetDirectionRequest_<ContainerAllocator> > : public TrueType {}; 00134 } // namespace message_traits 00135 } // namespace ros 00136 00137 00138 namespace ros 00139 { 00140 namespace message_traits 00141 { 00142 template<class ContainerAllocator> struct IsMessage< ::ros_arduino_msgs::DigitalSetDirectionResponse_<ContainerAllocator> > : public TrueType {}; 00143 template<class ContainerAllocator> struct IsMessage< ::ros_arduino_msgs::DigitalSetDirectionResponse_<ContainerAllocator> const> : public TrueType {}; 00144 template<class ContainerAllocator> 00145 struct MD5Sum< ::ros_arduino_msgs::DigitalSetDirectionResponse_<ContainerAllocator> > { 00146 static const char* value() 00147 { 00148 return "d41d8cd98f00b204e9800998ecf8427e"; 00149 } 00150 00151 static const char* value(const ::ros_arduino_msgs::DigitalSetDirectionResponse_<ContainerAllocator> &) { return value(); } 00152 static const uint64_t static_value1 = 0xd41d8cd98f00b204ULL; 00153 static const uint64_t static_value2 = 0xe9800998ecf8427eULL; 00154 }; 00155 00156 template<class ContainerAllocator> 00157 struct DataType< ::ros_arduino_msgs::DigitalSetDirectionResponse_<ContainerAllocator> > { 00158 static const char* value() 00159 { 00160 return "ros_arduino_msgs/DigitalSetDirectionResponse"; 00161 } 00162 00163 static const char* value(const ::ros_arduino_msgs::DigitalSetDirectionResponse_<ContainerAllocator> &) { return value(); } 00164 }; 00165 00166 template<class ContainerAllocator> 00167 struct Definition< ::ros_arduino_msgs::DigitalSetDirectionResponse_<ContainerAllocator> > { 00168 static const char* value() 00169 { 00170 return "\n\ 00171 \n\ 00172 "; 00173 } 00174 00175 static const char* value(const ::ros_arduino_msgs::DigitalSetDirectionResponse_<ContainerAllocator> &) { return value(); } 00176 }; 00177 00178 template<class ContainerAllocator> struct IsFixedSize< ::ros_arduino_msgs::DigitalSetDirectionResponse_<ContainerAllocator> > : public TrueType {}; 00179 } // namespace message_traits 00180 } // namespace ros 00181 00182 namespace ros 00183 { 00184 namespace serialization 00185 { 00186 00187 template<class ContainerAllocator> struct Serializer< ::ros_arduino_msgs::DigitalSetDirectionRequest_<ContainerAllocator> > 00188 { 00189 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00190 { 00191 stream.next(m.pin); 00192 stream.next(m.direction); 00193 } 00194 00195 ROS_DECLARE_ALLINONE_SERIALIZER; 00196 }; // struct DigitalSetDirectionRequest_ 00197 } // namespace serialization 00198 } // namespace ros 00199 00200 00201 namespace ros 00202 { 00203 namespace serialization 00204 { 00205 00206 template<class ContainerAllocator> struct Serializer< ::ros_arduino_msgs::DigitalSetDirectionResponse_<ContainerAllocator> > 00207 { 00208 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00209 { 00210 } 00211 00212 ROS_DECLARE_ALLINONE_SERIALIZER; 00213 }; // struct DigitalSetDirectionResponse_ 00214 } // namespace serialization 00215 } // namespace ros 00216 00217 namespace ros 00218 { 00219 namespace service_traits 00220 { 00221 template<> 00222 struct MD5Sum<ros_arduino_msgs::DigitalSetDirection> { 00223 static const char* value() 00224 { 00225 return "b10eff5e5e7e4623e1ee840cec92b372"; 00226 } 00227 00228 static const char* value(const ros_arduino_msgs::DigitalSetDirection&) { return value(); } 00229 }; 00230 00231 template<> 00232 struct DataType<ros_arduino_msgs::DigitalSetDirection> { 00233 static const char* value() 00234 { 00235 return "ros_arduino_msgs/DigitalSetDirection"; 00236 } 00237 00238 static const char* value(const ros_arduino_msgs::DigitalSetDirection&) { return value(); } 00239 }; 00240 00241 template<class ContainerAllocator> 00242 struct MD5Sum<ros_arduino_msgs::DigitalSetDirectionRequest_<ContainerAllocator> > { 00243 static const char* value() 00244 { 00245 return "b10eff5e5e7e4623e1ee840cec92b372"; 00246 } 00247 00248 static const char* value(const ros_arduino_msgs::DigitalSetDirectionRequest_<ContainerAllocator> &) { return value(); } 00249 }; 00250 00251 template<class ContainerAllocator> 00252 struct DataType<ros_arduino_msgs::DigitalSetDirectionRequest_<ContainerAllocator> > { 00253 static const char* value() 00254 { 00255 return "ros_arduino_msgs/DigitalSetDirection"; 00256 } 00257 00258 static const char* value(const ros_arduino_msgs::DigitalSetDirectionRequest_<ContainerAllocator> &) { return value(); } 00259 }; 00260 00261 template<class ContainerAllocator> 00262 struct MD5Sum<ros_arduino_msgs::DigitalSetDirectionResponse_<ContainerAllocator> > { 00263 static const char* value() 00264 { 00265 return "b10eff5e5e7e4623e1ee840cec92b372"; 00266 } 00267 00268 static const char* value(const ros_arduino_msgs::DigitalSetDirectionResponse_<ContainerAllocator> &) { return value(); } 00269 }; 00270 00271 template<class ContainerAllocator> 00272 struct DataType<ros_arduino_msgs::DigitalSetDirectionResponse_<ContainerAllocator> > { 00273 static const char* value() 00274 { 00275 return "ros_arduino_msgs/DigitalSetDirection"; 00276 } 00277 00278 static const char* value(const ros_arduino_msgs::DigitalSetDirectionResponse_<ContainerAllocator> &) { return value(); } 00279 }; 00280 00281 } // namespace service_traits 00282 } // namespace ros 00283 00284 #endif // ROS_ARDUINO_MSGS_SERVICE_DIGITALSETDIRECTION_H 00285