PowerBoardCommand2.h
Go to the documentation of this file.
00001 /* Auto-generated by genmsg_cpp for file /home/rosbuild/hudson/workspace/doc-fuerte-pr2_power_drivers/doc_stacks/2013-12-28_17-25-24.395035/pr2_power_drivers/pr2_power_board/srv/PowerBoardCommand2.srv */
00002 #ifndef PR2_POWER_BOARD_SERVICE_POWERBOARDCOMMAND2_H
00003 #define PR2_POWER_BOARD_SERVICE_POWERBOARDCOMMAND2_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 pr2_power_board
00023 {
00024 template <class ContainerAllocator>
00025 struct PowerBoardCommand2Request_ {
00026   typedef PowerBoardCommand2Request_<ContainerAllocator> Type;
00027 
00028   PowerBoardCommand2Request_()
00029   : circuit(0)
00030   , command()
00031   , reset_stats(false)
00032   , reset_circuits(false)
00033   {
00034   }
00035 
00036   PowerBoardCommand2Request_(const ContainerAllocator& _alloc)
00037   : circuit(0)
00038   , command(_alloc)
00039   , reset_stats(false)
00040   , reset_circuits(false)
00041   {
00042   }
00043 
00044   typedef int32_t _circuit_type;
00045   int32_t circuit;
00046 
00047   typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other >  _command_type;
00048   std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other >  command;
00049 
00050   typedef uint8_t _reset_stats_type;
00051   uint8_t reset_stats;
00052 
00053   typedef uint8_t _reset_circuits_type;
00054   uint8_t reset_circuits;
00055 
00056   enum { NUMBER_OF_CIRCUITS = 3 };
00057   enum { BASE = 0 };
00058   enum { RIGHT_ARM = 1 };
00059   enum { LEFT_ARM = 2 };
00060 
00061   typedef boost::shared_ptr< ::pr2_power_board::PowerBoardCommand2Request_<ContainerAllocator> > Ptr;
00062   typedef boost::shared_ptr< ::pr2_power_board::PowerBoardCommand2Request_<ContainerAllocator>  const> ConstPtr;
00063   boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00064 }; // struct PowerBoardCommand2Request
00065 typedef  ::pr2_power_board::PowerBoardCommand2Request_<std::allocator<void> > PowerBoardCommand2Request;
00066 
00067 typedef boost::shared_ptr< ::pr2_power_board::PowerBoardCommand2Request> PowerBoardCommand2RequestPtr;
00068 typedef boost::shared_ptr< ::pr2_power_board::PowerBoardCommand2Request const> PowerBoardCommand2RequestConstPtr;
00069 
00070 
00071 template <class ContainerAllocator>
00072 struct PowerBoardCommand2Response_ {
00073   typedef PowerBoardCommand2Response_<ContainerAllocator> Type;
00074 
00075   PowerBoardCommand2Response_()
00076   : success(false)
00077   {
00078   }
00079 
00080   PowerBoardCommand2Response_(const ContainerAllocator& _alloc)
00081   : success(false)
00082   {
00083   }
00084 
00085   typedef uint8_t _success_type;
00086   uint8_t success;
00087 
00088 
00089   typedef boost::shared_ptr< ::pr2_power_board::PowerBoardCommand2Response_<ContainerAllocator> > Ptr;
00090   typedef boost::shared_ptr< ::pr2_power_board::PowerBoardCommand2Response_<ContainerAllocator>  const> ConstPtr;
00091   boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00092 }; // struct PowerBoardCommand2Response
00093 typedef  ::pr2_power_board::PowerBoardCommand2Response_<std::allocator<void> > PowerBoardCommand2Response;
00094 
00095 typedef boost::shared_ptr< ::pr2_power_board::PowerBoardCommand2Response> PowerBoardCommand2ResponsePtr;
00096 typedef boost::shared_ptr< ::pr2_power_board::PowerBoardCommand2Response const> PowerBoardCommand2ResponseConstPtr;
00097 
00098 struct PowerBoardCommand2
00099 {
00100 
00101 typedef PowerBoardCommand2Request Request;
00102 typedef PowerBoardCommand2Response Response;
00103 Request request;
00104 Response response;
00105 
00106 typedef Request RequestType;
00107 typedef Response ResponseType;
00108 }; // struct PowerBoardCommand2
00109 } // namespace pr2_power_board
00110 
00111 namespace ros
00112 {
00113 namespace message_traits
00114 {
00115 template<class ContainerAllocator> struct IsMessage< ::pr2_power_board::PowerBoardCommand2Request_<ContainerAllocator> > : public TrueType {};
00116 template<class ContainerAllocator> struct IsMessage< ::pr2_power_board::PowerBoardCommand2Request_<ContainerAllocator>  const> : public TrueType {};
00117 template<class ContainerAllocator>
00118 struct MD5Sum< ::pr2_power_board::PowerBoardCommand2Request_<ContainerAllocator> > {
00119   static const char* value() 
00120   {
00121     return "a31aee1db4294698375ff2a8cf53fea5";
00122   }
00123 
00124   static const char* value(const  ::pr2_power_board::PowerBoardCommand2Request_<ContainerAllocator> &) { return value(); } 
00125   static const uint64_t static_value1 = 0xa31aee1db4294698ULL;
00126   static const uint64_t static_value2 = 0x375ff2a8cf53fea5ULL;
00127 };
00128 
00129 template<class ContainerAllocator>
00130 struct DataType< ::pr2_power_board::PowerBoardCommand2Request_<ContainerAllocator> > {
00131   static const char* value() 
00132   {
00133     return "pr2_power_board/PowerBoardCommand2Request";
00134   }
00135 
00136   static const char* value(const  ::pr2_power_board::PowerBoardCommand2Request_<ContainerAllocator> &) { return value(); } 
00137 };
00138 
00139 template<class ContainerAllocator>
00140 struct Definition< ::pr2_power_board::PowerBoardCommand2Request_<ContainerAllocator> > {
00141   static const char* value() 
00142   {
00143     return "int32 NUMBER_OF_CIRCUITS = 3\n\
00144 \n\
00145 \n\
00146 \n\
00147 int32 circuit\n\
00148 \n\
00149 \n\
00150 \n\
00151 int32 BASE      = 0\n\
00152 int32 RIGHT_ARM = 1\n\
00153 int32 LEFT_ARM  = 2\n\
00154 \n\
00155 \n\
00156 \n\
00157 \n\
00158 string command\n\
00159 \n\
00160 \n\
00161 bool reset_stats\n\
00162 \n\
00163 \n\
00164 bool reset_circuits\n\
00165 \n\
00166 ";
00167   }
00168 
00169   static const char* value(const  ::pr2_power_board::PowerBoardCommand2Request_<ContainerAllocator> &) { return value(); } 
00170 };
00171 
00172 } // namespace message_traits
00173 } // namespace ros
00174 
00175 
00176 namespace ros
00177 {
00178 namespace message_traits
00179 {
00180 template<class ContainerAllocator> struct IsMessage< ::pr2_power_board::PowerBoardCommand2Response_<ContainerAllocator> > : public TrueType {};
00181 template<class ContainerAllocator> struct IsMessage< ::pr2_power_board::PowerBoardCommand2Response_<ContainerAllocator>  const> : public TrueType {};
00182 template<class ContainerAllocator>
00183 struct MD5Sum< ::pr2_power_board::PowerBoardCommand2Response_<ContainerAllocator> > {
00184   static const char* value() 
00185   {
00186     return "358e233cde0c8a8bcfea4ce193f8fc15";
00187   }
00188 
00189   static const char* value(const  ::pr2_power_board::PowerBoardCommand2Response_<ContainerAllocator> &) { return value(); } 
00190   static const uint64_t static_value1 = 0x358e233cde0c8a8bULL;
00191   static const uint64_t static_value2 = 0xcfea4ce193f8fc15ULL;
00192 };
00193 
00194 template<class ContainerAllocator>
00195 struct DataType< ::pr2_power_board::PowerBoardCommand2Response_<ContainerAllocator> > {
00196   static const char* value() 
00197   {
00198     return "pr2_power_board/PowerBoardCommand2Response";
00199   }
00200 
00201   static const char* value(const  ::pr2_power_board::PowerBoardCommand2Response_<ContainerAllocator> &) { return value(); } 
00202 };
00203 
00204 template<class ContainerAllocator>
00205 struct Definition< ::pr2_power_board::PowerBoardCommand2Response_<ContainerAllocator> > {
00206   static const char* value() 
00207   {
00208     return "\n\
00209 bool success\n\
00210 \n\
00211 \n\
00212 ";
00213   }
00214 
00215   static const char* value(const  ::pr2_power_board::PowerBoardCommand2Response_<ContainerAllocator> &) { return value(); } 
00216 };
00217 
00218 template<class ContainerAllocator> struct IsFixedSize< ::pr2_power_board::PowerBoardCommand2Response_<ContainerAllocator> > : public TrueType {};
00219 } // namespace message_traits
00220 } // namespace ros
00221 
00222 namespace ros
00223 {
00224 namespace serialization
00225 {
00226 
00227 template<class ContainerAllocator> struct Serializer< ::pr2_power_board::PowerBoardCommand2Request_<ContainerAllocator> >
00228 {
00229   template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00230   {
00231     stream.next(m.circuit);
00232     stream.next(m.command);
00233     stream.next(m.reset_stats);
00234     stream.next(m.reset_circuits);
00235   }
00236 
00237   ROS_DECLARE_ALLINONE_SERIALIZER;
00238 }; // struct PowerBoardCommand2Request_
00239 } // namespace serialization
00240 } // namespace ros
00241 
00242 
00243 namespace ros
00244 {
00245 namespace serialization
00246 {
00247 
00248 template<class ContainerAllocator> struct Serializer< ::pr2_power_board::PowerBoardCommand2Response_<ContainerAllocator> >
00249 {
00250   template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00251   {
00252     stream.next(m.success);
00253   }
00254 
00255   ROS_DECLARE_ALLINONE_SERIALIZER;
00256 }; // struct PowerBoardCommand2Response_
00257 } // namespace serialization
00258 } // namespace ros
00259 
00260 namespace ros
00261 {
00262 namespace service_traits
00263 {
00264 template<>
00265 struct MD5Sum<pr2_power_board::PowerBoardCommand2> {
00266   static const char* value() 
00267   {
00268     return "4f143c27e05688798e6220ba69c6906a";
00269   }
00270 
00271   static const char* value(const pr2_power_board::PowerBoardCommand2&) { return value(); } 
00272 };
00273 
00274 template<>
00275 struct DataType<pr2_power_board::PowerBoardCommand2> {
00276   static const char* value() 
00277   {
00278     return "pr2_power_board/PowerBoardCommand2";
00279   }
00280 
00281   static const char* value(const pr2_power_board::PowerBoardCommand2&) { return value(); } 
00282 };
00283 
00284 template<class ContainerAllocator>
00285 struct MD5Sum<pr2_power_board::PowerBoardCommand2Request_<ContainerAllocator> > {
00286   static const char* value() 
00287   {
00288     return "4f143c27e05688798e6220ba69c6906a";
00289   }
00290 
00291   static const char* value(const pr2_power_board::PowerBoardCommand2Request_<ContainerAllocator> &) { return value(); } 
00292 };
00293 
00294 template<class ContainerAllocator>
00295 struct DataType<pr2_power_board::PowerBoardCommand2Request_<ContainerAllocator> > {
00296   static const char* value() 
00297   {
00298     return "pr2_power_board/PowerBoardCommand2";
00299   }
00300 
00301   static const char* value(const pr2_power_board::PowerBoardCommand2Request_<ContainerAllocator> &) { return value(); } 
00302 };
00303 
00304 template<class ContainerAllocator>
00305 struct MD5Sum<pr2_power_board::PowerBoardCommand2Response_<ContainerAllocator> > {
00306   static const char* value() 
00307   {
00308     return "4f143c27e05688798e6220ba69c6906a";
00309   }
00310 
00311   static const char* value(const pr2_power_board::PowerBoardCommand2Response_<ContainerAllocator> &) { return value(); } 
00312 };
00313 
00314 template<class ContainerAllocator>
00315 struct DataType<pr2_power_board::PowerBoardCommand2Response_<ContainerAllocator> > {
00316   static const char* value() 
00317   {
00318     return "pr2_power_board/PowerBoardCommand2";
00319   }
00320 
00321   static const char* value(const pr2_power_board::PowerBoardCommand2Response_<ContainerAllocator> &) { return value(); } 
00322 };
00323 
00324 } // namespace service_traits
00325 } // namespace ros
00326 
00327 #endif // PR2_POWER_BOARD_SERVICE_POWERBOARDCOMMAND2_H
00328 


pr2_power_board
Author(s): Curt Meyers, Blaise Gassend
autogenerated on Sat Dec 28 2013 17:27:00