_AuctionServiceReset.py
Go to the documentation of this file.
00001 """autogenerated by genmsg_py from AuctionServiceResetRequest.msg. Do not edit."""
00002 import roslib.message
00003 import struct
00004 
00005 import geometry_msgs.msg
00006 import auction_msgs.msg
00007 import roslib.rostime
00008 import std_msgs.msg
00009 
00010 class AuctionServiceResetRequest(roslib.message.Message):
00011   _md5sum = "71cdc8b8f8b1a628ff5e78f4bb4202a8"
00012   _type = "auction_srvs/AuctionServiceResetRequest"
00013   _has_header = False #flag to mark the presence of a Header object
00014   _full_text = """
00015 
00016 
00017 string role
00018 string auction_type
00019 string sending_node
00020 string nodes_collected
00021 auction_msgs/Auction auction_data
00022 
00023 
00024 ================================================================================
00025 MSG: auction_msgs/Auction
00026 Header header
00027 string command
00028 string task_type_name
00029 string subject
00030 string metrics
00031 duration length
00032 geometry_msgs/Point task_location
00033 
00034 ================================================================================
00035 MSG: std_msgs/Header
00036 # Standard metadata for higher-level stamped data types.
00037 # This is generally used to communicate timestamped data 
00038 # in a particular coordinate frame.
00039 # 
00040 # sequence ID: consecutively increasing ID 
00041 uint32 seq
00042 #Two-integer timestamp that is expressed as:
00043 # * stamp.secs: seconds (stamp_secs) since epoch
00044 # * stamp.nsecs: nanoseconds since stamp_secs
00045 # time-handling sugar is provided by the client library
00046 time stamp
00047 #Frame this data is associated with
00048 # 0: no frame
00049 # 1: global frame
00050 string frame_id
00051 
00052 ================================================================================
00053 MSG: geometry_msgs/Point
00054 # This contains the position of a point in free space
00055 float64 x
00056 float64 y
00057 float64 z
00058 
00059 """
00060   __slots__ = ['role','auction_type','sending_node','nodes_collected','auction_data']
00061   _slot_types = ['string','string','string','string','auction_msgs/Auction']
00062 
00063   def __init__(self, *args, **kwds):
00064     """
00065     Constructor. Any message fields that are implicitly/explicitly
00066     set to None will be assigned a default value. The recommend
00067     use is keyword arguments as this is more robust to future message
00068     changes.  You cannot mix in-order arguments and keyword arguments.
00069     
00070     The available fields are:
00071        role,auction_type,sending_node,nodes_collected,auction_data
00072     
00073     @param args: complete set of field values, in .msg order
00074     @param kwds: use keyword arguments corresponding to message field names
00075     to set specific fields. 
00076     """
00077     if args or kwds:
00078       super(AuctionServiceResetRequest, self).__init__(*args, **kwds)
00079       #message fields cannot be None, assign default values for those that are
00080       if self.role is None:
00081         self.role = ''
00082       if self.auction_type is None:
00083         self.auction_type = ''
00084       if self.sending_node is None:
00085         self.sending_node = ''
00086       if self.nodes_collected is None:
00087         self.nodes_collected = ''
00088       if self.auction_data is None:
00089         self.auction_data = auction_msgs.msg.Auction()
00090     else:
00091       self.role = ''
00092       self.auction_type = ''
00093       self.sending_node = ''
00094       self.nodes_collected = ''
00095       self.auction_data = auction_msgs.msg.Auction()
00096 
00097   def _get_types(self):
00098     """
00099     internal API method
00100     """
00101     return self._slot_types
00102 
00103   def serialize(self, buff):
00104     """
00105     serialize message into buffer
00106     @param buff: buffer
00107     @type  buff: StringIO
00108     """
00109     try:
00110       _x = self.role
00111       length = len(_x)
00112       buff.write(struct.pack('<I%ss'%length, length, _x))
00113       _x = self.auction_type
00114       length = len(_x)
00115       buff.write(struct.pack('<I%ss'%length, length, _x))
00116       _x = self.sending_node
00117       length = len(_x)
00118       buff.write(struct.pack('<I%ss'%length, length, _x))
00119       _x = self.nodes_collected
00120       length = len(_x)
00121       buff.write(struct.pack('<I%ss'%length, length, _x))
00122       _x = self
00123       buff.write(_struct_3I.pack(_x.auction_data.header.seq, _x.auction_data.header.stamp.secs, _x.auction_data.header.stamp.nsecs))
00124       _x = self.auction_data.header.frame_id
00125       length = len(_x)
00126       buff.write(struct.pack('<I%ss'%length, length, _x))
00127       _x = self.auction_data.command
00128       length = len(_x)
00129       buff.write(struct.pack('<I%ss'%length, length, _x))
00130       _x = self.auction_data.task_type_name
00131       length = len(_x)
00132       buff.write(struct.pack('<I%ss'%length, length, _x))
00133       _x = self.auction_data.subject
00134       length = len(_x)
00135       buff.write(struct.pack('<I%ss'%length, length, _x))
00136       _x = self.auction_data.metrics
00137       length = len(_x)
00138       buff.write(struct.pack('<I%ss'%length, length, _x))
00139       _x = self
00140       buff.write(_struct_2i3d.pack(_x.auction_data.length.secs, _x.auction_data.length.nsecs, _x.auction_data.task_location.x, _x.auction_data.task_location.y, _x.auction_data.task_location.z))
00141     except struct.error as se: self._check_types(se)
00142     except TypeError as te: self._check_types(te)
00143 
00144   def deserialize(self, str):
00145     """
00146     unpack serialized message in str into this message instance
00147     @param str: byte array of serialized message
00148     @type  str: str
00149     """
00150     try:
00151       if self.auction_data is None:
00152         self.auction_data = auction_msgs.msg.Auction()
00153       end = 0
00154       start = end
00155       end += 4
00156       (length,) = _struct_I.unpack(str[start:end])
00157       start = end
00158       end += length
00159       self.role = str[start:end]
00160       start = end
00161       end += 4
00162       (length,) = _struct_I.unpack(str[start:end])
00163       start = end
00164       end += length
00165       self.auction_type = str[start:end]
00166       start = end
00167       end += 4
00168       (length,) = _struct_I.unpack(str[start:end])
00169       start = end
00170       end += length
00171       self.sending_node = str[start:end]
00172       start = end
00173       end += 4
00174       (length,) = _struct_I.unpack(str[start:end])
00175       start = end
00176       end += length
00177       self.nodes_collected = str[start:end]
00178       _x = self
00179       start = end
00180       end += 12
00181       (_x.auction_data.header.seq, _x.auction_data.header.stamp.secs, _x.auction_data.header.stamp.nsecs,) = _struct_3I.unpack(str[start:end])
00182       start = end
00183       end += 4
00184       (length,) = _struct_I.unpack(str[start:end])
00185       start = end
00186       end += length
00187       self.auction_data.header.frame_id = str[start:end]
00188       start = end
00189       end += 4
00190       (length,) = _struct_I.unpack(str[start:end])
00191       start = end
00192       end += length
00193       self.auction_data.command = str[start:end]
00194       start = end
00195       end += 4
00196       (length,) = _struct_I.unpack(str[start:end])
00197       start = end
00198       end += length
00199       self.auction_data.task_type_name = str[start:end]
00200       start = end
00201       end += 4
00202       (length,) = _struct_I.unpack(str[start:end])
00203       start = end
00204       end += length
00205       self.auction_data.subject = str[start:end]
00206       start = end
00207       end += 4
00208       (length,) = _struct_I.unpack(str[start:end])
00209       start = end
00210       end += length
00211       self.auction_data.metrics = str[start:end]
00212       _x = self
00213       start = end
00214       end += 32
00215       (_x.auction_data.length.secs, _x.auction_data.length.nsecs, _x.auction_data.task_location.x, _x.auction_data.task_location.y, _x.auction_data.task_location.z,) = _struct_2i3d.unpack(str[start:end])
00216       return self
00217     except struct.error as e:
00218       raise roslib.message.DeserializationError(e) #most likely buffer underfill
00219 
00220 
00221   def serialize_numpy(self, buff, numpy):
00222     """
00223     serialize message with numpy array types into buffer
00224     @param buff: buffer
00225     @type  buff: StringIO
00226     @param numpy: numpy python module
00227     @type  numpy module
00228     """
00229     try:
00230       _x = self.role
00231       length = len(_x)
00232       buff.write(struct.pack('<I%ss'%length, length, _x))
00233       _x = self.auction_type
00234       length = len(_x)
00235       buff.write(struct.pack('<I%ss'%length, length, _x))
00236       _x = self.sending_node
00237       length = len(_x)
00238       buff.write(struct.pack('<I%ss'%length, length, _x))
00239       _x = self.nodes_collected
00240       length = len(_x)
00241       buff.write(struct.pack('<I%ss'%length, length, _x))
00242       _x = self
00243       buff.write(_struct_3I.pack(_x.auction_data.header.seq, _x.auction_data.header.stamp.secs, _x.auction_data.header.stamp.nsecs))
00244       _x = self.auction_data.header.frame_id
00245       length = len(_x)
00246       buff.write(struct.pack('<I%ss'%length, length, _x))
00247       _x = self.auction_data.command
00248       length = len(_x)
00249       buff.write(struct.pack('<I%ss'%length, length, _x))
00250       _x = self.auction_data.task_type_name
00251       length = len(_x)
00252       buff.write(struct.pack('<I%ss'%length, length, _x))
00253       _x = self.auction_data.subject
00254       length = len(_x)
00255       buff.write(struct.pack('<I%ss'%length, length, _x))
00256       _x = self.auction_data.metrics
00257       length = len(_x)
00258       buff.write(struct.pack('<I%ss'%length, length, _x))
00259       _x = self
00260       buff.write(_struct_2i3d.pack(_x.auction_data.length.secs, _x.auction_data.length.nsecs, _x.auction_data.task_location.x, _x.auction_data.task_location.y, _x.auction_data.task_location.z))
00261     except struct.error as se: self._check_types(se)
00262     except TypeError as te: self._check_types(te)
00263 
00264   def deserialize_numpy(self, str, numpy):
00265     """
00266     unpack serialized message in str into this message instance using numpy for array types
00267     @param str: byte array of serialized message
00268     @type  str: str
00269     @param numpy: numpy python module
00270     @type  numpy: module
00271     """
00272     try:
00273       if self.auction_data is None:
00274         self.auction_data = auction_msgs.msg.Auction()
00275       end = 0
00276       start = end
00277       end += 4
00278       (length,) = _struct_I.unpack(str[start:end])
00279       start = end
00280       end += length
00281       self.role = str[start:end]
00282       start = end
00283       end += 4
00284       (length,) = _struct_I.unpack(str[start:end])
00285       start = end
00286       end += length
00287       self.auction_type = str[start:end]
00288       start = end
00289       end += 4
00290       (length,) = _struct_I.unpack(str[start:end])
00291       start = end
00292       end += length
00293       self.sending_node = str[start:end]
00294       start = end
00295       end += 4
00296       (length,) = _struct_I.unpack(str[start:end])
00297       start = end
00298       end += length
00299       self.nodes_collected = str[start:end]
00300       _x = self
00301       start = end
00302       end += 12
00303       (_x.auction_data.header.seq, _x.auction_data.header.stamp.secs, _x.auction_data.header.stamp.nsecs,) = _struct_3I.unpack(str[start:end])
00304       start = end
00305       end += 4
00306       (length,) = _struct_I.unpack(str[start:end])
00307       start = end
00308       end += length
00309       self.auction_data.header.frame_id = str[start:end]
00310       start = end
00311       end += 4
00312       (length,) = _struct_I.unpack(str[start:end])
00313       start = end
00314       end += length
00315       self.auction_data.command = str[start:end]
00316       start = end
00317       end += 4
00318       (length,) = _struct_I.unpack(str[start:end])
00319       start = end
00320       end += length
00321       self.auction_data.task_type_name = str[start:end]
00322       start = end
00323       end += 4
00324       (length,) = _struct_I.unpack(str[start:end])
00325       start = end
00326       end += length
00327       self.auction_data.subject = str[start:end]
00328       start = end
00329       end += 4
00330       (length,) = _struct_I.unpack(str[start:end])
00331       start = end
00332       end += length
00333       self.auction_data.metrics = str[start:end]
00334       _x = self
00335       start = end
00336       end += 32
00337       (_x.auction_data.length.secs, _x.auction_data.length.nsecs, _x.auction_data.task_location.x, _x.auction_data.task_location.y, _x.auction_data.task_location.z,) = _struct_2i3d.unpack(str[start:end])
00338       return self
00339     except struct.error as e:
00340       raise roslib.message.DeserializationError(e) #most likely buffer underfill
00341 
00342 _struct_I = roslib.message.struct_I
00343 _struct_3I = struct.Struct("<3I")
00344 _struct_2i3d = struct.Struct("<2i3d")
00345 """autogenerated by genmsg_py from AuctionServiceResetResponse.msg. Do not edit."""
00346 import roslib.message
00347 import struct
00348 
00349 
00350 class AuctionServiceResetResponse(roslib.message.Message):
00351   _md5sum = "3807fca4b87e6d8139990870471dd195"
00352   _type = "auction_srvs/AuctionServiceResetResponse"
00353   _has_header = False #flag to mark the presence of a Header object
00354   _full_text = """
00355 
00356 
00357 string response_info
00358 
00359 """
00360   __slots__ = ['response_info']
00361   _slot_types = ['string']
00362 
00363   def __init__(self, *args, **kwds):
00364     """
00365     Constructor. Any message fields that are implicitly/explicitly
00366     set to None will be assigned a default value. The recommend
00367     use is keyword arguments as this is more robust to future message
00368     changes.  You cannot mix in-order arguments and keyword arguments.
00369     
00370     The available fields are:
00371        response_info
00372     
00373     @param args: complete set of field values, in .msg order
00374     @param kwds: use keyword arguments corresponding to message field names
00375     to set specific fields. 
00376     """
00377     if args or kwds:
00378       super(AuctionServiceResetResponse, self).__init__(*args, **kwds)
00379       #message fields cannot be None, assign default values for those that are
00380       if self.response_info is None:
00381         self.response_info = ''
00382     else:
00383       self.response_info = ''
00384 
00385   def _get_types(self):
00386     """
00387     internal API method
00388     """
00389     return self._slot_types
00390 
00391   def serialize(self, buff):
00392     """
00393     serialize message into buffer
00394     @param buff: buffer
00395     @type  buff: StringIO
00396     """
00397     try:
00398       _x = self.response_info
00399       length = len(_x)
00400       buff.write(struct.pack('<I%ss'%length, length, _x))
00401     except struct.error as se: self._check_types(se)
00402     except TypeError as te: self._check_types(te)
00403 
00404   def deserialize(self, str):
00405     """
00406     unpack serialized message in str into this message instance
00407     @param str: byte array of serialized message
00408     @type  str: str
00409     """
00410     try:
00411       end = 0
00412       start = end
00413       end += 4
00414       (length,) = _struct_I.unpack(str[start:end])
00415       start = end
00416       end += length
00417       self.response_info = str[start:end]
00418       return self
00419     except struct.error as e:
00420       raise roslib.message.DeserializationError(e) #most likely buffer underfill
00421 
00422 
00423   def serialize_numpy(self, buff, numpy):
00424     """
00425     serialize message with numpy array types into buffer
00426     @param buff: buffer
00427     @type  buff: StringIO
00428     @param numpy: numpy python module
00429     @type  numpy module
00430     """
00431     try:
00432       _x = self.response_info
00433       length = len(_x)
00434       buff.write(struct.pack('<I%ss'%length, length, _x))
00435     except struct.error as se: self._check_types(se)
00436     except TypeError as te: self._check_types(te)
00437 
00438   def deserialize_numpy(self, str, numpy):
00439     """
00440     unpack serialized message in str into this message instance using numpy for array types
00441     @param str: byte array of serialized message
00442     @type  str: str
00443     @param numpy: numpy python module
00444     @type  numpy: module
00445     """
00446     try:
00447       end = 0
00448       start = end
00449       end += 4
00450       (length,) = _struct_I.unpack(str[start:end])
00451       start = end
00452       end += length
00453       self.response_info = str[start:end]
00454       return self
00455     except struct.error as e:
00456       raise roslib.message.DeserializationError(e) #most likely buffer underfill
00457 
00458 _struct_I = roslib.message.struct_I
00459 class AuctionServiceReset(roslib.message.ServiceDefinition):
00460   _type          = 'auction_srvs/AuctionServiceReset'
00461   _md5sum = '4c61db6a7e5400f7a5137a2c8194bac9'
00462   _request_class  = AuctionServiceResetRequest
00463   _response_class = AuctionServiceResetResponse


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