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