$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/PowerBoardCommand.srv */ 00002 #ifndef PR2_POWER_BOARD_SERVICE_POWERBOARDCOMMAND_H 00003 #define PR2_POWER_BOARD_SERVICE_POWERBOARDCOMMAND_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 PowerBoardCommandRequest_ { 00026 typedef PowerBoardCommandRequest_<ContainerAllocator> Type; 00027 00028 PowerBoardCommandRequest_() 00029 : serial_number(0) 00030 , breaker_number(0) 00031 , command() 00032 , flags(0) 00033 { 00034 } 00035 00036 PowerBoardCommandRequest_(const ContainerAllocator& _alloc) 00037 : serial_number(0) 00038 , breaker_number(0) 00039 , command(_alloc) 00040 , flags(0) 00041 { 00042 } 00043 00044 typedef uint32_t _serial_number_type; 00045 uint32_t serial_number; 00046 00047 typedef int32_t _breaker_number_type; 00048 int32_t breaker_number; 00049 00050 typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _command_type; 00051 std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > command; 00052 00053 typedef uint32_t _flags_type; 00054 uint32_t flags; 00055 00056 00057 private: 00058 static const char* __s_getDataType_() { return "pr2_power_board/PowerBoardCommandRequest"; } 00059 public: 00060 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00061 00062 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00063 00064 private: 00065 static const char* __s_getMD5Sum_() { return "9c621f5309bca0033e8eaef81c31500a"; } 00066 public: 00067 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00068 00069 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00070 00071 private: 00072 static const char* __s_getServerMD5Sum_() { return "d9e38de783aa7edc3146446518e85af2"; } 00073 public: 00074 ROS_DEPRECATED static const std::string __s_getServerMD5Sum() { return __s_getServerMD5Sum_(); } 00075 00076 ROS_DEPRECATED const std::string __getServerMD5Sum() const { return __s_getServerMD5Sum_(); } 00077 00078 private: 00079 static const char* __s_getMessageDefinition_() { return "uint32 serial_number\n\ 00080 int32 breaker_number\n\ 00081 string command\n\ 00082 uint32 flags\n\ 00083 \n\ 00084 "; } 00085 public: 00086 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00087 00088 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00089 00090 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00091 { 00092 ros::serialization::OStream stream(write_ptr, 1000000000); 00093 ros::serialization::serialize(stream, serial_number); 00094 ros::serialization::serialize(stream, breaker_number); 00095 ros::serialization::serialize(stream, command); 00096 ros::serialization::serialize(stream, flags); 00097 return stream.getData(); 00098 } 00099 00100 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00101 { 00102 ros::serialization::IStream stream(read_ptr, 1000000000); 00103 ros::serialization::deserialize(stream, serial_number); 00104 ros::serialization::deserialize(stream, breaker_number); 00105 ros::serialization::deserialize(stream, command); 00106 ros::serialization::deserialize(stream, flags); 00107 return stream.getData(); 00108 } 00109 00110 ROS_DEPRECATED virtual uint32_t serializationLength() const 00111 { 00112 uint32_t size = 0; 00113 size += ros::serialization::serializationLength(serial_number); 00114 size += ros::serialization::serializationLength(breaker_number); 00115 size += ros::serialization::serializationLength(command); 00116 size += ros::serialization::serializationLength(flags); 00117 return size; 00118 } 00119 00120 typedef boost::shared_ptr< ::pr2_power_board::PowerBoardCommandRequest_<ContainerAllocator> > Ptr; 00121 typedef boost::shared_ptr< ::pr2_power_board::PowerBoardCommandRequest_<ContainerAllocator> const> ConstPtr; 00122 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00123 }; // struct PowerBoardCommandRequest 00124 typedef ::pr2_power_board::PowerBoardCommandRequest_<std::allocator<void> > PowerBoardCommandRequest; 00125 00126 typedef boost::shared_ptr< ::pr2_power_board::PowerBoardCommandRequest> PowerBoardCommandRequestPtr; 00127 typedef boost::shared_ptr< ::pr2_power_board::PowerBoardCommandRequest const> PowerBoardCommandRequestConstPtr; 00128 00129 00130 template <class ContainerAllocator> 00131 struct PowerBoardCommandResponse_ { 00132 typedef PowerBoardCommandResponse_<ContainerAllocator> Type; 00133 00134 PowerBoardCommandResponse_() 00135 : retval(0) 00136 { 00137 } 00138 00139 PowerBoardCommandResponse_(const ContainerAllocator& _alloc) 00140 : retval(0) 00141 { 00142 } 00143 00144 typedef int32_t _retval_type; 00145 int32_t retval; 00146 00147 00148 private: 00149 static const char* __s_getDataType_() { return "pr2_power_board/PowerBoardCommandResponse"; } 00150 public: 00151 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00152 00153 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00154 00155 private: 00156 static const char* __s_getMD5Sum_() { return "f5697a1e05c2a3e1c23cab49a31319ec"; } 00157 public: 00158 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00159 00160 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00161 00162 private: 00163 static const char* __s_getServerMD5Sum_() { return "d9e38de783aa7edc3146446518e85af2"; } 00164 public: 00165 ROS_DEPRECATED static const std::string __s_getServerMD5Sum() { return __s_getServerMD5Sum_(); } 00166 00167 ROS_DEPRECATED const std::string __getServerMD5Sum() const { return __s_getServerMD5Sum_(); } 00168 00169 private: 00170 static const char* __s_getMessageDefinition_() { return "int32 retval\n\ 00171 \n\ 00172 \n\ 00173 "; } 00174 public: 00175 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00176 00177 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00178 00179 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00180 { 00181 ros::serialization::OStream stream(write_ptr, 1000000000); 00182 ros::serialization::serialize(stream, retval); 00183 return stream.getData(); 00184 } 00185 00186 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00187 { 00188 ros::serialization::IStream stream(read_ptr, 1000000000); 00189 ros::serialization::deserialize(stream, retval); 00190 return stream.getData(); 00191 } 00192 00193 ROS_DEPRECATED virtual uint32_t serializationLength() const 00194 { 00195 uint32_t size = 0; 00196 size += ros::serialization::serializationLength(retval); 00197 return size; 00198 } 00199 00200 typedef boost::shared_ptr< ::pr2_power_board::PowerBoardCommandResponse_<ContainerAllocator> > Ptr; 00201 typedef boost::shared_ptr< ::pr2_power_board::PowerBoardCommandResponse_<ContainerAllocator> const> ConstPtr; 00202 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00203 }; // struct PowerBoardCommandResponse 00204 typedef ::pr2_power_board::PowerBoardCommandResponse_<std::allocator<void> > PowerBoardCommandResponse; 00205 00206 typedef boost::shared_ptr< ::pr2_power_board::PowerBoardCommandResponse> PowerBoardCommandResponsePtr; 00207 typedef boost::shared_ptr< ::pr2_power_board::PowerBoardCommandResponse const> PowerBoardCommandResponseConstPtr; 00208 00209 struct PowerBoardCommand 00210 { 00211 00212 typedef PowerBoardCommandRequest Request; 00213 typedef PowerBoardCommandResponse Response; 00214 Request request; 00215 Response response; 00216 00217 typedef Request RequestType; 00218 typedef Response ResponseType; 00219 }; // struct PowerBoardCommand 00220 } // namespace pr2_power_board 00221 00222 namespace ros 00223 { 00224 namespace message_traits 00225 { 00226 template<class ContainerAllocator> struct IsMessage< ::pr2_power_board::PowerBoardCommandRequest_<ContainerAllocator> > : public TrueType {}; 00227 template<class ContainerAllocator> struct IsMessage< ::pr2_power_board::PowerBoardCommandRequest_<ContainerAllocator> const> : public TrueType {}; 00228 template<class ContainerAllocator> 00229 struct MD5Sum< ::pr2_power_board::PowerBoardCommandRequest_<ContainerAllocator> > { 00230 static const char* value() 00231 { 00232 return "9c621f5309bca0033e8eaef81c31500a"; 00233 } 00234 00235 static const char* value(const ::pr2_power_board::PowerBoardCommandRequest_<ContainerAllocator> &) { return value(); } 00236 static const uint64_t static_value1 = 0x9c621f5309bca003ULL; 00237 static const uint64_t static_value2 = 0x3e8eaef81c31500aULL; 00238 }; 00239 00240 template<class ContainerAllocator> 00241 struct DataType< ::pr2_power_board::PowerBoardCommandRequest_<ContainerAllocator> > { 00242 static const char* value() 00243 { 00244 return "pr2_power_board/PowerBoardCommandRequest"; 00245 } 00246 00247 static const char* value(const ::pr2_power_board::PowerBoardCommandRequest_<ContainerAllocator> &) { return value(); } 00248 }; 00249 00250 template<class ContainerAllocator> 00251 struct Definition< ::pr2_power_board::PowerBoardCommandRequest_<ContainerAllocator> > { 00252 static const char* value() 00253 { 00254 return "uint32 serial_number\n\ 00255 int32 breaker_number\n\ 00256 string command\n\ 00257 uint32 flags\n\ 00258 \n\ 00259 "; 00260 } 00261 00262 static const char* value(const ::pr2_power_board::PowerBoardCommandRequest_<ContainerAllocator> &) { return value(); } 00263 }; 00264 00265 } // namespace message_traits 00266 } // namespace ros 00267 00268 00269 namespace ros 00270 { 00271 namespace message_traits 00272 { 00273 template<class ContainerAllocator> struct IsMessage< ::pr2_power_board::PowerBoardCommandResponse_<ContainerAllocator> > : public TrueType {}; 00274 template<class ContainerAllocator> struct IsMessage< ::pr2_power_board::PowerBoardCommandResponse_<ContainerAllocator> const> : public TrueType {}; 00275 template<class ContainerAllocator> 00276 struct MD5Sum< ::pr2_power_board::PowerBoardCommandResponse_<ContainerAllocator> > { 00277 static const char* value() 00278 { 00279 return "f5697a1e05c2a3e1c23cab49a31319ec"; 00280 } 00281 00282 static const char* value(const ::pr2_power_board::PowerBoardCommandResponse_<ContainerAllocator> &) { return value(); } 00283 static const uint64_t static_value1 = 0xf5697a1e05c2a3e1ULL; 00284 static const uint64_t static_value2 = 0xc23cab49a31319ecULL; 00285 }; 00286 00287 template<class ContainerAllocator> 00288 struct DataType< ::pr2_power_board::PowerBoardCommandResponse_<ContainerAllocator> > { 00289 static const char* value() 00290 { 00291 return "pr2_power_board/PowerBoardCommandResponse"; 00292 } 00293 00294 static const char* value(const ::pr2_power_board::PowerBoardCommandResponse_<ContainerAllocator> &) { return value(); } 00295 }; 00296 00297 template<class ContainerAllocator> 00298 struct Definition< ::pr2_power_board::PowerBoardCommandResponse_<ContainerAllocator> > { 00299 static const char* value() 00300 { 00301 return "int32 retval\n\ 00302 \n\ 00303 \n\ 00304 "; 00305 } 00306 00307 static const char* value(const ::pr2_power_board::PowerBoardCommandResponse_<ContainerAllocator> &) { return value(); } 00308 }; 00309 00310 template<class ContainerAllocator> struct IsFixedSize< ::pr2_power_board::PowerBoardCommandResponse_<ContainerAllocator> > : public TrueType {}; 00311 } // namespace message_traits 00312 } // namespace ros 00313 00314 namespace ros 00315 { 00316 namespace serialization 00317 { 00318 00319 template<class ContainerAllocator> struct Serializer< ::pr2_power_board::PowerBoardCommandRequest_<ContainerAllocator> > 00320 { 00321 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00322 { 00323 stream.next(m.serial_number); 00324 stream.next(m.breaker_number); 00325 stream.next(m.command); 00326 stream.next(m.flags); 00327 } 00328 00329 ROS_DECLARE_ALLINONE_SERIALIZER; 00330 }; // struct PowerBoardCommandRequest_ 00331 } // namespace serialization 00332 } // namespace ros 00333 00334 00335 namespace ros 00336 { 00337 namespace serialization 00338 { 00339 00340 template<class ContainerAllocator> struct Serializer< ::pr2_power_board::PowerBoardCommandResponse_<ContainerAllocator> > 00341 { 00342 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00343 { 00344 stream.next(m.retval); 00345 } 00346 00347 ROS_DECLARE_ALLINONE_SERIALIZER; 00348 }; // struct PowerBoardCommandResponse_ 00349 } // namespace serialization 00350 } // namespace ros 00351 00352 namespace ros 00353 { 00354 namespace service_traits 00355 { 00356 template<> 00357 struct MD5Sum<pr2_power_board::PowerBoardCommand> { 00358 static const char* value() 00359 { 00360 return "d9e38de783aa7edc3146446518e85af2"; 00361 } 00362 00363 static const char* value(const pr2_power_board::PowerBoardCommand&) { return value(); } 00364 }; 00365 00366 template<> 00367 struct DataType<pr2_power_board::PowerBoardCommand> { 00368 static const char* value() 00369 { 00370 return "pr2_power_board/PowerBoardCommand"; 00371 } 00372 00373 static const char* value(const pr2_power_board::PowerBoardCommand&) { return value(); } 00374 }; 00375 00376 template<class ContainerAllocator> 00377 struct MD5Sum<pr2_power_board::PowerBoardCommandRequest_<ContainerAllocator> > { 00378 static const char* value() 00379 { 00380 return "d9e38de783aa7edc3146446518e85af2"; 00381 } 00382 00383 static const char* value(const pr2_power_board::PowerBoardCommandRequest_<ContainerAllocator> &) { return value(); } 00384 }; 00385 00386 template<class ContainerAllocator> 00387 struct DataType<pr2_power_board::PowerBoardCommandRequest_<ContainerAllocator> > { 00388 static const char* value() 00389 { 00390 return "pr2_power_board/PowerBoardCommand"; 00391 } 00392 00393 static const char* value(const pr2_power_board::PowerBoardCommandRequest_<ContainerAllocator> &) { return value(); } 00394 }; 00395 00396 template<class ContainerAllocator> 00397 struct MD5Sum<pr2_power_board::PowerBoardCommandResponse_<ContainerAllocator> > { 00398 static const char* value() 00399 { 00400 return "d9e38de783aa7edc3146446518e85af2"; 00401 } 00402 00403 static const char* value(const pr2_power_board::PowerBoardCommandResponse_<ContainerAllocator> &) { return value(); } 00404 }; 00405 00406 template<class ContainerAllocator> 00407 struct DataType<pr2_power_board::PowerBoardCommandResponse_<ContainerAllocator> > { 00408 static const char* value() 00409 { 00410 return "pr2_power_board/PowerBoardCommand"; 00411 } 00412 00413 static const char* value(const pr2_power_board::PowerBoardCommandResponse_<ContainerAllocator> &) { return value(); } 00414 }; 00415 00416 } // namespace service_traits 00417 } // namespace ros 00418 00419 #endif // PR2_POWER_BOARD_SERVICE_POWERBOARDCOMMAND_H 00420