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