$search
00001 /* Auto-generated by genmsg_cpp for file /home/rosbuild/hudson/workspace/doc-electric-pr2_dremel/doc_stacks/2013-03-03_11-45-44.341273/pr2_dremel/remote_power_manager/srv/RebootPort.srv */ 00002 #ifndef REMOTE_POWER_MANAGER_SERVICE_REBOOTPORT_H 00003 #define REMOTE_POWER_MANAGER_SERVICE_REBOOTPORT_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 remote_power_manager 00023 { 00024 template <class ContainerAllocator> 00025 struct RebootPortRequest_ { 00026 typedef RebootPortRequest_<ContainerAllocator> Type; 00027 00028 RebootPortRequest_() 00029 : power_port(0) 00030 { 00031 } 00032 00033 RebootPortRequest_(const ContainerAllocator& _alloc) 00034 : power_port(0) 00035 { 00036 } 00037 00038 typedef int64_t _power_port_type; 00039 int64_t power_port; 00040 00041 00042 private: 00043 static const char* __s_getDataType_() { return "remote_power_manager/RebootPortRequest"; } 00044 public: 00045 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00046 00047 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00048 00049 private: 00050 static const char* __s_getMD5Sum_() { return "777f001c8d1dced67dc763e855890ac2"; } 00051 public: 00052 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00053 00054 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00055 00056 private: 00057 static const char* __s_getServerMD5Sum_() { return "e361bba0083db7163fc589f4c8cfed1a"; } 00058 public: 00059 ROS_DEPRECATED static const std::string __s_getServerMD5Sum() { return __s_getServerMD5Sum_(); } 00060 00061 ROS_DEPRECATED const std::string __getServerMD5Sum() const { return __s_getServerMD5Sum_(); } 00062 00063 private: 00064 static const char* __s_getMessageDefinition_() { return "int64 power_port\n\ 00065 \n\ 00066 "; } 00067 public: 00068 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00069 00070 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00071 00072 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00073 { 00074 ros::serialization::OStream stream(write_ptr, 1000000000); 00075 ros::serialization::serialize(stream, power_port); 00076 return stream.getData(); 00077 } 00078 00079 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00080 { 00081 ros::serialization::IStream stream(read_ptr, 1000000000); 00082 ros::serialization::deserialize(stream, power_port); 00083 return stream.getData(); 00084 } 00085 00086 ROS_DEPRECATED virtual uint32_t serializationLength() const 00087 { 00088 uint32_t size = 0; 00089 size += ros::serialization::serializationLength(power_port); 00090 return size; 00091 } 00092 00093 typedef boost::shared_ptr< ::remote_power_manager::RebootPortRequest_<ContainerAllocator> > Ptr; 00094 typedef boost::shared_ptr< ::remote_power_manager::RebootPortRequest_<ContainerAllocator> const> ConstPtr; 00095 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00096 }; // struct RebootPortRequest 00097 typedef ::remote_power_manager::RebootPortRequest_<std::allocator<void> > RebootPortRequest; 00098 00099 typedef boost::shared_ptr< ::remote_power_manager::RebootPortRequest> RebootPortRequestPtr; 00100 typedef boost::shared_ptr< ::remote_power_manager::RebootPortRequest const> RebootPortRequestConstPtr; 00101 00102 00103 template <class ContainerAllocator> 00104 struct RebootPortResponse_ { 00105 typedef RebootPortResponse_<ContainerAllocator> Type; 00106 00107 RebootPortResponse_() 00108 : return_code(false) 00109 { 00110 } 00111 00112 RebootPortResponse_(const ContainerAllocator& _alloc) 00113 : return_code(false) 00114 { 00115 } 00116 00117 typedef uint8_t _return_code_type; 00118 uint8_t return_code; 00119 00120 00121 private: 00122 static const char* __s_getDataType_() { return "remote_power_manager/RebootPortResponse"; } 00123 public: 00124 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00125 00126 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00127 00128 private: 00129 static const char* __s_getMD5Sum_() { return "77a016100646233c1d9b68369761856b"; } 00130 public: 00131 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00132 00133 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00134 00135 private: 00136 static const char* __s_getServerMD5Sum_() { return "e361bba0083db7163fc589f4c8cfed1a"; } 00137 public: 00138 ROS_DEPRECATED static const std::string __s_getServerMD5Sum() { return __s_getServerMD5Sum_(); } 00139 00140 ROS_DEPRECATED const std::string __getServerMD5Sum() const { return __s_getServerMD5Sum_(); } 00141 00142 private: 00143 static const char* __s_getMessageDefinition_() { return "bool return_code\n\ 00144 \n\ 00145 "; } 00146 public: 00147 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00148 00149 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00150 00151 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00152 { 00153 ros::serialization::OStream stream(write_ptr, 1000000000); 00154 ros::serialization::serialize(stream, return_code); 00155 return stream.getData(); 00156 } 00157 00158 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00159 { 00160 ros::serialization::IStream stream(read_ptr, 1000000000); 00161 ros::serialization::deserialize(stream, return_code); 00162 return stream.getData(); 00163 } 00164 00165 ROS_DEPRECATED virtual uint32_t serializationLength() const 00166 { 00167 uint32_t size = 0; 00168 size += ros::serialization::serializationLength(return_code); 00169 return size; 00170 } 00171 00172 typedef boost::shared_ptr< ::remote_power_manager::RebootPortResponse_<ContainerAllocator> > Ptr; 00173 typedef boost::shared_ptr< ::remote_power_manager::RebootPortResponse_<ContainerAllocator> const> ConstPtr; 00174 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00175 }; // struct RebootPortResponse 00176 typedef ::remote_power_manager::RebootPortResponse_<std::allocator<void> > RebootPortResponse; 00177 00178 typedef boost::shared_ptr< ::remote_power_manager::RebootPortResponse> RebootPortResponsePtr; 00179 typedef boost::shared_ptr< ::remote_power_manager::RebootPortResponse const> RebootPortResponseConstPtr; 00180 00181 struct RebootPort 00182 { 00183 00184 typedef RebootPortRequest Request; 00185 typedef RebootPortResponse Response; 00186 Request request; 00187 Response response; 00188 00189 typedef Request RequestType; 00190 typedef Response ResponseType; 00191 }; // struct RebootPort 00192 } // namespace remote_power_manager 00193 00194 namespace ros 00195 { 00196 namespace message_traits 00197 { 00198 template<class ContainerAllocator> struct IsMessage< ::remote_power_manager::RebootPortRequest_<ContainerAllocator> > : public TrueType {}; 00199 template<class ContainerAllocator> struct IsMessage< ::remote_power_manager::RebootPortRequest_<ContainerAllocator> const> : public TrueType {}; 00200 template<class ContainerAllocator> 00201 struct MD5Sum< ::remote_power_manager::RebootPortRequest_<ContainerAllocator> > { 00202 static const char* value() 00203 { 00204 return "777f001c8d1dced67dc763e855890ac2"; 00205 } 00206 00207 static const char* value(const ::remote_power_manager::RebootPortRequest_<ContainerAllocator> &) { return value(); } 00208 static const uint64_t static_value1 = 0x777f001c8d1dced6ULL; 00209 static const uint64_t static_value2 = 0x7dc763e855890ac2ULL; 00210 }; 00211 00212 template<class ContainerAllocator> 00213 struct DataType< ::remote_power_manager::RebootPortRequest_<ContainerAllocator> > { 00214 static const char* value() 00215 { 00216 return "remote_power_manager/RebootPortRequest"; 00217 } 00218 00219 static const char* value(const ::remote_power_manager::RebootPortRequest_<ContainerAllocator> &) { return value(); } 00220 }; 00221 00222 template<class ContainerAllocator> 00223 struct Definition< ::remote_power_manager::RebootPortRequest_<ContainerAllocator> > { 00224 static const char* value() 00225 { 00226 return "int64 power_port\n\ 00227 \n\ 00228 "; 00229 } 00230 00231 static const char* value(const ::remote_power_manager::RebootPortRequest_<ContainerAllocator> &) { return value(); } 00232 }; 00233 00234 template<class ContainerAllocator> struct IsFixedSize< ::remote_power_manager::RebootPortRequest_<ContainerAllocator> > : public TrueType {}; 00235 } // namespace message_traits 00236 } // namespace ros 00237 00238 00239 namespace ros 00240 { 00241 namespace message_traits 00242 { 00243 template<class ContainerAllocator> struct IsMessage< ::remote_power_manager::RebootPortResponse_<ContainerAllocator> > : public TrueType {}; 00244 template<class ContainerAllocator> struct IsMessage< ::remote_power_manager::RebootPortResponse_<ContainerAllocator> const> : public TrueType {}; 00245 template<class ContainerAllocator> 00246 struct MD5Sum< ::remote_power_manager::RebootPortResponse_<ContainerAllocator> > { 00247 static const char* value() 00248 { 00249 return "77a016100646233c1d9b68369761856b"; 00250 } 00251 00252 static const char* value(const ::remote_power_manager::RebootPortResponse_<ContainerAllocator> &) { return value(); } 00253 static const uint64_t static_value1 = 0x77a016100646233cULL; 00254 static const uint64_t static_value2 = 0x1d9b68369761856bULL; 00255 }; 00256 00257 template<class ContainerAllocator> 00258 struct DataType< ::remote_power_manager::RebootPortResponse_<ContainerAllocator> > { 00259 static const char* value() 00260 { 00261 return "remote_power_manager/RebootPortResponse"; 00262 } 00263 00264 static const char* value(const ::remote_power_manager::RebootPortResponse_<ContainerAllocator> &) { return value(); } 00265 }; 00266 00267 template<class ContainerAllocator> 00268 struct Definition< ::remote_power_manager::RebootPortResponse_<ContainerAllocator> > { 00269 static const char* value() 00270 { 00271 return "bool return_code\n\ 00272 \n\ 00273 "; 00274 } 00275 00276 static const char* value(const ::remote_power_manager::RebootPortResponse_<ContainerAllocator> &) { return value(); } 00277 }; 00278 00279 template<class ContainerAllocator> struct IsFixedSize< ::remote_power_manager::RebootPortResponse_<ContainerAllocator> > : public TrueType {}; 00280 } // namespace message_traits 00281 } // namespace ros 00282 00283 namespace ros 00284 { 00285 namespace serialization 00286 { 00287 00288 template<class ContainerAllocator> struct Serializer< ::remote_power_manager::RebootPortRequest_<ContainerAllocator> > 00289 { 00290 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00291 { 00292 stream.next(m.power_port); 00293 } 00294 00295 ROS_DECLARE_ALLINONE_SERIALIZER; 00296 }; // struct RebootPortRequest_ 00297 } // namespace serialization 00298 } // namespace ros 00299 00300 00301 namespace ros 00302 { 00303 namespace serialization 00304 { 00305 00306 template<class ContainerAllocator> struct Serializer< ::remote_power_manager::RebootPortResponse_<ContainerAllocator> > 00307 { 00308 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00309 { 00310 stream.next(m.return_code); 00311 } 00312 00313 ROS_DECLARE_ALLINONE_SERIALIZER; 00314 }; // struct RebootPortResponse_ 00315 } // namespace serialization 00316 } // namespace ros 00317 00318 namespace ros 00319 { 00320 namespace service_traits 00321 { 00322 template<> 00323 struct MD5Sum<remote_power_manager::RebootPort> { 00324 static const char* value() 00325 { 00326 return "e361bba0083db7163fc589f4c8cfed1a"; 00327 } 00328 00329 static const char* value(const remote_power_manager::RebootPort&) { return value(); } 00330 }; 00331 00332 template<> 00333 struct DataType<remote_power_manager::RebootPort> { 00334 static const char* value() 00335 { 00336 return "remote_power_manager/RebootPort"; 00337 } 00338 00339 static const char* value(const remote_power_manager::RebootPort&) { return value(); } 00340 }; 00341 00342 template<class ContainerAllocator> 00343 struct MD5Sum<remote_power_manager::RebootPortRequest_<ContainerAllocator> > { 00344 static const char* value() 00345 { 00346 return "e361bba0083db7163fc589f4c8cfed1a"; 00347 } 00348 00349 static const char* value(const remote_power_manager::RebootPortRequest_<ContainerAllocator> &) { return value(); } 00350 }; 00351 00352 template<class ContainerAllocator> 00353 struct DataType<remote_power_manager::RebootPortRequest_<ContainerAllocator> > { 00354 static const char* value() 00355 { 00356 return "remote_power_manager/RebootPort"; 00357 } 00358 00359 static const char* value(const remote_power_manager::RebootPortRequest_<ContainerAllocator> &) { return value(); } 00360 }; 00361 00362 template<class ContainerAllocator> 00363 struct MD5Sum<remote_power_manager::RebootPortResponse_<ContainerAllocator> > { 00364 static const char* value() 00365 { 00366 return "e361bba0083db7163fc589f4c8cfed1a"; 00367 } 00368 00369 static const char* value(const remote_power_manager::RebootPortResponse_<ContainerAllocator> &) { return value(); } 00370 }; 00371 00372 template<class ContainerAllocator> 00373 struct DataType<remote_power_manager::RebootPortResponse_<ContainerAllocator> > { 00374 static const char* value() 00375 { 00376 return "remote_power_manager/RebootPort"; 00377 } 00378 00379 static const char* value(const remote_power_manager::RebootPortResponse_<ContainerAllocator> &) { return value(); } 00380 }; 00381 00382 } // namespace service_traits 00383 } // namespace ros 00384 00385 #endif // REMOTE_POWER_MANAGER_SERVICE_REBOOTPORT_H 00386