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