_Conversions.py
Go to the documentation of this file.
00001 """autogenerated by genpy from art_msgs/Conversions.msg. Do not edit."""
00002 import sys
00003 python3 = True if sys.hexversion > 0x03000000 else False
00004 import genpy
00005 import struct
00006 
00007 
00008 class Conversions(genpy.Message):
00009   _md5sum = "44629a726979d07e4fc2da05a3fca804"
00010   _type = "art_msgs/Conversions"
00011   _has_header = False #flag to mark the presence of a Header object
00012   _full_text = """#  Units conversion constants
00013 #
00014 #  Copyright (C) 2007, 2009 Austin Robot Technology                    
00015 #  License: Modified BSD Software License Agreement
00016 
00017 #  $Id: Conversions.msg 620 2010-09-25 01:11:51Z jack.oquin $
00018 
00019 # Unit conversion constants:
00020 
00021 float64 CM_PER_INCH = 2.54
00022 float64 CM_PER_METER = 100.0
00023 float64 INCHES_PER_FOOT = 12.0
00024 float64 METERS_PER_FOOT = 0.3048
00025 float64 METERS_PER_MILE = 1609.344
00026 float64 MMETERS_PER_KM = 1000000.0
00027 float64 MMETERS_PER_MILE = 1609344.0
00028 
00029 int64 MINUTES_PER_HOUR = 60
00030 int64 SECONDS_PER_MINUTE = 60
00031 int64 SECONDS_PER_HOUR = 3600
00032 
00033 """
00034   # Pseudo-constants
00035   CM_PER_INCH = 2.54
00036   CM_PER_METER = 100.0
00037   INCHES_PER_FOOT = 12.0
00038   METERS_PER_FOOT = 0.3048
00039   METERS_PER_MILE = 1609.344
00040   MMETERS_PER_KM = 1000000.0
00041   MMETERS_PER_MILE = 1609344.0
00042   MINUTES_PER_HOUR = 60
00043   SECONDS_PER_MINUTE = 60
00044   SECONDS_PER_HOUR = 3600
00045 
00046   __slots__ = []
00047   _slot_types = []
00048 
00049   def __init__(self, *args, **kwds):
00050     """
00051     Constructor. Any message fields that are implicitly/explicitly
00052     set to None will be assigned a default value. The recommend
00053     use is keyword arguments as this is more robust to future message
00054     changes.  You cannot mix in-order arguments and keyword arguments.
00055 
00056     The available fields are:
00057        
00058 
00059     :param args: complete set of field values, in .msg order
00060     :param kwds: use keyword arguments corresponding to message field names
00061     to set specific fields.
00062     """
00063     if args or kwds:
00064       super(Conversions, self).__init__(*args, **kwds)
00065 
00066   def _get_types(self):
00067     """
00068     internal API method
00069     """
00070     return self._slot_types
00071 
00072   def serialize(self, buff):
00073     """
00074     serialize message into buffer
00075     :param buff: buffer, ``StringIO``
00076     """
00077     try:
00078       pass
00079     except struct.error as se: self._check_types(se)
00080     except TypeError as te: self._check_types(te)
00081 
00082   def deserialize(self, str):
00083     """
00084     unpack serialized message in str into this message instance
00085     :param str: byte array of serialized message, ``str``
00086     """
00087     try:
00088       end = 0
00089       return self
00090     except struct.error as e:
00091       raise genpy.DeserializationError(e) #most likely buffer underfill
00092 
00093 
00094   def serialize_numpy(self, buff, numpy):
00095     """
00096     serialize message with numpy array types into buffer
00097     :param buff: buffer, ``StringIO``
00098     :param numpy: numpy python module
00099     """
00100     try:
00101       pass
00102     except struct.error as se: self._check_types(se)
00103     except TypeError as te: self._check_types(te)
00104 
00105   def deserialize_numpy(self, str, numpy):
00106     """
00107     unpack serialized message in str into this message instance using numpy for array types
00108     :param str: byte array of serialized message, ``str``
00109     :param numpy: numpy python module
00110     """
00111     try:
00112       end = 0
00113       return self
00114     except struct.error as e:
00115       raise genpy.DeserializationError(e) #most likely buffer underfill
00116 
00117 _struct_I = genpy.struct_I
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends


art_msgs
Author(s): Jack O'Quin
autogenerated on Tue Sep 24 2013 10:40:45