SimpleMotorFlasher.h
Go to the documentation of this file.
00001 /* Auto-generated by genmsg_cpp for file /home/rosbuild/hudson/workspace/doc-groovy-shadow_robot/doc_stacks/2014-10-06_07-33-10.674696/shadow_robot/sr_robot_msgs/srv/SimpleMotorFlasher.srv */
00002 #ifndef SR_ROBOT_MSGS_SERVICE_SIMPLEMOTORFLASHER_H
00003 #define SR_ROBOT_MSGS_SERVICE_SIMPLEMOTORFLASHER_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 sr_robot_msgs
00023 {
00024 template <class ContainerAllocator>
00025 struct SimpleMotorFlasherRequest_ {
00026   typedef SimpleMotorFlasherRequest_<ContainerAllocator> Type;
00027 
00028   SimpleMotorFlasherRequest_()
00029   : firmware()
00030   , motor_id(0)
00031   {
00032   }
00033 
00034   SimpleMotorFlasherRequest_(const ContainerAllocator& _alloc)
00035   : firmware(_alloc)
00036   , motor_id(0)
00037   {
00038   }
00039 
00040   typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other >  _firmware_type;
00041   std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other >  firmware;
00042 
00043   typedef int8_t _motor_id_type;
00044   int8_t motor_id;
00045 
00046 
00047   typedef boost::shared_ptr< ::sr_robot_msgs::SimpleMotorFlasherRequest_<ContainerAllocator> > Ptr;
00048   typedef boost::shared_ptr< ::sr_robot_msgs::SimpleMotorFlasherRequest_<ContainerAllocator>  const> ConstPtr;
00049   boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00050 }; // struct SimpleMotorFlasherRequest
00051 typedef  ::sr_robot_msgs::SimpleMotorFlasherRequest_<std::allocator<void> > SimpleMotorFlasherRequest;
00052 
00053 typedef boost::shared_ptr< ::sr_robot_msgs::SimpleMotorFlasherRequest> SimpleMotorFlasherRequestPtr;
00054 typedef boost::shared_ptr< ::sr_robot_msgs::SimpleMotorFlasherRequest const> SimpleMotorFlasherRequestConstPtr;
00055 
00056 
00057 
00058 template <class ContainerAllocator>
00059 struct SimpleMotorFlasherResponse_ {
00060   typedef SimpleMotorFlasherResponse_<ContainerAllocator> Type;
00061 
00062   SimpleMotorFlasherResponse_()
00063   : value(0)
00064   {
00065   }
00066 
00067   SimpleMotorFlasherResponse_(const ContainerAllocator& _alloc)
00068   : value(0)
00069   {
00070   }
00071 
00072   typedef int32_t _value_type;
00073   int32_t value;
00074 
00075   enum { SUCCESS = 0 };
00076   enum { FAIL = 1 };
00077 
00078   typedef boost::shared_ptr< ::sr_robot_msgs::SimpleMotorFlasherResponse_<ContainerAllocator> > Ptr;
00079   typedef boost::shared_ptr< ::sr_robot_msgs::SimpleMotorFlasherResponse_<ContainerAllocator>  const> ConstPtr;
00080   boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00081 }; // struct SimpleMotorFlasherResponse
00082 typedef  ::sr_robot_msgs::SimpleMotorFlasherResponse_<std::allocator<void> > SimpleMotorFlasherResponse;
00083 
00084 typedef boost::shared_ptr< ::sr_robot_msgs::SimpleMotorFlasherResponse> SimpleMotorFlasherResponsePtr;
00085 typedef boost::shared_ptr< ::sr_robot_msgs::SimpleMotorFlasherResponse const> SimpleMotorFlasherResponseConstPtr;
00086 
00087 
00088 struct SimpleMotorFlasher
00089 {
00090 
00091 typedef SimpleMotorFlasherRequest Request;
00092 typedef SimpleMotorFlasherResponse Response;
00093 Request request;
00094 Response response;
00095 
00096 typedef Request RequestType;
00097 typedef Response ResponseType;
00098 }; // struct SimpleMotorFlasher
00099 } // namespace sr_robot_msgs
00100 
00101 namespace ros
00102 {
00103 namespace message_traits
00104 {
00105 template<class ContainerAllocator> struct IsMessage< ::sr_robot_msgs::SimpleMotorFlasherRequest_<ContainerAllocator> > : public TrueType {};
00106 template<class ContainerAllocator> struct IsMessage< ::sr_robot_msgs::SimpleMotorFlasherRequest_<ContainerAllocator>  const> : public TrueType {};
00107 template<class ContainerAllocator>
00108 struct MD5Sum< ::sr_robot_msgs::SimpleMotorFlasherRequest_<ContainerAllocator> > {
00109   static const char* value() 
00110   {
00111     return "95979d9c30a49ed16e3ab17fe0edb157";
00112   }
00113 
00114   static const char* value(const  ::sr_robot_msgs::SimpleMotorFlasherRequest_<ContainerAllocator> &) { return value(); } 
00115   static const uint64_t static_value1 = 0x95979d9c30a49ed1ULL;
00116   static const uint64_t static_value2 = 0x6e3ab17fe0edb157ULL;
00117 };
00118 
00119 template<class ContainerAllocator>
00120 struct DataType< ::sr_robot_msgs::SimpleMotorFlasherRequest_<ContainerAllocator> > {
00121   static const char* value() 
00122   {
00123     return "sr_robot_msgs/SimpleMotorFlasherRequest";
00124   }
00125 
00126   static const char* value(const  ::sr_robot_msgs::SimpleMotorFlasherRequest_<ContainerAllocator> &) { return value(); } 
00127 };
00128 
00129 template<class ContainerAllocator>
00130 struct Definition< ::sr_robot_msgs::SimpleMotorFlasherRequest_<ContainerAllocator> > {
00131   static const char* value() 
00132   {
00133     return "string firmware\n\
00134 int8 motor_id\n\
00135 \n\
00136 ";
00137   }
00138 
00139   static const char* value(const  ::sr_robot_msgs::SimpleMotorFlasherRequest_<ContainerAllocator> &) { return value(); } 
00140 };
00141 
00142 } // namespace message_traits
00143 } // namespace ros
00144 
00145 
00146 namespace ros
00147 {
00148 namespace message_traits
00149 {
00150 template<class ContainerAllocator> struct IsMessage< ::sr_robot_msgs::SimpleMotorFlasherResponse_<ContainerAllocator> > : public TrueType {};
00151 template<class ContainerAllocator> struct IsMessage< ::sr_robot_msgs::SimpleMotorFlasherResponse_<ContainerAllocator>  const> : public TrueType {};
00152 template<class ContainerAllocator>
00153 struct MD5Sum< ::sr_robot_msgs::SimpleMotorFlasherResponse_<ContainerAllocator> > {
00154   static const char* value() 
00155   {
00156     return "57a3be4812415ba24758cca00aebf53f";
00157   }
00158 
00159   static const char* value(const  ::sr_robot_msgs::SimpleMotorFlasherResponse_<ContainerAllocator> &) { return value(); } 
00160   static const uint64_t static_value1 = 0x57a3be4812415ba2ULL;
00161   static const uint64_t static_value2 = 0x4758cca00aebf53fULL;
00162 };
00163 
00164 template<class ContainerAllocator>
00165 struct DataType< ::sr_robot_msgs::SimpleMotorFlasherResponse_<ContainerAllocator> > {
00166   static const char* value() 
00167   {
00168     return "sr_robot_msgs/SimpleMotorFlasherResponse";
00169   }
00170 
00171   static const char* value(const  ::sr_robot_msgs::SimpleMotorFlasherResponse_<ContainerAllocator> &) { return value(); } 
00172 };
00173 
00174 template<class ContainerAllocator>
00175 struct Definition< ::sr_robot_msgs::SimpleMotorFlasherResponse_<ContainerAllocator> > {
00176   static const char* value() 
00177   {
00178     return "int32 value\n\
00179 \n\
00180 int32 SUCCESS = 0\n\
00181 int32 FAIL = 1\n\
00182 \n\
00183 \n\
00184 ";
00185   }
00186 
00187   static const char* value(const  ::sr_robot_msgs::SimpleMotorFlasherResponse_<ContainerAllocator> &) { return value(); } 
00188 };
00189 
00190 template<class ContainerAllocator> struct IsFixedSize< ::sr_robot_msgs::SimpleMotorFlasherResponse_<ContainerAllocator> > : public TrueType {};
00191 } // namespace message_traits
00192 } // namespace ros
00193 
00194 namespace ros
00195 {
00196 namespace serialization
00197 {
00198 
00199 template<class ContainerAllocator> struct Serializer< ::sr_robot_msgs::SimpleMotorFlasherRequest_<ContainerAllocator> >
00200 {
00201   template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00202   {
00203     stream.next(m.firmware);
00204     stream.next(m.motor_id);
00205   }
00206 
00207   ROS_DECLARE_ALLINONE_SERIALIZER;
00208 }; // struct SimpleMotorFlasherRequest_
00209 } // namespace serialization
00210 } // namespace ros
00211 
00212 
00213 namespace ros
00214 {
00215 namespace serialization
00216 {
00217 
00218 template<class ContainerAllocator> struct Serializer< ::sr_robot_msgs::SimpleMotorFlasherResponse_<ContainerAllocator> >
00219 {
00220   template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00221   {
00222     stream.next(m.value);
00223   }
00224 
00225   ROS_DECLARE_ALLINONE_SERIALIZER;
00226 }; // struct SimpleMotorFlasherResponse_
00227 } // namespace serialization
00228 } // namespace ros
00229 
00230 namespace ros
00231 {
00232 namespace service_traits
00233 {
00234 template<>
00235 struct MD5Sum<sr_robot_msgs::SimpleMotorFlasher> {
00236   static const char* value() 
00237   {
00238     return "b5e4cd4b44ed54dd8f018caf24a9e0c1";
00239   }
00240 
00241   static const char* value(const sr_robot_msgs::SimpleMotorFlasher&) { return value(); } 
00242 };
00243 
00244 template<>
00245 struct DataType<sr_robot_msgs::SimpleMotorFlasher> {
00246   static const char* value() 
00247   {
00248     return "sr_robot_msgs/SimpleMotorFlasher";
00249   }
00250 
00251   static const char* value(const sr_robot_msgs::SimpleMotorFlasher&) { return value(); } 
00252 };
00253 
00254 template<class ContainerAllocator>
00255 struct MD5Sum<sr_robot_msgs::SimpleMotorFlasherRequest_<ContainerAllocator> > {
00256   static const char* value() 
00257   {
00258     return "b5e4cd4b44ed54dd8f018caf24a9e0c1";
00259   }
00260 
00261   static const char* value(const sr_robot_msgs::SimpleMotorFlasherRequest_<ContainerAllocator> &) { return value(); } 
00262 };
00263 
00264 template<class ContainerAllocator>
00265 struct DataType<sr_robot_msgs::SimpleMotorFlasherRequest_<ContainerAllocator> > {
00266   static const char* value() 
00267   {
00268     return "sr_robot_msgs/SimpleMotorFlasher";
00269   }
00270 
00271   static const char* value(const sr_robot_msgs::SimpleMotorFlasherRequest_<ContainerAllocator> &) { return value(); } 
00272 };
00273 
00274 template<class ContainerAllocator>
00275 struct MD5Sum<sr_robot_msgs::SimpleMotorFlasherResponse_<ContainerAllocator> > {
00276   static const char* value() 
00277   {
00278     return "b5e4cd4b44ed54dd8f018caf24a9e0c1";
00279   }
00280 
00281   static const char* value(const sr_robot_msgs::SimpleMotorFlasherResponse_<ContainerAllocator> &) { return value(); } 
00282 };
00283 
00284 template<class ContainerAllocator>
00285 struct DataType<sr_robot_msgs::SimpleMotorFlasherResponse_<ContainerAllocator> > {
00286   static const char* value() 
00287   {
00288     return "sr_robot_msgs/SimpleMotorFlasher";
00289   }
00290 
00291   static const char* value(const sr_robot_msgs::SimpleMotorFlasherResponse_<ContainerAllocator> &) { return value(); } 
00292 };
00293 
00294 } // namespace service_traits
00295 } // namespace ros
00296 
00297 #endif // SR_ROBOT_MSGS_SERVICE_SIMPLEMOTORFLASHER_H
00298 


sr_robot_msgs
Author(s): Ugo Cupcic/ugo@shadowrobot.com
autogenerated on Mon Oct 6 2014 07:40:06