AuctioneerService.h
Go to the documentation of this file.
00001 /* Auto-generated by genmsg_cpp for file /home/joaoquintas/ros_workspace/SRC/auction_methods_stack/auction_srvs/srv/AuctioneerService.srv */
00002 #ifndef AUCTION_SRVS_SERVICE_AUCTIONEERSERVICE_H
00003 #define AUCTION_SRVS_SERVICE_AUCTIONEERSERVICE_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 #include "auction_msgs/Auction.h"
00020 
00021 
00022 
00023 namespace auction_srvs
00024 {
00025 template <class ContainerAllocator>
00026 struct AuctioneerServiceRequest_ {
00027   typedef AuctioneerServiceRequest_<ContainerAllocator> Type;
00028 
00029   AuctioneerServiceRequest_()
00030   : sending_node()
00031   , nodes_collected()
00032   , auction_data()
00033   {
00034   }
00035 
00036   AuctioneerServiceRequest_(const ContainerAllocator& _alloc)
00037   : sending_node(_alloc)
00038   , nodes_collected(_alloc)
00039   , auction_data(_alloc)
00040   {
00041   }
00042 
00043   typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other >  _sending_node_type;
00044   std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other >  sending_node;
00045 
00046   typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other >  _nodes_collected_type;
00047   std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other >  nodes_collected;
00048 
00049   typedef  ::auction_msgs::Auction_<ContainerAllocator>  _auction_data_type;
00050    ::auction_msgs::Auction_<ContainerAllocator>  auction_data;
00051 
00052 
00053 private:
00054   static const char* __s_getDataType_() { return "auction_srvs/AuctioneerServiceRequest"; }
00055 public:
00056   ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); }
00057 
00058   ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); }
00059 
00060 private:
00061   static const char* __s_getMD5Sum_() { return "c7bf0ccec44590484a6687d32dad126a"; }
00062 public:
00063   ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); }
00064 
00065   ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); }
00066 
00067 private:
00068   static const char* __s_getServerMD5Sum_() { return "c2995a3b557484c55996e3115ca3226e"; }
00069 public:
00070   ROS_DEPRECATED static const std::string __s_getServerMD5Sum() { return __s_getServerMD5Sum_(); }
00071 
00072   ROS_DEPRECATED const std::string __getServerMD5Sum() const { return __s_getServerMD5Sum_(); }
00073 
00074 private:
00075   static const char* __s_getMessageDefinition_() { return "\n\
00076 \n\
00077 \n\
00078 string sending_node\n\
00079 string nodes_collected\n\
00080 auction_msgs/Auction auction_data\n\
00081 \n\
00082 \n\
00083 ================================================================================\n\
00084 MSG: auction_msgs/Auction\n\
00085 Header header\n\
00086 string command\n\
00087 string task_type_name\n\
00088 string subject\n\
00089 string metrics\n\
00090 duration length\n\
00091 geometry_msgs/Point task_location\n\
00092 \n\
00093 ================================================================================\n\
00094 MSG: std_msgs/Header\n\
00095 # Standard metadata for higher-level stamped data types.\n\
00096 # This is generally used to communicate timestamped data \n\
00097 # in a particular coordinate frame.\n\
00098 # \n\
00099 # sequence ID: consecutively increasing ID \n\
00100 uint32 seq\n\
00101 #Two-integer timestamp that is expressed as:\n\
00102 # * stamp.secs: seconds (stamp_secs) since epoch\n\
00103 # * stamp.nsecs: nanoseconds since stamp_secs\n\
00104 # time-handling sugar is provided by the client library\n\
00105 time stamp\n\
00106 #Frame this data is associated with\n\
00107 # 0: no frame\n\
00108 # 1: global frame\n\
00109 string frame_id\n\
00110 \n\
00111 ================================================================================\n\
00112 MSG: geometry_msgs/Point\n\
00113 # This contains the position of a point in free space\n\
00114 float64 x\n\
00115 float64 y\n\
00116 float64 z\n\
00117 \n\
00118 "; }
00119 public:
00120   ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); }
00121 
00122   ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); }
00123 
00124   ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const
00125   {
00126     ros::serialization::OStream stream(write_ptr, 1000000000);
00127     ros::serialization::serialize(stream, sending_node);
00128     ros::serialization::serialize(stream, nodes_collected);
00129     ros::serialization::serialize(stream, auction_data);
00130     return stream.getData();
00131   }
00132 
00133   ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr)
00134   {
00135     ros::serialization::IStream stream(read_ptr, 1000000000);
00136     ros::serialization::deserialize(stream, sending_node);
00137     ros::serialization::deserialize(stream, nodes_collected);
00138     ros::serialization::deserialize(stream, auction_data);
00139     return stream.getData();
00140   }
00141 
00142   ROS_DEPRECATED virtual uint32_t serializationLength() const
00143   {
00144     uint32_t size = 0;
00145     size += ros::serialization::serializationLength(sending_node);
00146     size += ros::serialization::serializationLength(nodes_collected);
00147     size += ros::serialization::serializationLength(auction_data);
00148     return size;
00149   }
00150 
00151   typedef boost::shared_ptr< ::auction_srvs::AuctioneerServiceRequest_<ContainerAllocator> > Ptr;
00152   typedef boost::shared_ptr< ::auction_srvs::AuctioneerServiceRequest_<ContainerAllocator>  const> ConstPtr;
00153   boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00154 }; // struct AuctioneerServiceRequest
00155 typedef  ::auction_srvs::AuctioneerServiceRequest_<std::allocator<void> > AuctioneerServiceRequest;
00156 
00157 typedef boost::shared_ptr< ::auction_srvs::AuctioneerServiceRequest> AuctioneerServiceRequestPtr;
00158 typedef boost::shared_ptr< ::auction_srvs::AuctioneerServiceRequest const> AuctioneerServiceRequestConstPtr;
00159 
00160 
00161 template <class ContainerAllocator>
00162 struct AuctioneerServiceResponse_ {
00163   typedef AuctioneerServiceResponse_<ContainerAllocator> Type;
00164 
00165   AuctioneerServiceResponse_()
00166   : response_info()
00167   , winner_id()
00168   , winner_cost(0.0)
00169   {
00170   }
00171 
00172   AuctioneerServiceResponse_(const ContainerAllocator& _alloc)
00173   : response_info(_alloc)
00174   , winner_id(_alloc)
00175   , winner_cost(0.0)
00176   {
00177   }
00178 
00179   typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other >  _response_info_type;
00180   std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other >  response_info;
00181 
00182   typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other >  _winner_id_type;
00183   std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other >  winner_id;
00184 
00185   typedef double _winner_cost_type;
00186   double winner_cost;
00187 
00188 
00189 private:
00190   static const char* __s_getDataType_() { return "auction_srvs/AuctioneerServiceResponse"; }
00191 public:
00192   ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); }
00193 
00194   ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); }
00195 
00196 private:
00197   static const char* __s_getMD5Sum_() { return "86ae97f3885efd6c482c364225af8d5b"; }
00198 public:
00199   ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); }
00200 
00201   ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); }
00202 
00203 private:
00204   static const char* __s_getServerMD5Sum_() { return "c2995a3b557484c55996e3115ca3226e"; }
00205 public:
00206   ROS_DEPRECATED static const std::string __s_getServerMD5Sum() { return __s_getServerMD5Sum_(); }
00207 
00208   ROS_DEPRECATED const std::string __getServerMD5Sum() const { return __s_getServerMD5Sum_(); }
00209 
00210 private:
00211   static const char* __s_getMessageDefinition_() { return "\n\
00212 \n\
00213 \n\
00214 string response_info\n\
00215 string winner_id\n\
00216 float64 winner_cost\n\
00217 \n\
00218 "; }
00219 public:
00220   ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); }
00221 
00222   ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); }
00223 
00224   ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const
00225   {
00226     ros::serialization::OStream stream(write_ptr, 1000000000);
00227     ros::serialization::serialize(stream, response_info);
00228     ros::serialization::serialize(stream, winner_id);
00229     ros::serialization::serialize(stream, winner_cost);
00230     return stream.getData();
00231   }
00232 
00233   ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr)
00234   {
00235     ros::serialization::IStream stream(read_ptr, 1000000000);
00236     ros::serialization::deserialize(stream, response_info);
00237     ros::serialization::deserialize(stream, winner_id);
00238     ros::serialization::deserialize(stream, winner_cost);
00239     return stream.getData();
00240   }
00241 
00242   ROS_DEPRECATED virtual uint32_t serializationLength() const
00243   {
00244     uint32_t size = 0;
00245     size += ros::serialization::serializationLength(response_info);
00246     size += ros::serialization::serializationLength(winner_id);
00247     size += ros::serialization::serializationLength(winner_cost);
00248     return size;
00249   }
00250 
00251   typedef boost::shared_ptr< ::auction_srvs::AuctioneerServiceResponse_<ContainerAllocator> > Ptr;
00252   typedef boost::shared_ptr< ::auction_srvs::AuctioneerServiceResponse_<ContainerAllocator>  const> ConstPtr;
00253   boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00254 }; // struct AuctioneerServiceResponse
00255 typedef  ::auction_srvs::AuctioneerServiceResponse_<std::allocator<void> > AuctioneerServiceResponse;
00256 
00257 typedef boost::shared_ptr< ::auction_srvs::AuctioneerServiceResponse> AuctioneerServiceResponsePtr;
00258 typedef boost::shared_ptr< ::auction_srvs::AuctioneerServiceResponse const> AuctioneerServiceResponseConstPtr;
00259 
00260 struct AuctioneerService
00261 {
00262 
00263 typedef AuctioneerServiceRequest Request;
00264 typedef AuctioneerServiceResponse Response;
00265 Request request;
00266 Response response;
00267 
00268 typedef Request RequestType;
00269 typedef Response ResponseType;
00270 }; // struct AuctioneerService
00271 } // namespace auction_srvs
00272 
00273 namespace ros
00274 {
00275 namespace message_traits
00276 {
00277 template<class ContainerAllocator> struct IsMessage< ::auction_srvs::AuctioneerServiceRequest_<ContainerAllocator> > : public TrueType {};
00278 template<class ContainerAllocator> struct IsMessage< ::auction_srvs::AuctioneerServiceRequest_<ContainerAllocator>  const> : public TrueType {};
00279 template<class ContainerAllocator>
00280 struct MD5Sum< ::auction_srvs::AuctioneerServiceRequest_<ContainerAllocator> > {
00281   static const char* value() 
00282   {
00283     return "c7bf0ccec44590484a6687d32dad126a";
00284   }
00285 
00286   static const char* value(const  ::auction_srvs::AuctioneerServiceRequest_<ContainerAllocator> &) { return value(); } 
00287   static const uint64_t static_value1 = 0xc7bf0ccec4459048ULL;
00288   static const uint64_t static_value2 = 0x4a6687d32dad126aULL;
00289 };
00290 
00291 template<class ContainerAllocator>
00292 struct DataType< ::auction_srvs::AuctioneerServiceRequest_<ContainerAllocator> > {
00293   static const char* value() 
00294   {
00295     return "auction_srvs/AuctioneerServiceRequest";
00296   }
00297 
00298   static const char* value(const  ::auction_srvs::AuctioneerServiceRequest_<ContainerAllocator> &) { return value(); } 
00299 };
00300 
00301 template<class ContainerAllocator>
00302 struct Definition< ::auction_srvs::AuctioneerServiceRequest_<ContainerAllocator> > {
00303   static const char* value() 
00304   {
00305     return "\n\
00306 \n\
00307 \n\
00308 string sending_node\n\
00309 string nodes_collected\n\
00310 auction_msgs/Auction auction_data\n\
00311 \n\
00312 \n\
00313 ================================================================================\n\
00314 MSG: auction_msgs/Auction\n\
00315 Header header\n\
00316 string command\n\
00317 string task_type_name\n\
00318 string subject\n\
00319 string metrics\n\
00320 duration length\n\
00321 geometry_msgs/Point task_location\n\
00322 \n\
00323 ================================================================================\n\
00324 MSG: std_msgs/Header\n\
00325 # Standard metadata for higher-level stamped data types.\n\
00326 # This is generally used to communicate timestamped data \n\
00327 # in a particular coordinate frame.\n\
00328 # \n\
00329 # sequence ID: consecutively increasing ID \n\
00330 uint32 seq\n\
00331 #Two-integer timestamp that is expressed as:\n\
00332 # * stamp.secs: seconds (stamp_secs) since epoch\n\
00333 # * stamp.nsecs: nanoseconds since stamp_secs\n\
00334 # time-handling sugar is provided by the client library\n\
00335 time stamp\n\
00336 #Frame this data is associated with\n\
00337 # 0: no frame\n\
00338 # 1: global frame\n\
00339 string frame_id\n\
00340 \n\
00341 ================================================================================\n\
00342 MSG: geometry_msgs/Point\n\
00343 # This contains the position of a point in free space\n\
00344 float64 x\n\
00345 float64 y\n\
00346 float64 z\n\
00347 \n\
00348 ";
00349   }
00350 
00351   static const char* value(const  ::auction_srvs::AuctioneerServiceRequest_<ContainerAllocator> &) { return value(); } 
00352 };
00353 
00354 } // namespace message_traits
00355 } // namespace ros
00356 
00357 
00358 namespace ros
00359 {
00360 namespace message_traits
00361 {
00362 template<class ContainerAllocator> struct IsMessage< ::auction_srvs::AuctioneerServiceResponse_<ContainerAllocator> > : public TrueType {};
00363 template<class ContainerAllocator> struct IsMessage< ::auction_srvs::AuctioneerServiceResponse_<ContainerAllocator>  const> : public TrueType {};
00364 template<class ContainerAllocator>
00365 struct MD5Sum< ::auction_srvs::AuctioneerServiceResponse_<ContainerAllocator> > {
00366   static const char* value() 
00367   {
00368     return "86ae97f3885efd6c482c364225af8d5b";
00369   }
00370 
00371   static const char* value(const  ::auction_srvs::AuctioneerServiceResponse_<ContainerAllocator> &) { return value(); } 
00372   static const uint64_t static_value1 = 0x86ae97f3885efd6cULL;
00373   static const uint64_t static_value2 = 0x482c364225af8d5bULL;
00374 };
00375 
00376 template<class ContainerAllocator>
00377 struct DataType< ::auction_srvs::AuctioneerServiceResponse_<ContainerAllocator> > {
00378   static const char* value() 
00379   {
00380     return "auction_srvs/AuctioneerServiceResponse";
00381   }
00382 
00383   static const char* value(const  ::auction_srvs::AuctioneerServiceResponse_<ContainerAllocator> &) { return value(); } 
00384 };
00385 
00386 template<class ContainerAllocator>
00387 struct Definition< ::auction_srvs::AuctioneerServiceResponse_<ContainerAllocator> > {
00388   static const char* value() 
00389   {
00390     return "\n\
00391 \n\
00392 \n\
00393 string response_info\n\
00394 string winner_id\n\
00395 float64 winner_cost\n\
00396 \n\
00397 ";
00398   }
00399 
00400   static const char* value(const  ::auction_srvs::AuctioneerServiceResponse_<ContainerAllocator> &) { return value(); } 
00401 };
00402 
00403 } // namespace message_traits
00404 } // namespace ros
00405 
00406 namespace ros
00407 {
00408 namespace serialization
00409 {
00410 
00411 template<class ContainerAllocator> struct Serializer< ::auction_srvs::AuctioneerServiceRequest_<ContainerAllocator> >
00412 {
00413   template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00414   {
00415     stream.next(m.sending_node);
00416     stream.next(m.nodes_collected);
00417     stream.next(m.auction_data);
00418   }
00419 
00420   ROS_DECLARE_ALLINONE_SERIALIZER;
00421 }; // struct AuctioneerServiceRequest_
00422 } // namespace serialization
00423 } // namespace ros
00424 
00425 
00426 namespace ros
00427 {
00428 namespace serialization
00429 {
00430 
00431 template<class ContainerAllocator> struct Serializer< ::auction_srvs::AuctioneerServiceResponse_<ContainerAllocator> >
00432 {
00433   template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00434   {
00435     stream.next(m.response_info);
00436     stream.next(m.winner_id);
00437     stream.next(m.winner_cost);
00438   }
00439 
00440   ROS_DECLARE_ALLINONE_SERIALIZER;
00441 }; // struct AuctioneerServiceResponse_
00442 } // namespace serialization
00443 } // namespace ros
00444 
00445 namespace ros
00446 {
00447 namespace service_traits
00448 {
00449 template<>
00450 struct MD5Sum<auction_srvs::AuctioneerService> {
00451   static const char* value() 
00452   {
00453     return "c2995a3b557484c55996e3115ca3226e";
00454   }
00455 
00456   static const char* value(const auction_srvs::AuctioneerService&) { return value(); } 
00457 };
00458 
00459 template<>
00460 struct DataType<auction_srvs::AuctioneerService> {
00461   static const char* value() 
00462   {
00463     return "auction_srvs/AuctioneerService";
00464   }
00465 
00466   static const char* value(const auction_srvs::AuctioneerService&) { return value(); } 
00467 };
00468 
00469 template<class ContainerAllocator>
00470 struct MD5Sum<auction_srvs::AuctioneerServiceRequest_<ContainerAllocator> > {
00471   static const char* value() 
00472   {
00473     return "c2995a3b557484c55996e3115ca3226e";
00474   }
00475 
00476   static const char* value(const auction_srvs::AuctioneerServiceRequest_<ContainerAllocator> &) { return value(); } 
00477 };
00478 
00479 template<class ContainerAllocator>
00480 struct DataType<auction_srvs::AuctioneerServiceRequest_<ContainerAllocator> > {
00481   static const char* value() 
00482   {
00483     return "auction_srvs/AuctioneerService";
00484   }
00485 
00486   static const char* value(const auction_srvs::AuctioneerServiceRequest_<ContainerAllocator> &) { return value(); } 
00487 };
00488 
00489 template<class ContainerAllocator>
00490 struct MD5Sum<auction_srvs::AuctioneerServiceResponse_<ContainerAllocator> > {
00491   static const char* value() 
00492   {
00493     return "c2995a3b557484c55996e3115ca3226e";
00494   }
00495 
00496   static const char* value(const auction_srvs::AuctioneerServiceResponse_<ContainerAllocator> &) { return value(); } 
00497 };
00498 
00499 template<class ContainerAllocator>
00500 struct DataType<auction_srvs::AuctioneerServiceResponse_<ContainerAllocator> > {
00501   static const char* value() 
00502   {
00503     return "auction_srvs/AuctioneerService";
00504   }
00505 
00506   static const char* value(const auction_srvs::AuctioneerServiceResponse_<ContainerAllocator> &) { return value(); } 
00507 };
00508 
00509 } // namespace service_traits
00510 } // namespace ros
00511 
00512 #endif // AUCTION_SRVS_SERVICE_AUCTIONEERSERVICE_H
00513 


auction_srvs
Author(s): Joao Manuel Leitao Quintas
autogenerated on Mon Jan 6 2014 11:25:32