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