$search
00001 """autogenerated by genmsg_py from ArmNavMovePalmLinkRelRequest.msg. Do not edit.""" 00002 import roslib.message 00003 import struct 00004 00005 import geometry_msgs.msg 00006 00007 class ArmNavMovePalmLinkRelRequest(roslib.message.Message): 00008 _md5sum = "8748b3b787ed772f72ebf392fe564ece" 00009 _type = "srs_assisted_arm_navigation_msgs/ArmNavMovePalmLinkRelRequest" 00010 _has_header = False #flag to mark the presence of a Header object 00011 _full_text = """ 00012 00013 geometry_msgs/Pose relative_movement 00014 00015 ================================================================================ 00016 MSG: geometry_msgs/Pose 00017 # A representation of pose in free space, composed of postion and orientation. 00018 Point position 00019 Quaternion orientation 00020 00021 ================================================================================ 00022 MSG: geometry_msgs/Point 00023 # This contains the position of a point in free space 00024 float64 x 00025 float64 y 00026 float64 z 00027 00028 ================================================================================ 00029 MSG: geometry_msgs/Quaternion 00030 # This represents an orientation in free space in quaternion form. 00031 00032 float64 x 00033 float64 y 00034 float64 z 00035 float64 w 00036 00037 """ 00038 __slots__ = ['relative_movement'] 00039 _slot_types = ['geometry_msgs/Pose'] 00040 00041 def __init__(self, *args, **kwds): 00042 """ 00043 Constructor. Any message fields that are implicitly/explicitly 00044 set to None will be assigned a default value. The recommend 00045 use is keyword arguments as this is more robust to future message 00046 changes. You cannot mix in-order arguments and keyword arguments. 00047 00048 The available fields are: 00049 relative_movement 00050 00051 @param args: complete set of field values, in .msg order 00052 @param kwds: use keyword arguments corresponding to message field names 00053 to set specific fields. 00054 """ 00055 if args or kwds: 00056 super(ArmNavMovePalmLinkRelRequest, self).__init__(*args, **kwds) 00057 #message fields cannot be None, assign default values for those that are 00058 if self.relative_movement is None: 00059 self.relative_movement = geometry_msgs.msg.Pose() 00060 else: 00061 self.relative_movement = geometry_msgs.msg.Pose() 00062 00063 def _get_types(self): 00064 """ 00065 internal API method 00066 """ 00067 return self._slot_types 00068 00069 def serialize(self, buff): 00070 """ 00071 serialize message into buffer 00072 @param buff: buffer 00073 @type buff: StringIO 00074 """ 00075 try: 00076 _x = self 00077 buff.write(_struct_7d.pack(_x.relative_movement.position.x, _x.relative_movement.position.y, _x.relative_movement.position.z, _x.relative_movement.orientation.x, _x.relative_movement.orientation.y, _x.relative_movement.orientation.z, _x.relative_movement.orientation.w)) 00078 except struct.error as se: self._check_types(se) 00079 except TypeError as 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 if self.relative_movement is None: 00089 self.relative_movement = geometry_msgs.msg.Pose() 00090 end = 0 00091 _x = self 00092 start = end 00093 end += 56 00094 (_x.relative_movement.position.x, _x.relative_movement.position.y, _x.relative_movement.position.z, _x.relative_movement.orientation.x, _x.relative_movement.orientation.y, _x.relative_movement.orientation.z, _x.relative_movement.orientation.w,) = _struct_7d.unpack(str[start:end]) 00095 return self 00096 except struct.error as e: 00097 raise roslib.message.DeserializationError(e) #most likely buffer underfill 00098 00099 00100 def serialize_numpy(self, buff, numpy): 00101 """ 00102 serialize message with numpy array types into buffer 00103 @param buff: buffer 00104 @type buff: StringIO 00105 @param numpy: numpy python module 00106 @type numpy module 00107 """ 00108 try: 00109 _x = self 00110 buff.write(_struct_7d.pack(_x.relative_movement.position.x, _x.relative_movement.position.y, _x.relative_movement.position.z, _x.relative_movement.orientation.x, _x.relative_movement.orientation.y, _x.relative_movement.orientation.z, _x.relative_movement.orientation.w)) 00111 except struct.error as se: self._check_types(se) 00112 except TypeError as te: self._check_types(te) 00113 00114 def deserialize_numpy(self, str, numpy): 00115 """ 00116 unpack serialized message in str into this message instance using numpy for array types 00117 @param str: byte array of serialized message 00118 @type str: str 00119 @param numpy: numpy python module 00120 @type numpy: module 00121 """ 00122 try: 00123 if self.relative_movement is None: 00124 self.relative_movement = geometry_msgs.msg.Pose() 00125 end = 0 00126 _x = self 00127 start = end 00128 end += 56 00129 (_x.relative_movement.position.x, _x.relative_movement.position.y, _x.relative_movement.position.z, _x.relative_movement.orientation.x, _x.relative_movement.orientation.y, _x.relative_movement.orientation.z, _x.relative_movement.orientation.w,) = _struct_7d.unpack(str[start:end]) 00130 return self 00131 except struct.error as e: 00132 raise roslib.message.DeserializationError(e) #most likely buffer underfill 00133 00134 _struct_I = roslib.message.struct_I 00135 _struct_7d = struct.Struct("<7d") 00136 """autogenerated by genmsg_py from ArmNavMovePalmLinkRelResponse.msg. Do not edit.""" 00137 import roslib.message 00138 import struct 00139 00140 00141 class ArmNavMovePalmLinkRelResponse(roslib.message.Message): 00142 _md5sum = "7de7f4695a268566c2ce9ae9e3a34e73" 00143 _type = "srs_assisted_arm_navigation_msgs/ArmNavMovePalmLinkRelResponse" 00144 _has_header = False #flag to mark the presence of a Header object 00145 _full_text = """bool completed 00146 string msg 00147 00148 """ 00149 __slots__ = ['completed','msg'] 00150 _slot_types = ['bool','string'] 00151 00152 def __init__(self, *args, **kwds): 00153 """ 00154 Constructor. Any message fields that are implicitly/explicitly 00155 set to None will be assigned a default value. The recommend 00156 use is keyword arguments as this is more robust to future message 00157 changes. You cannot mix in-order arguments and keyword arguments. 00158 00159 The available fields are: 00160 completed,msg 00161 00162 @param args: complete set of field values, in .msg order 00163 @param kwds: use keyword arguments corresponding to message field names 00164 to set specific fields. 00165 """ 00166 if args or kwds: 00167 super(ArmNavMovePalmLinkRelResponse, self).__init__(*args, **kwds) 00168 #message fields cannot be None, assign default values for those that are 00169 if self.completed is None: 00170 self.completed = False 00171 if self.msg is None: 00172 self.msg = '' 00173 else: 00174 self.completed = False 00175 self.msg = '' 00176 00177 def _get_types(self): 00178 """ 00179 internal API method 00180 """ 00181 return self._slot_types 00182 00183 def serialize(self, buff): 00184 """ 00185 serialize message into buffer 00186 @param buff: buffer 00187 @type buff: StringIO 00188 """ 00189 try: 00190 buff.write(_struct_B.pack(self.completed)) 00191 _x = self.msg 00192 length = len(_x) 00193 buff.write(struct.pack('<I%ss'%length, length, _x)) 00194 except struct.error as se: self._check_types(se) 00195 except TypeError as te: self._check_types(te) 00196 00197 def deserialize(self, str): 00198 """ 00199 unpack serialized message in str into this message instance 00200 @param str: byte array of serialized message 00201 @type str: str 00202 """ 00203 try: 00204 end = 0 00205 start = end 00206 end += 1 00207 (self.completed,) = _struct_B.unpack(str[start:end]) 00208 self.completed = bool(self.completed) 00209 start = end 00210 end += 4 00211 (length,) = _struct_I.unpack(str[start:end]) 00212 start = end 00213 end += length 00214 self.msg = str[start:end] 00215 return self 00216 except struct.error as e: 00217 raise roslib.message.DeserializationError(e) #most likely buffer underfill 00218 00219 00220 def serialize_numpy(self, buff, numpy): 00221 """ 00222 serialize message with numpy array types into buffer 00223 @param buff: buffer 00224 @type buff: StringIO 00225 @param numpy: numpy python module 00226 @type numpy module 00227 """ 00228 try: 00229 buff.write(_struct_B.pack(self.completed)) 00230 _x = self.msg 00231 length = len(_x) 00232 buff.write(struct.pack('<I%ss'%length, length, _x)) 00233 except struct.error as se: self._check_types(se) 00234 except TypeError as te: self._check_types(te) 00235 00236 def deserialize_numpy(self, str, numpy): 00237 """ 00238 unpack serialized message in str into this message instance using numpy for array types 00239 @param str: byte array of serialized message 00240 @type str: str 00241 @param numpy: numpy python module 00242 @type numpy: module 00243 """ 00244 try: 00245 end = 0 00246 start = end 00247 end += 1 00248 (self.completed,) = _struct_B.unpack(str[start:end]) 00249 self.completed = bool(self.completed) 00250 start = end 00251 end += 4 00252 (length,) = _struct_I.unpack(str[start:end]) 00253 start = end 00254 end += length 00255 self.msg = str[start:end] 00256 return self 00257 except struct.error as e: 00258 raise roslib.message.DeserializationError(e) #most likely buffer underfill 00259 00260 _struct_I = roslib.message.struct_I 00261 _struct_B = struct.Struct("<B") 00262 class ArmNavMovePalmLinkRel(roslib.message.ServiceDefinition): 00263 _type = 'srs_assisted_arm_navigation_msgs/ArmNavMovePalmLinkRel' 00264 _md5sum = '42e1f7fe26283c48c822d04ed149dd7e' 00265 _request_class = ArmNavMovePalmLinkRelRequest 00266 _response_class = ArmNavMovePalmLinkRelResponse