_LaneMarking.py
Go to the documentation of this file.
00001 """autogenerated by genpy from art_msgs/LaneMarking.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 LaneMarking(genpy.Message):
00009   _md5sum = "39a90d328b8d3f3a2f63e9f13330afca"
00010   _type = "art_msgs/LaneMarking"
00011   _has_header = False #flag to mark the presence of a Header object
00012   _full_text = """# Route Network Definition File lane marking
00013 # $Id: LaneMarking.msg 614 2010-09-24 15:08:46Z jack.oquin $
00014 
00015 int16 DOUBLE_YELLOW = 0
00016 int16 SOLID_YELLOW = 1
00017 int16 SOLID_WHITE = 2
00018 int16 BROKEN_WHITE = 3
00019 int16 UNDEFINED = 4
00020 
00021 int16 lane_marking
00022 
00023 """
00024   # Pseudo-constants
00025   DOUBLE_YELLOW = 0
00026   SOLID_YELLOW = 1
00027   SOLID_WHITE = 2
00028   BROKEN_WHITE = 3
00029   UNDEFINED = 4
00030 
00031   __slots__ = ['lane_marking']
00032   _slot_types = ['int16']
00033 
00034   def __init__(self, *args, **kwds):
00035     """
00036     Constructor. Any message fields that are implicitly/explicitly
00037     set to None will be assigned a default value. The recommend
00038     use is keyword arguments as this is more robust to future message
00039     changes.  You cannot mix in-order arguments and keyword arguments.
00040 
00041     The available fields are:
00042        lane_marking
00043 
00044     :param args: complete set of field values, in .msg order
00045     :param kwds: use keyword arguments corresponding to message field names
00046     to set specific fields.
00047     """
00048     if args or kwds:
00049       super(LaneMarking, self).__init__(*args, **kwds)
00050       #message fields cannot be None, assign default values for those that are
00051       if self.lane_marking is None:
00052         self.lane_marking = 0
00053     else:
00054       self.lane_marking = 0
00055 
00056   def _get_types(self):
00057     """
00058     internal API method
00059     """
00060     return self._slot_types
00061 
00062   def serialize(self, buff):
00063     """
00064     serialize message into buffer
00065     :param buff: buffer, ``StringIO``
00066     """
00067     try:
00068       buff.write(_struct_h.pack(self.lane_marking))
00069     except struct.error as se: self._check_types(se)
00070     except TypeError as te: self._check_types(te)
00071 
00072   def deserialize(self, str):
00073     """
00074     unpack serialized message in str into this message instance
00075     :param str: byte array of serialized message, ``str``
00076     """
00077     try:
00078       end = 0
00079       start = end
00080       end += 2
00081       (self.lane_marking,) = _struct_h.unpack(str[start:end])
00082       return self
00083     except struct.error as e:
00084       raise genpy.DeserializationError(e) #most likely buffer underfill
00085 
00086 
00087   def serialize_numpy(self, buff, numpy):
00088     """
00089     serialize message with numpy array types into buffer
00090     :param buff: buffer, ``StringIO``
00091     :param numpy: numpy python module
00092     """
00093     try:
00094       buff.write(_struct_h.pack(self.lane_marking))
00095     except struct.error as se: self._check_types(se)
00096     except TypeError as te: self._check_types(te)
00097 
00098   def deserialize_numpy(self, str, numpy):
00099     """
00100     unpack serialized message in str into this message instance using numpy for array types
00101     :param str: byte array of serialized message, ``str``
00102     :param numpy: numpy python module
00103     """
00104     try:
00105       end = 0
00106       start = end
00107       end += 2
00108       (self.lane_marking,) = _struct_h.unpack(str[start:end])
00109       return self
00110     except struct.error as e:
00111       raise genpy.DeserializationError(e) #most likely buffer underfill
00112 
00113 _struct_I = genpy.struct_I
00114 _struct_h = struct.Struct("<h")
 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