$search
00001 """autogenerated by genmsg_py from ArmNavRefreshRequest.msg. Do not edit.""" 00002 import roslib.message 00003 import struct 00004 00005 00006 class ArmNavRefreshRequest(roslib.message.Message): 00007 _md5sum = "d41d8cd98f00b204e9800998ecf8427e" 00008 _type = "srs_assisted_arm_navigation_msgs/ArmNavRefreshRequest" 00009 _has_header = False #flag to mark the presence of a Header object 00010 _full_text = """ 00011 """ 00012 __slots__ = [] 00013 _slot_types = [] 00014 00015 def __init__(self, *args, **kwds): 00016 """ 00017 Constructor. Any message fields that are implicitly/explicitly 00018 set to None will be assigned a default value. The recommend 00019 use is keyword arguments as this is more robust to future message 00020 changes. You cannot mix in-order arguments and keyword arguments. 00021 00022 The available fields are: 00023 00024 00025 @param args: complete set of field values, in .msg order 00026 @param kwds: use keyword arguments corresponding to message field names 00027 to set specific fields. 00028 """ 00029 if args or kwds: 00030 super(ArmNavRefreshRequest, self).__init__(*args, **kwds) 00031 00032 def _get_types(self): 00033 """ 00034 internal API method 00035 """ 00036 return self._slot_types 00037 00038 def serialize(self, buff): 00039 """ 00040 serialize message into buffer 00041 @param buff: buffer 00042 @type buff: StringIO 00043 """ 00044 try: 00045 pass 00046 except struct.error as se: self._check_types(se) 00047 except TypeError as te: self._check_types(te) 00048 00049 def deserialize(self, str): 00050 """ 00051 unpack serialized message in str into this message instance 00052 @param str: byte array of serialized message 00053 @type str: str 00054 """ 00055 try: 00056 end = 0 00057 return self 00058 except struct.error as e: 00059 raise roslib.message.DeserializationError(e) #most likely buffer underfill 00060 00061 00062 def serialize_numpy(self, buff, numpy): 00063 """ 00064 serialize message with numpy array types into buffer 00065 @param buff: buffer 00066 @type buff: StringIO 00067 @param numpy: numpy python module 00068 @type numpy module 00069 """ 00070 try: 00071 pass 00072 except struct.error as se: self._check_types(se) 00073 except TypeError as te: self._check_types(te) 00074 00075 def deserialize_numpy(self, str, numpy): 00076 """ 00077 unpack serialized message in str into this message instance using numpy for array types 00078 @param str: byte array of serialized message 00079 @type str: str 00080 @param numpy: numpy python module 00081 @type numpy: module 00082 """ 00083 try: 00084 end = 0 00085 return self 00086 except struct.error as e: 00087 raise roslib.message.DeserializationError(e) #most likely buffer underfill 00088 00089 _struct_I = roslib.message.struct_I 00090 """autogenerated by genmsg_py from ArmNavRefreshResponse.msg. Do not edit.""" 00091 import roslib.message 00092 import struct 00093 00094 00095 class ArmNavRefreshResponse(roslib.message.Message): 00096 _md5sum = "f4eaf4ac5113b7e406812a60451650f1" 00097 _type = "srs_assisted_arm_navigation_msgs/ArmNavRefreshResponse" 00098 _has_header = False #flag to mark the presence of a Header object 00099 _full_text = """bool completed 00100 string error 00101 00102 """ 00103 __slots__ = ['completed','error'] 00104 _slot_types = ['bool','string'] 00105 00106 def __init__(self, *args, **kwds): 00107 """ 00108 Constructor. Any message fields that are implicitly/explicitly 00109 set to None will be assigned a default value. The recommend 00110 use is keyword arguments as this is more robust to future message 00111 changes. You cannot mix in-order arguments and keyword arguments. 00112 00113 The available fields are: 00114 completed,error 00115 00116 @param args: complete set of field values, in .msg order 00117 @param kwds: use keyword arguments corresponding to message field names 00118 to set specific fields. 00119 """ 00120 if args or kwds: 00121 super(ArmNavRefreshResponse, self).__init__(*args, **kwds) 00122 #message fields cannot be None, assign default values for those that are 00123 if self.completed is None: 00124 self.completed = False 00125 if self.error is None: 00126 self.error = '' 00127 else: 00128 self.completed = False 00129 self.error = '' 00130 00131 def _get_types(self): 00132 """ 00133 internal API method 00134 """ 00135 return self._slot_types 00136 00137 def serialize(self, buff): 00138 """ 00139 serialize message into buffer 00140 @param buff: buffer 00141 @type buff: StringIO 00142 """ 00143 try: 00144 buff.write(_struct_B.pack(self.completed)) 00145 _x = self.error 00146 length = len(_x) 00147 buff.write(struct.pack('<I%ss'%length, length, _x)) 00148 except struct.error as se: self._check_types(se) 00149 except TypeError as te: self._check_types(te) 00150 00151 def deserialize(self, str): 00152 """ 00153 unpack serialized message in str into this message instance 00154 @param str: byte array of serialized message 00155 @type str: str 00156 """ 00157 try: 00158 end = 0 00159 start = end 00160 end += 1 00161 (self.completed,) = _struct_B.unpack(str[start:end]) 00162 self.completed = bool(self.completed) 00163 start = end 00164 end += 4 00165 (length,) = _struct_I.unpack(str[start:end]) 00166 start = end 00167 end += length 00168 self.error = str[start:end] 00169 return self 00170 except struct.error as e: 00171 raise roslib.message.DeserializationError(e) #most likely buffer underfill 00172 00173 00174 def serialize_numpy(self, buff, numpy): 00175 """ 00176 serialize message with numpy array types into buffer 00177 @param buff: buffer 00178 @type buff: StringIO 00179 @param numpy: numpy python module 00180 @type numpy module 00181 """ 00182 try: 00183 buff.write(_struct_B.pack(self.completed)) 00184 _x = self.error 00185 length = len(_x) 00186 buff.write(struct.pack('<I%ss'%length, length, _x)) 00187 except struct.error as se: self._check_types(se) 00188 except TypeError as te: self._check_types(te) 00189 00190 def deserialize_numpy(self, str, numpy): 00191 """ 00192 unpack serialized message in str into this message instance using numpy for array types 00193 @param str: byte array of serialized message 00194 @type str: str 00195 @param numpy: numpy python module 00196 @type numpy: module 00197 """ 00198 try: 00199 end = 0 00200 start = end 00201 end += 1 00202 (self.completed,) = _struct_B.unpack(str[start:end]) 00203 self.completed = bool(self.completed) 00204 start = end 00205 end += 4 00206 (length,) = _struct_I.unpack(str[start:end]) 00207 start = end 00208 end += length 00209 self.error = str[start:end] 00210 return self 00211 except struct.error as e: 00212 raise roslib.message.DeserializationError(e) #most likely buffer underfill 00213 00214 _struct_I = roslib.message.struct_I 00215 _struct_B = struct.Struct("<B") 00216 class ArmNavRefresh(roslib.message.ServiceDefinition): 00217 _type = 'srs_assisted_arm_navigation_msgs/ArmNavRefresh' 00218 _md5sum = 'f4eaf4ac5113b7e406812a60451650f1' 00219 _request_class = ArmNavRefreshRequest 00220 _response_class = ArmNavRefreshResponse