00001 """autogenerated by genmsg_py from CheckPathResult.msg. Do not edit."""
00002 import roslib.message
00003 import struct
00004
00005
00006 class CheckPathResult(roslib.message.Message):
00007 _md5sum = "d5550685e8802ccb55d7b325d3ef4459"
00008 _type = "door_msgs/CheckPathResult"
00009 _has_header = False
00010 _full_text = """# ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======
00011 bool path_found
00012
00013 """
00014 __slots__ = ['path_found']
00015 _slot_types = ['bool']
00016
00017 def __init__(self, *args, **kwds):
00018 """
00019 Constructor. Any message fields that are implicitly/explicitly
00020 set to None will be assigned a default value. The recommend
00021 use is keyword arguments as this is more robust to future message
00022 changes. You cannot mix in-order arguments and keyword arguments.
00023
00024 The available fields are:
00025 path_found
00026
00027 @param args: complete set of field values, in .msg order
00028 @param kwds: use keyword arguments corresponding to message field names
00029 to set specific fields.
00030 """
00031 if args or kwds:
00032 super(CheckPathResult, self).__init__(*args, **kwds)
00033
00034 if self.path_found is None:
00035 self.path_found = False
00036 else:
00037 self.path_found = False
00038
00039 def _get_types(self):
00040 """
00041 internal API method
00042 """
00043 return self._slot_types
00044
00045 def serialize(self, buff):
00046 """
00047 serialize message into buffer
00048 @param buff: buffer
00049 @type buff: StringIO
00050 """
00051 try:
00052 buff.write(_struct_B.pack(self.path_found))
00053 except struct.error, se: self._check_types(se)
00054 except TypeError, te: self._check_types(te)
00055
00056 def deserialize(self, str):
00057 """
00058 unpack serialized message in str into this message instance
00059 @param str: byte array of serialized message
00060 @type str: str
00061 """
00062 try:
00063 end = 0
00064 start = end
00065 end += 1
00066 (self.path_found,) = _struct_B.unpack(str[start:end])
00067 self.path_found = bool(self.path_found)
00068 return self
00069 except struct.error, e:
00070 raise roslib.message.DeserializationError(e)
00071
00072
00073 def serialize_numpy(self, buff, numpy):
00074 """
00075 serialize message with numpy array types into buffer
00076 @param buff: buffer
00077 @type buff: StringIO
00078 @param numpy: numpy python module
00079 @type numpy module
00080 """
00081 try:
00082 buff.write(_struct_B.pack(self.path_found))
00083 except struct.error, se: self._check_types(se)
00084 except TypeError, te: self._check_types(te)
00085
00086 def deserialize_numpy(self, str, numpy):
00087 """
00088 unpack serialized message in str into this message instance using numpy for array types
00089 @param str: byte array of serialized message
00090 @type str: str
00091 @param numpy: numpy python module
00092 @type numpy: module
00093 """
00094 try:
00095 end = 0
00096 start = end
00097 end += 1
00098 (self.path_found,) = _struct_B.unpack(str[start:end])
00099 self.path_found = bool(self.path_found)
00100 return self
00101 except struct.error, e:
00102 raise roslib.message.DeserializationError(e)
00103
00104 _struct_I = roslib.message.struct_I
00105 _struct_B = struct.Struct("<B")