Move.h
Go to the documentation of this file.
00001 /* Auto-generated by genmsg_cpp for file /home/rosbuild/hudson/workspace/doc-fuerte-roscorobot/doc_stacks/2014-01-07_11-36-17.541726/Corobot/PhidgetMotor/srv/Move.srv */
00002 #ifndef PHIDGETMOTOR_SERVICE_MOVE_H
00003 #define PHIDGETMOTOR_SERVICE_MOVE_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 PhidgetMotor
00023 {
00024 template <class ContainerAllocator>
00025 struct MoveRequest_ {
00026   typedef MoveRequest_<ContainerAllocator> Type;
00027 
00028   MoveRequest_()
00029   : leftSpeed(0)
00030   , rightSpeed(0)
00031   , secondsDuration(0)
00032   , acceleration(0)
00033   {
00034   }
00035 
00036   MoveRequest_(const ContainerAllocator& _alloc)
00037   : leftSpeed(0)
00038   , rightSpeed(0)
00039   , secondsDuration(0)
00040   , acceleration(0)
00041   {
00042   }
00043 
00044   typedef int16_t _leftSpeed_type;
00045   int16_t leftSpeed;
00046 
00047   typedef int16_t _rightSpeed_type;
00048   int16_t rightSpeed;
00049 
00050   typedef uint16_t _secondsDuration_type;
00051   uint16_t secondsDuration;
00052 
00053   typedef uint16_t _acceleration_type;
00054   uint16_t acceleration;
00055 
00056 
00057   typedef boost::shared_ptr< ::PhidgetMotor::MoveRequest_<ContainerAllocator> > Ptr;
00058   typedef boost::shared_ptr< ::PhidgetMotor::MoveRequest_<ContainerAllocator>  const> ConstPtr;
00059   boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00060 }; // struct MoveRequest
00061 typedef  ::PhidgetMotor::MoveRequest_<std::allocator<void> > MoveRequest;
00062 
00063 typedef boost::shared_ptr< ::PhidgetMotor::MoveRequest> MoveRequestPtr;
00064 typedef boost::shared_ptr< ::PhidgetMotor::MoveRequest const> MoveRequestConstPtr;
00065 
00066 
00067 template <class ContainerAllocator>
00068 struct MoveResponse_ {
00069   typedef MoveResponse_<ContainerAllocator> Type;
00070 
00071   MoveResponse_()
00072   : succeeded(false)
00073   {
00074   }
00075 
00076   MoveResponse_(const ContainerAllocator& _alloc)
00077   : succeeded(false)
00078   {
00079   }
00080 
00081   typedef uint8_t _succeeded_type;
00082   uint8_t succeeded;
00083 
00084 
00085   typedef boost::shared_ptr< ::PhidgetMotor::MoveResponse_<ContainerAllocator> > Ptr;
00086   typedef boost::shared_ptr< ::PhidgetMotor::MoveResponse_<ContainerAllocator>  const> ConstPtr;
00087   boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00088 }; // struct MoveResponse
00089 typedef  ::PhidgetMotor::MoveResponse_<std::allocator<void> > MoveResponse;
00090 
00091 typedef boost::shared_ptr< ::PhidgetMotor::MoveResponse> MoveResponsePtr;
00092 typedef boost::shared_ptr< ::PhidgetMotor::MoveResponse const> MoveResponseConstPtr;
00093 
00094 struct Move
00095 {
00096 
00097 typedef MoveRequest Request;
00098 typedef MoveResponse Response;
00099 Request request;
00100 Response response;
00101 
00102 typedef Request RequestType;
00103 typedef Response ResponseType;
00104 }; // struct Move
00105 } // namespace PhidgetMotor
00106 
00107 namespace ros
00108 {
00109 namespace message_traits
00110 {
00111 template<class ContainerAllocator> struct IsMessage< ::PhidgetMotor::MoveRequest_<ContainerAllocator> > : public TrueType {};
00112 template<class ContainerAllocator> struct IsMessage< ::PhidgetMotor::MoveRequest_<ContainerAllocator>  const> : public TrueType {};
00113 template<class ContainerAllocator>
00114 struct MD5Sum< ::PhidgetMotor::MoveRequest_<ContainerAllocator> > {
00115   static const char* value() 
00116   {
00117     return "451c087bf7cd0b5ee063409877e152e9";
00118   }
00119 
00120   static const char* value(const  ::PhidgetMotor::MoveRequest_<ContainerAllocator> &) { return value(); } 
00121   static const uint64_t static_value1 = 0x451c087bf7cd0b5eULL;
00122   static const uint64_t static_value2 = 0xe063409877e152e9ULL;
00123 };
00124 
00125 template<class ContainerAllocator>
00126 struct DataType< ::PhidgetMotor::MoveRequest_<ContainerAllocator> > {
00127   static const char* value() 
00128   {
00129     return "PhidgetMotor/MoveRequest";
00130   }
00131 
00132   static const char* value(const  ::PhidgetMotor::MoveRequest_<ContainerAllocator> &) { return value(); } 
00133 };
00134 
00135 template<class ContainerAllocator>
00136 struct Definition< ::PhidgetMotor::MoveRequest_<ContainerAllocator> > {
00137   static const char* value() 
00138   {
00139     return "\n\
00140 \n\
00141 \n\
00142 \n\
00143 \n\
00144 \n\
00145 \n\
00146 \n\
00147 \n\
00148 \n\
00149 \n\
00150 \n\
00151 \n\
00152 \n\
00153 int16 leftSpeed\n\
00154 int16 rightSpeed\n\
00155 \n\
00156 \n\
00157 \n\
00158 \n\
00159 \n\
00160 \n\
00161 \n\
00162 uint16 secondsDuration\n\
00163 \n\
00164 \n\
00165 \n\
00166 \n\
00167 \n\
00168 \n\
00169 uint16 acceleration\n\
00170 \n\
00171 ";
00172   }
00173 
00174   static const char* value(const  ::PhidgetMotor::MoveRequest_<ContainerAllocator> &) { return value(); } 
00175 };
00176 
00177 template<class ContainerAllocator> struct IsFixedSize< ::PhidgetMotor::MoveRequest_<ContainerAllocator> > : public TrueType {};
00178 } // namespace message_traits
00179 } // namespace ros
00180 
00181 
00182 namespace ros
00183 {
00184 namespace message_traits
00185 {
00186 template<class ContainerAllocator> struct IsMessage< ::PhidgetMotor::MoveResponse_<ContainerAllocator> > : public TrueType {};
00187 template<class ContainerAllocator> struct IsMessage< ::PhidgetMotor::MoveResponse_<ContainerAllocator>  const> : public TrueType {};
00188 template<class ContainerAllocator>
00189 struct MD5Sum< ::PhidgetMotor::MoveResponse_<ContainerAllocator> > {
00190   static const char* value() 
00191   {
00192     return "95e696a0d10686913abb262e0b4cbbcf";
00193   }
00194 
00195   static const char* value(const  ::PhidgetMotor::MoveResponse_<ContainerAllocator> &) { return value(); } 
00196   static const uint64_t static_value1 = 0x95e696a0d1068691ULL;
00197   static const uint64_t static_value2 = 0x3abb262e0b4cbbcfULL;
00198 };
00199 
00200 template<class ContainerAllocator>
00201 struct DataType< ::PhidgetMotor::MoveResponse_<ContainerAllocator> > {
00202   static const char* value() 
00203   {
00204     return "PhidgetMotor/MoveResponse";
00205   }
00206 
00207   static const char* value(const  ::PhidgetMotor::MoveResponse_<ContainerAllocator> &) { return value(); } 
00208 };
00209 
00210 template<class ContainerAllocator>
00211 struct Definition< ::PhidgetMotor::MoveResponse_<ContainerAllocator> > {
00212   static const char* value() 
00213   {
00214     return "\n\
00215 \n\
00216 \n\
00217 \n\
00218 bool succeeded\n\
00219 \n\
00220 \n\
00221 ";
00222   }
00223 
00224   static const char* value(const  ::PhidgetMotor::MoveResponse_<ContainerAllocator> &) { return value(); } 
00225 };
00226 
00227 template<class ContainerAllocator> struct IsFixedSize< ::PhidgetMotor::MoveResponse_<ContainerAllocator> > : public TrueType {};
00228 } // namespace message_traits
00229 } // namespace ros
00230 
00231 namespace ros
00232 {
00233 namespace serialization
00234 {
00235 
00236 template<class ContainerAllocator> struct Serializer< ::PhidgetMotor::MoveRequest_<ContainerAllocator> >
00237 {
00238   template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00239   {
00240     stream.next(m.leftSpeed);
00241     stream.next(m.rightSpeed);
00242     stream.next(m.secondsDuration);
00243     stream.next(m.acceleration);
00244   }
00245 
00246   ROS_DECLARE_ALLINONE_SERIALIZER;
00247 }; // struct MoveRequest_
00248 } // namespace serialization
00249 } // namespace ros
00250 
00251 
00252 namespace ros
00253 {
00254 namespace serialization
00255 {
00256 
00257 template<class ContainerAllocator> struct Serializer< ::PhidgetMotor::MoveResponse_<ContainerAllocator> >
00258 {
00259   template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00260   {
00261     stream.next(m.succeeded);
00262   }
00263 
00264   ROS_DECLARE_ALLINONE_SERIALIZER;
00265 }; // struct MoveResponse_
00266 } // namespace serialization
00267 } // namespace ros
00268 
00269 namespace ros
00270 {
00271 namespace service_traits
00272 {
00273 template<>
00274 struct MD5Sum<PhidgetMotor::Move> {
00275   static const char* value() 
00276   {
00277     return "69ab499da909d189bb9422ee7dce103d";
00278   }
00279 
00280   static const char* value(const PhidgetMotor::Move&) { return value(); } 
00281 };
00282 
00283 template<>
00284 struct DataType<PhidgetMotor::Move> {
00285   static const char* value() 
00286   {
00287     return "PhidgetMotor/Move";
00288   }
00289 
00290   static const char* value(const PhidgetMotor::Move&) { return value(); } 
00291 };
00292 
00293 template<class ContainerAllocator>
00294 struct MD5Sum<PhidgetMotor::MoveRequest_<ContainerAllocator> > {
00295   static const char* value() 
00296   {
00297     return "69ab499da909d189bb9422ee7dce103d";
00298   }
00299 
00300   static const char* value(const PhidgetMotor::MoveRequest_<ContainerAllocator> &) { return value(); } 
00301 };
00302 
00303 template<class ContainerAllocator>
00304 struct DataType<PhidgetMotor::MoveRequest_<ContainerAllocator> > {
00305   static const char* value() 
00306   {
00307     return "PhidgetMotor/Move";
00308   }
00309 
00310   static const char* value(const PhidgetMotor::MoveRequest_<ContainerAllocator> &) { return value(); } 
00311 };
00312 
00313 template<class ContainerAllocator>
00314 struct MD5Sum<PhidgetMotor::MoveResponse_<ContainerAllocator> > {
00315   static const char* value() 
00316   {
00317     return "69ab499da909d189bb9422ee7dce103d";
00318   }
00319 
00320   static const char* value(const PhidgetMotor::MoveResponse_<ContainerAllocator> &) { return value(); } 
00321 };
00322 
00323 template<class ContainerAllocator>
00324 struct DataType<PhidgetMotor::MoveResponse_<ContainerAllocator> > {
00325   static const char* value() 
00326   {
00327     return "PhidgetMotor/Move";
00328   }
00329 
00330   static const char* value(const PhidgetMotor::MoveResponse_<ContainerAllocator> &) { return value(); } 
00331 };
00332 
00333 } // namespace service_traits
00334 } // namespace ros
00335 
00336 #endif // PHIDGETMOTOR_SERVICE_MOVE_H
00337 


PhidgetMotor
Author(s): Bill Mania/bmania@coroware.com
autogenerated on Tue Jan 7 2014 11:39:17