$search
00001 /* Auto-generated by genmsg_cpp for file /home/rosbuild/hudson/workspace/doc-electric-pr2_power_drivers/doc_stacks/2013-03-02_13-01-28.959329/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 private: 00062 static const char* __s_getDataType_() { return "pr2_power_board/PowerBoardCommand2Request"; } 00063 public: 00064 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00065 00066 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00067 00068 private: 00069 static const char* __s_getMD5Sum_() { return "a31aee1db4294698375ff2a8cf53fea5"; } 00070 public: 00071 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00072 00073 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00074 00075 private: 00076 static const char* __s_getServerMD5Sum_() { return "4f143c27e05688798e6220ba69c6906a"; } 00077 public: 00078 ROS_DEPRECATED static const std::string __s_getServerMD5Sum() { return __s_getServerMD5Sum_(); } 00079 00080 ROS_DEPRECATED const std::string __getServerMD5Sum() const { return __s_getServerMD5Sum_(); } 00081 00082 private: 00083 static const char* __s_getMessageDefinition_() { return "int32 NUMBER_OF_CIRCUITS = 3\n\ 00084 \n\ 00085 \n\ 00086 \n\ 00087 int32 circuit\n\ 00088 \n\ 00089 \n\ 00090 \n\ 00091 int32 BASE = 0\n\ 00092 int32 RIGHT_ARM = 1\n\ 00093 int32 LEFT_ARM = 2\n\ 00094 \n\ 00095 \n\ 00096 \n\ 00097 \n\ 00098 string command\n\ 00099 \n\ 00100 \n\ 00101 bool reset_stats\n\ 00102 \n\ 00103 \n\ 00104 bool reset_circuits\n\ 00105 \n\ 00106 "; } 00107 public: 00108 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00109 00110 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00111 00112 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00113 { 00114 ros::serialization::OStream stream(write_ptr, 1000000000); 00115 ros::serialization::serialize(stream, circuit); 00116 ros::serialization::serialize(stream, command); 00117 ros::serialization::serialize(stream, reset_stats); 00118 ros::serialization::serialize(stream, reset_circuits); 00119 return stream.getData(); 00120 } 00121 00122 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00123 { 00124 ros::serialization::IStream stream(read_ptr, 1000000000); 00125 ros::serialization::deserialize(stream, circuit); 00126 ros::serialization::deserialize(stream, command); 00127 ros::serialization::deserialize(stream, reset_stats); 00128 ros::serialization::deserialize(stream, reset_circuits); 00129 return stream.getData(); 00130 } 00131 00132 ROS_DEPRECATED virtual uint32_t serializationLength() const 00133 { 00134 uint32_t size = 0; 00135 size += ros::serialization::serializationLength(circuit); 00136 size += ros::serialization::serializationLength(command); 00137 size += ros::serialization::serializationLength(reset_stats); 00138 size += ros::serialization::serializationLength(reset_circuits); 00139 return size; 00140 } 00141 00142 typedef boost::shared_ptr< ::pr2_power_board::PowerBoardCommand2Request_<ContainerAllocator> > Ptr; 00143 typedef boost::shared_ptr< ::pr2_power_board::PowerBoardCommand2Request_<ContainerAllocator> const> ConstPtr; 00144 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00145 }; // struct PowerBoardCommand2Request 00146 typedef ::pr2_power_board::PowerBoardCommand2Request_<std::allocator<void> > PowerBoardCommand2Request; 00147 00148 typedef boost::shared_ptr< ::pr2_power_board::PowerBoardCommand2Request> PowerBoardCommand2RequestPtr; 00149 typedef boost::shared_ptr< ::pr2_power_board::PowerBoardCommand2Request const> PowerBoardCommand2RequestConstPtr; 00150 00151 00152 template <class ContainerAllocator> 00153 struct PowerBoardCommand2Response_ { 00154 typedef PowerBoardCommand2Response_<ContainerAllocator> Type; 00155 00156 PowerBoardCommand2Response_() 00157 : success(false) 00158 { 00159 } 00160 00161 PowerBoardCommand2Response_(const ContainerAllocator& _alloc) 00162 : success(false) 00163 { 00164 } 00165 00166 typedef uint8_t _success_type; 00167 uint8_t success; 00168 00169 00170 private: 00171 static const char* __s_getDataType_() { return "pr2_power_board/PowerBoardCommand2Response"; } 00172 public: 00173 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00174 00175 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00176 00177 private: 00178 static const char* __s_getMD5Sum_() { return "358e233cde0c8a8bcfea4ce193f8fc15"; } 00179 public: 00180 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00181 00182 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00183 00184 private: 00185 static const char* __s_getServerMD5Sum_() { return "4f143c27e05688798e6220ba69c6906a"; } 00186 public: 00187 ROS_DEPRECATED static const std::string __s_getServerMD5Sum() { return __s_getServerMD5Sum_(); } 00188 00189 ROS_DEPRECATED const std::string __getServerMD5Sum() const { return __s_getServerMD5Sum_(); } 00190 00191 private: 00192 static const char* __s_getMessageDefinition_() { return "\n\ 00193 bool success\n\ 00194 \n\ 00195 \n\ 00196 "; } 00197 public: 00198 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00199 00200 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00201 00202 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00203 { 00204 ros::serialization::OStream stream(write_ptr, 1000000000); 00205 ros::serialization::serialize(stream, success); 00206 return stream.getData(); 00207 } 00208 00209 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00210 { 00211 ros::serialization::IStream stream(read_ptr, 1000000000); 00212 ros::serialization::deserialize(stream, success); 00213 return stream.getData(); 00214 } 00215 00216 ROS_DEPRECATED virtual uint32_t serializationLength() const 00217 { 00218 uint32_t size = 0; 00219 size += ros::serialization::serializationLength(success); 00220 return size; 00221 } 00222 00223 typedef boost::shared_ptr< ::pr2_power_board::PowerBoardCommand2Response_<ContainerAllocator> > Ptr; 00224 typedef boost::shared_ptr< ::pr2_power_board::PowerBoardCommand2Response_<ContainerAllocator> const> ConstPtr; 00225 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00226 }; // struct PowerBoardCommand2Response 00227 typedef ::pr2_power_board::PowerBoardCommand2Response_<std::allocator<void> > PowerBoardCommand2Response; 00228 00229 typedef boost::shared_ptr< ::pr2_power_board::PowerBoardCommand2Response> PowerBoardCommand2ResponsePtr; 00230 typedef boost::shared_ptr< ::pr2_power_board::PowerBoardCommand2Response const> PowerBoardCommand2ResponseConstPtr; 00231 00232 struct PowerBoardCommand2 00233 { 00234 00235 typedef PowerBoardCommand2Request Request; 00236 typedef PowerBoardCommand2Response Response; 00237 Request request; 00238 Response response; 00239 00240 typedef Request RequestType; 00241 typedef Response ResponseType; 00242 }; // struct PowerBoardCommand2 00243 } // namespace pr2_power_board 00244 00245 namespace ros 00246 { 00247 namespace message_traits 00248 { 00249 template<class ContainerAllocator> struct IsMessage< ::pr2_power_board::PowerBoardCommand2Request_<ContainerAllocator> > : public TrueType {}; 00250 template<class ContainerAllocator> struct IsMessage< ::pr2_power_board::PowerBoardCommand2Request_<ContainerAllocator> const> : public TrueType {}; 00251 template<class ContainerAllocator> 00252 struct MD5Sum< ::pr2_power_board::PowerBoardCommand2Request_<ContainerAllocator> > { 00253 static const char* value() 00254 { 00255 return "a31aee1db4294698375ff2a8cf53fea5"; 00256 } 00257 00258 static const char* value(const ::pr2_power_board::PowerBoardCommand2Request_<ContainerAllocator> &) { return value(); } 00259 static const uint64_t static_value1 = 0xa31aee1db4294698ULL; 00260 static const uint64_t static_value2 = 0x375ff2a8cf53fea5ULL; 00261 }; 00262 00263 template<class ContainerAllocator> 00264 struct DataType< ::pr2_power_board::PowerBoardCommand2Request_<ContainerAllocator> > { 00265 static const char* value() 00266 { 00267 return "pr2_power_board/PowerBoardCommand2Request"; 00268 } 00269 00270 static const char* value(const ::pr2_power_board::PowerBoardCommand2Request_<ContainerAllocator> &) { return value(); } 00271 }; 00272 00273 template<class ContainerAllocator> 00274 struct Definition< ::pr2_power_board::PowerBoardCommand2Request_<ContainerAllocator> > { 00275 static const char* value() 00276 { 00277 return "int32 NUMBER_OF_CIRCUITS = 3\n\ 00278 \n\ 00279 \n\ 00280 \n\ 00281 int32 circuit\n\ 00282 \n\ 00283 \n\ 00284 \n\ 00285 int32 BASE = 0\n\ 00286 int32 RIGHT_ARM = 1\n\ 00287 int32 LEFT_ARM = 2\n\ 00288 \n\ 00289 \n\ 00290 \n\ 00291 \n\ 00292 string command\n\ 00293 \n\ 00294 \n\ 00295 bool reset_stats\n\ 00296 \n\ 00297 \n\ 00298 bool reset_circuits\n\ 00299 \n\ 00300 "; 00301 } 00302 00303 static const char* value(const ::pr2_power_board::PowerBoardCommand2Request_<ContainerAllocator> &) { return value(); } 00304 }; 00305 00306 } // namespace message_traits 00307 } // namespace ros 00308 00309 00310 namespace ros 00311 { 00312 namespace message_traits 00313 { 00314 template<class ContainerAllocator> struct IsMessage< ::pr2_power_board::PowerBoardCommand2Response_<ContainerAllocator> > : public TrueType {}; 00315 template<class ContainerAllocator> struct IsMessage< ::pr2_power_board::PowerBoardCommand2Response_<ContainerAllocator> const> : public TrueType {}; 00316 template<class ContainerAllocator> 00317 struct MD5Sum< ::pr2_power_board::PowerBoardCommand2Response_<ContainerAllocator> > { 00318 static const char* value() 00319 { 00320 return "358e233cde0c8a8bcfea4ce193f8fc15"; 00321 } 00322 00323 static const char* value(const ::pr2_power_board::PowerBoardCommand2Response_<ContainerAllocator> &) { return value(); } 00324 static const uint64_t static_value1 = 0x358e233cde0c8a8bULL; 00325 static const uint64_t static_value2 = 0xcfea4ce193f8fc15ULL; 00326 }; 00327 00328 template<class ContainerAllocator> 00329 struct DataType< ::pr2_power_board::PowerBoardCommand2Response_<ContainerAllocator> > { 00330 static const char* value() 00331 { 00332 return "pr2_power_board/PowerBoardCommand2Response"; 00333 } 00334 00335 static const char* value(const ::pr2_power_board::PowerBoardCommand2Response_<ContainerAllocator> &) { return value(); } 00336 }; 00337 00338 template<class ContainerAllocator> 00339 struct Definition< ::pr2_power_board::PowerBoardCommand2Response_<ContainerAllocator> > { 00340 static const char* value() 00341 { 00342 return "\n\ 00343 bool success\n\ 00344 \n\ 00345 \n\ 00346 "; 00347 } 00348 00349 static const char* value(const ::pr2_power_board::PowerBoardCommand2Response_<ContainerAllocator> &) { return value(); } 00350 }; 00351 00352 template<class ContainerAllocator> struct IsFixedSize< ::pr2_power_board::PowerBoardCommand2Response_<ContainerAllocator> > : public TrueType {}; 00353 } // namespace message_traits 00354 } // namespace ros 00355 00356 namespace ros 00357 { 00358 namespace serialization 00359 { 00360 00361 template<class ContainerAllocator> struct Serializer< ::pr2_power_board::PowerBoardCommand2Request_<ContainerAllocator> > 00362 { 00363 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00364 { 00365 stream.next(m.circuit); 00366 stream.next(m.command); 00367 stream.next(m.reset_stats); 00368 stream.next(m.reset_circuits); 00369 } 00370 00371 ROS_DECLARE_ALLINONE_SERIALIZER; 00372 }; // struct PowerBoardCommand2Request_ 00373 } // namespace serialization 00374 } // namespace ros 00375 00376 00377 namespace ros 00378 { 00379 namespace serialization 00380 { 00381 00382 template<class ContainerAllocator> struct Serializer< ::pr2_power_board::PowerBoardCommand2Response_<ContainerAllocator> > 00383 { 00384 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00385 { 00386 stream.next(m.success); 00387 } 00388 00389 ROS_DECLARE_ALLINONE_SERIALIZER; 00390 }; // struct PowerBoardCommand2Response_ 00391 } // namespace serialization 00392 } // namespace ros 00393 00394 namespace ros 00395 { 00396 namespace service_traits 00397 { 00398 template<> 00399 struct MD5Sum<pr2_power_board::PowerBoardCommand2> { 00400 static const char* value() 00401 { 00402 return "4f143c27e05688798e6220ba69c6906a"; 00403 } 00404 00405 static const char* value(const pr2_power_board::PowerBoardCommand2&) { return value(); } 00406 }; 00407 00408 template<> 00409 struct DataType<pr2_power_board::PowerBoardCommand2> { 00410 static const char* value() 00411 { 00412 return "pr2_power_board/PowerBoardCommand2"; 00413 } 00414 00415 static const char* value(const pr2_power_board::PowerBoardCommand2&) { return value(); } 00416 }; 00417 00418 template<class ContainerAllocator> 00419 struct MD5Sum<pr2_power_board::PowerBoardCommand2Request_<ContainerAllocator> > { 00420 static const char* value() 00421 { 00422 return "4f143c27e05688798e6220ba69c6906a"; 00423 } 00424 00425 static const char* value(const pr2_power_board::PowerBoardCommand2Request_<ContainerAllocator> &) { return value(); } 00426 }; 00427 00428 template<class ContainerAllocator> 00429 struct DataType<pr2_power_board::PowerBoardCommand2Request_<ContainerAllocator> > { 00430 static const char* value() 00431 { 00432 return "pr2_power_board/PowerBoardCommand2"; 00433 } 00434 00435 static const char* value(const pr2_power_board::PowerBoardCommand2Request_<ContainerAllocator> &) { return value(); } 00436 }; 00437 00438 template<class ContainerAllocator> 00439 struct MD5Sum<pr2_power_board::PowerBoardCommand2Response_<ContainerAllocator> > { 00440 static const char* value() 00441 { 00442 return "4f143c27e05688798e6220ba69c6906a"; 00443 } 00444 00445 static const char* value(const pr2_power_board::PowerBoardCommand2Response_<ContainerAllocator> &) { return value(); } 00446 }; 00447 00448 template<class ContainerAllocator> 00449 struct DataType<pr2_power_board::PowerBoardCommand2Response_<ContainerAllocator> > { 00450 static const char* value() 00451 { 00452 return "pr2_power_board/PowerBoardCommand2"; 00453 } 00454 00455 static const char* value(const pr2_power_board::PowerBoardCommand2Response_<ContainerAllocator> &) { return value(); } 00456 }; 00457 00458 } // namespace service_traits 00459 } // namespace ros 00460 00461 #endif // PR2_POWER_BOARD_SERVICE_POWERBOARDCOMMAND2_H 00462