SetDrivePower.h
Go to the documentation of this file.
00001 /* Auto-generated by genmsg_cpp for file /home/rosbuild/hudson/workspace/doc-groovy-industrial_core/doc_stacks/2014-10-06_00-49-33.800926/industrial_core/industrial_msgs/srv/SetDrivePower.srv */
00002 #ifndef INDUSTRIAL_MSGS_SERVICE_SETDRIVEPOWER_H
00003 #define INDUSTRIAL_MSGS_SERVICE_SETDRIVEPOWER_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 #include "industrial_msgs/ServiceReturnCode.h"
00022 
00023 namespace industrial_msgs
00024 {
00025 template <class ContainerAllocator>
00026 struct SetDrivePowerRequest_ {
00027   typedef SetDrivePowerRequest_<ContainerAllocator> Type;
00028 
00029   SetDrivePowerRequest_()
00030   : drive_power(false)
00031   {
00032   }
00033 
00034   SetDrivePowerRequest_(const ContainerAllocator& _alloc)
00035   : drive_power(false)
00036   {
00037   }
00038 
00039   typedef uint8_t _drive_power_type;
00040   uint8_t drive_power;
00041 
00042 
00043   typedef boost::shared_ptr< ::industrial_msgs::SetDrivePowerRequest_<ContainerAllocator> > Ptr;
00044   typedef boost::shared_ptr< ::industrial_msgs::SetDrivePowerRequest_<ContainerAllocator>  const> ConstPtr;
00045   boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00046 }; // struct SetDrivePowerRequest
00047 typedef  ::industrial_msgs::SetDrivePowerRequest_<std::allocator<void> > SetDrivePowerRequest;
00048 
00049 typedef boost::shared_ptr< ::industrial_msgs::SetDrivePowerRequest> SetDrivePowerRequestPtr;
00050 typedef boost::shared_ptr< ::industrial_msgs::SetDrivePowerRequest const> SetDrivePowerRequestConstPtr;
00051 
00052 
00053 
00054 template <class ContainerAllocator>
00055 struct SetDrivePowerResponse_ {
00056   typedef SetDrivePowerResponse_<ContainerAllocator> Type;
00057 
00058   SetDrivePowerResponse_()
00059   : code()
00060   {
00061   }
00062 
00063   SetDrivePowerResponse_(const ContainerAllocator& _alloc)
00064   : code(_alloc)
00065   {
00066   }
00067 
00068   typedef  ::industrial_msgs::ServiceReturnCode_<ContainerAllocator>  _code_type;
00069    ::industrial_msgs::ServiceReturnCode_<ContainerAllocator>  code;
00070 
00071 
00072   typedef boost::shared_ptr< ::industrial_msgs::SetDrivePowerResponse_<ContainerAllocator> > Ptr;
00073   typedef boost::shared_ptr< ::industrial_msgs::SetDrivePowerResponse_<ContainerAllocator>  const> ConstPtr;
00074   boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00075 }; // struct SetDrivePowerResponse
00076 typedef  ::industrial_msgs::SetDrivePowerResponse_<std::allocator<void> > SetDrivePowerResponse;
00077 
00078 typedef boost::shared_ptr< ::industrial_msgs::SetDrivePowerResponse> SetDrivePowerResponsePtr;
00079 typedef boost::shared_ptr< ::industrial_msgs::SetDrivePowerResponse const> SetDrivePowerResponseConstPtr;
00080 
00081 
00082 struct SetDrivePower
00083 {
00084 
00085 typedef SetDrivePowerRequest Request;
00086 typedef SetDrivePowerResponse Response;
00087 Request request;
00088 Response response;
00089 
00090 typedef Request RequestType;
00091 typedef Response ResponseType;
00092 }; // struct SetDrivePower
00093 } // namespace industrial_msgs
00094 
00095 namespace ros
00096 {
00097 namespace message_traits
00098 {
00099 template<class ContainerAllocator> struct IsMessage< ::industrial_msgs::SetDrivePowerRequest_<ContainerAllocator> > : public TrueType {};
00100 template<class ContainerAllocator> struct IsMessage< ::industrial_msgs::SetDrivePowerRequest_<ContainerAllocator>  const> : public TrueType {};
00101 template<class ContainerAllocator>
00102 struct MD5Sum< ::industrial_msgs::SetDrivePowerRequest_<ContainerAllocator> > {
00103   static const char* value() 
00104   {
00105     return "ad0065fa1febb42851b8c0a0493a1234";
00106   }
00107 
00108   static const char* value(const  ::industrial_msgs::SetDrivePowerRequest_<ContainerAllocator> &) { return value(); } 
00109   static const uint64_t static_value1 = 0xad0065fa1febb428ULL;
00110   static const uint64_t static_value2 = 0x51b8c0a0493a1234ULL;
00111 };
00112 
00113 template<class ContainerAllocator>
00114 struct DataType< ::industrial_msgs::SetDrivePowerRequest_<ContainerAllocator> > {
00115   static const char* value() 
00116   {
00117     return "industrial_msgs/SetDrivePowerRequest";
00118   }
00119 
00120   static const char* value(const  ::industrial_msgs::SetDrivePowerRequest_<ContainerAllocator> &) { return value(); } 
00121 };
00122 
00123 template<class ContainerAllocator>
00124 struct Definition< ::industrial_msgs::SetDrivePowerRequest_<ContainerAllocator> > {
00125   static const char* value() 
00126   {
00127     return "\n\
00128 \n\
00129 \n\
00130 \n\
00131 bool drive_power\n\
00132 \n\
00133 ";
00134   }
00135 
00136   static const char* value(const  ::industrial_msgs::SetDrivePowerRequest_<ContainerAllocator> &) { return value(); } 
00137 };
00138 
00139 template<class ContainerAllocator> struct IsFixedSize< ::industrial_msgs::SetDrivePowerRequest_<ContainerAllocator> > : public TrueType {};
00140 } // namespace message_traits
00141 } // namespace ros
00142 
00143 
00144 namespace ros
00145 {
00146 namespace message_traits
00147 {
00148 template<class ContainerAllocator> struct IsMessage< ::industrial_msgs::SetDrivePowerResponse_<ContainerAllocator> > : public TrueType {};
00149 template<class ContainerAllocator> struct IsMessage< ::industrial_msgs::SetDrivePowerResponse_<ContainerAllocator>  const> : public TrueType {};
00150 template<class ContainerAllocator>
00151 struct MD5Sum< ::industrial_msgs::SetDrivePowerResponse_<ContainerAllocator> > {
00152   static const char* value() 
00153   {
00154     return "50b1f38f75f5677e5692f3b3e7e1ea48";
00155   }
00156 
00157   static const char* value(const  ::industrial_msgs::SetDrivePowerResponse_<ContainerAllocator> &) { return value(); } 
00158   static const uint64_t static_value1 = 0x50b1f38f75f5677eULL;
00159   static const uint64_t static_value2 = 0x5692f3b3e7e1ea48ULL;
00160 };
00161 
00162 template<class ContainerAllocator>
00163 struct DataType< ::industrial_msgs::SetDrivePowerResponse_<ContainerAllocator> > {
00164   static const char* value() 
00165   {
00166     return "industrial_msgs/SetDrivePowerResponse";
00167   }
00168 
00169   static const char* value(const  ::industrial_msgs::SetDrivePowerResponse_<ContainerAllocator> &) { return value(); } 
00170 };
00171 
00172 template<class ContainerAllocator>
00173 struct Definition< ::industrial_msgs::SetDrivePowerResponse_<ContainerAllocator> > {
00174   static const char* value() 
00175   {
00176     return "industrial_msgs/ServiceReturnCode code\n\
00177 \n\
00178 \n\
00179 ================================================================================\n\
00180 MSG: industrial_msgs/ServiceReturnCode\n\
00181 # Service return codes for simple requests.  All ROS-Industrial service\n\
00182 # replies are required to have a return code indicating success or failure\n\
00183 # Specific return codes for different failure should be negative.\n\
00184 int8 val\n\
00185 \n\
00186 int8 SUCCESS = 1\n\
00187 int8 FAILURE = -1\n\
00188 \n\
00189 \n\
00190 ";
00191   }
00192 
00193   static const char* value(const  ::industrial_msgs::SetDrivePowerResponse_<ContainerAllocator> &) { return value(); } 
00194 };
00195 
00196 template<class ContainerAllocator> struct IsFixedSize< ::industrial_msgs::SetDrivePowerResponse_<ContainerAllocator> > : public TrueType {};
00197 } // namespace message_traits
00198 } // namespace ros
00199 
00200 namespace ros
00201 {
00202 namespace serialization
00203 {
00204 
00205 template<class ContainerAllocator> struct Serializer< ::industrial_msgs::SetDrivePowerRequest_<ContainerAllocator> >
00206 {
00207   template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00208   {
00209     stream.next(m.drive_power);
00210   }
00211 
00212   ROS_DECLARE_ALLINONE_SERIALIZER;
00213 }; // struct SetDrivePowerRequest_
00214 } // namespace serialization
00215 } // namespace ros
00216 
00217 
00218 namespace ros
00219 {
00220 namespace serialization
00221 {
00222 
00223 template<class ContainerAllocator> struct Serializer< ::industrial_msgs::SetDrivePowerResponse_<ContainerAllocator> >
00224 {
00225   template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00226   {
00227     stream.next(m.code);
00228   }
00229 
00230   ROS_DECLARE_ALLINONE_SERIALIZER;
00231 }; // struct SetDrivePowerResponse_
00232 } // namespace serialization
00233 } // namespace ros
00234 
00235 namespace ros
00236 {
00237 namespace service_traits
00238 {
00239 template<>
00240 struct MD5Sum<industrial_msgs::SetDrivePower> {
00241   static const char* value() 
00242   {
00243     return "89dc29b38aedf0d168daa33da97de48a";
00244   }
00245 
00246   static const char* value(const industrial_msgs::SetDrivePower&) { return value(); } 
00247 };
00248 
00249 template<>
00250 struct DataType<industrial_msgs::SetDrivePower> {
00251   static const char* value() 
00252   {
00253     return "industrial_msgs/SetDrivePower";
00254   }
00255 
00256   static const char* value(const industrial_msgs::SetDrivePower&) { return value(); } 
00257 };
00258 
00259 template<class ContainerAllocator>
00260 struct MD5Sum<industrial_msgs::SetDrivePowerRequest_<ContainerAllocator> > {
00261   static const char* value() 
00262   {
00263     return "89dc29b38aedf0d168daa33da97de48a";
00264   }
00265 
00266   static const char* value(const industrial_msgs::SetDrivePowerRequest_<ContainerAllocator> &) { return value(); } 
00267 };
00268 
00269 template<class ContainerAllocator>
00270 struct DataType<industrial_msgs::SetDrivePowerRequest_<ContainerAllocator> > {
00271   static const char* value() 
00272   {
00273     return "industrial_msgs/SetDrivePower";
00274   }
00275 
00276   static const char* value(const industrial_msgs::SetDrivePowerRequest_<ContainerAllocator> &) { return value(); } 
00277 };
00278 
00279 template<class ContainerAllocator>
00280 struct MD5Sum<industrial_msgs::SetDrivePowerResponse_<ContainerAllocator> > {
00281   static const char* value() 
00282   {
00283     return "89dc29b38aedf0d168daa33da97de48a";
00284   }
00285 
00286   static const char* value(const industrial_msgs::SetDrivePowerResponse_<ContainerAllocator> &) { return value(); } 
00287 };
00288 
00289 template<class ContainerAllocator>
00290 struct DataType<industrial_msgs::SetDrivePowerResponse_<ContainerAllocator> > {
00291   static const char* value() 
00292   {
00293     return "industrial_msgs/SetDrivePower";
00294   }
00295 
00296   static const char* value(const industrial_msgs::SetDrivePowerResponse_<ContainerAllocator> &) { return value(); } 
00297 };
00298 
00299 } // namespace service_traits
00300 } // namespace ros
00301 
00302 #endif // INDUSTRIAL_MSGS_SERVICE_SETDRIVEPOWER_H
00303 


industrial_msgs
Author(s): Shaun M. Edwards
autogenerated on Mon Oct 6 2014 00:53:40