$search
00001 """autogenerated by genmsg_py from SetInterpolatedIKMotionPlanParamsRequest.msg. Do not edit.""" 00002 import roslib.message 00003 import struct 00004 00005 00006 class SetInterpolatedIKMotionPlanParamsRequest(roslib.message.Message): 00007 _md5sum = "351122754b3043b9f5602d68d4eec5db" 00008 _type = "interpolated_ik_motion_planner/SetInterpolatedIKMotionPlanParamsRequest" 00009 _has_header = False #flag to mark the presence of a Header object 00010 _full_text = """ 00011 00012 00013 int32 num_steps 00014 00015 00016 00017 float64 consistent_angle 00018 00019 00020 00021 int32 collision_check_resolution 00022 00023 00024 00025 00026 00027 int32 steps_before_abort 00028 00029 00030 00031 float64 pos_spacing 00032 00033 00034 00035 float64 rot_spacing 00036 00037 00038 00039 byte collision_aware 00040 00041 00042 00043 byte start_from_end 00044 00045 00046 00047 float64[] max_joint_vels 00048 00049 00050 00051 float64[] max_joint_accs 00052 00053 00054 """ 00055 __slots__ = ['num_steps','consistent_angle','collision_check_resolution','steps_before_abort','pos_spacing','rot_spacing','collision_aware','start_from_end','max_joint_vels','max_joint_accs'] 00056 _slot_types = ['int32','float64','int32','int32','float64','float64','byte','byte','float64[]','float64[]'] 00057 00058 def __init__(self, *args, **kwds): 00059 """ 00060 Constructor. Any message fields that are implicitly/explicitly 00061 set to None will be assigned a default value. The recommend 00062 use is keyword arguments as this is more robust to future message 00063 changes. You cannot mix in-order arguments and keyword arguments. 00064 00065 The available fields are: 00066 num_steps,consistent_angle,collision_check_resolution,steps_before_abort,pos_spacing,rot_spacing,collision_aware,start_from_end,max_joint_vels,max_joint_accs 00067 00068 @param args: complete set of field values, in .msg order 00069 @param kwds: use keyword arguments corresponding to message field names 00070 to set specific fields. 00071 """ 00072 if args or kwds: 00073 super(SetInterpolatedIKMotionPlanParamsRequest, self).__init__(*args, **kwds) 00074 #message fields cannot be None, assign default values for those that are 00075 if self.num_steps is None: 00076 self.num_steps = 0 00077 if self.consistent_angle is None: 00078 self.consistent_angle = 0. 00079 if self.collision_check_resolution is None: 00080 self.collision_check_resolution = 0 00081 if self.steps_before_abort is None: 00082 self.steps_before_abort = 0 00083 if self.pos_spacing is None: 00084 self.pos_spacing = 0. 00085 if self.rot_spacing is None: 00086 self.rot_spacing = 0. 00087 if self.collision_aware is None: 00088 self.collision_aware = 0 00089 if self.start_from_end is None: 00090 self.start_from_end = 0 00091 if self.max_joint_vels is None: 00092 self.max_joint_vels = [] 00093 if self.max_joint_accs is None: 00094 self.max_joint_accs = [] 00095 else: 00096 self.num_steps = 0 00097 self.consistent_angle = 0. 00098 self.collision_check_resolution = 0 00099 self.steps_before_abort = 0 00100 self.pos_spacing = 0. 00101 self.rot_spacing = 0. 00102 self.collision_aware = 0 00103 self.start_from_end = 0 00104 self.max_joint_vels = [] 00105 self.max_joint_accs = [] 00106 00107 def _get_types(self): 00108 """ 00109 internal API method 00110 """ 00111 return self._slot_types 00112 00113 def serialize(self, buff): 00114 """ 00115 serialize message into buffer 00116 @param buff: buffer 00117 @type buff: StringIO 00118 """ 00119 try: 00120 _x = self 00121 buff.write(_struct_id2i2d2b.pack(_x.num_steps, _x.consistent_angle, _x.collision_check_resolution, _x.steps_before_abort, _x.pos_spacing, _x.rot_spacing, _x.collision_aware, _x.start_from_end)) 00122 length = len(self.max_joint_vels) 00123 buff.write(_struct_I.pack(length)) 00124 pattern = '<%sd'%length 00125 buff.write(struct.pack(pattern, *self.max_joint_vels)) 00126 length = len(self.max_joint_accs) 00127 buff.write(_struct_I.pack(length)) 00128 pattern = '<%sd'%length 00129 buff.write(struct.pack(pattern, *self.max_joint_accs)) 00130 except struct.error as se: self._check_types(se) 00131 except TypeError as te: self._check_types(te) 00132 00133 def deserialize(self, str): 00134 """ 00135 unpack serialized message in str into this message instance 00136 @param str: byte array of serialized message 00137 @type str: str 00138 """ 00139 try: 00140 end = 0 00141 _x = self 00142 start = end 00143 end += 38 00144 (_x.num_steps, _x.consistent_angle, _x.collision_check_resolution, _x.steps_before_abort, _x.pos_spacing, _x.rot_spacing, _x.collision_aware, _x.start_from_end,) = _struct_id2i2d2b.unpack(str[start:end]) 00145 start = end 00146 end += 4 00147 (length,) = _struct_I.unpack(str[start:end]) 00148 pattern = '<%sd'%length 00149 start = end 00150 end += struct.calcsize(pattern) 00151 self.max_joint_vels = struct.unpack(pattern, str[start:end]) 00152 start = end 00153 end += 4 00154 (length,) = _struct_I.unpack(str[start:end]) 00155 pattern = '<%sd'%length 00156 start = end 00157 end += struct.calcsize(pattern) 00158 self.max_joint_accs = struct.unpack(pattern, str[start:end]) 00159 return self 00160 except struct.error as e: 00161 raise roslib.message.DeserializationError(e) #most likely buffer underfill 00162 00163 00164 def serialize_numpy(self, buff, numpy): 00165 """ 00166 serialize message with numpy array types into buffer 00167 @param buff: buffer 00168 @type buff: StringIO 00169 @param numpy: numpy python module 00170 @type numpy module 00171 """ 00172 try: 00173 _x = self 00174 buff.write(_struct_id2i2d2b.pack(_x.num_steps, _x.consistent_angle, _x.collision_check_resolution, _x.steps_before_abort, _x.pos_spacing, _x.rot_spacing, _x.collision_aware, _x.start_from_end)) 00175 length = len(self.max_joint_vels) 00176 buff.write(_struct_I.pack(length)) 00177 pattern = '<%sd'%length 00178 buff.write(self.max_joint_vels.tostring()) 00179 length = len(self.max_joint_accs) 00180 buff.write(_struct_I.pack(length)) 00181 pattern = '<%sd'%length 00182 buff.write(self.max_joint_accs.tostring()) 00183 except struct.error as se: self._check_types(se) 00184 except TypeError as te: self._check_types(te) 00185 00186 def deserialize_numpy(self, str, numpy): 00187 """ 00188 unpack serialized message in str into this message instance using numpy for array types 00189 @param str: byte array of serialized message 00190 @type str: str 00191 @param numpy: numpy python module 00192 @type numpy: module 00193 """ 00194 try: 00195 end = 0 00196 _x = self 00197 start = end 00198 end += 38 00199 (_x.num_steps, _x.consistent_angle, _x.collision_check_resolution, _x.steps_before_abort, _x.pos_spacing, _x.rot_spacing, _x.collision_aware, _x.start_from_end,) = _struct_id2i2d2b.unpack(str[start:end]) 00200 start = end 00201 end += 4 00202 (length,) = _struct_I.unpack(str[start:end]) 00203 pattern = '<%sd'%length 00204 start = end 00205 end += struct.calcsize(pattern) 00206 self.max_joint_vels = numpy.frombuffer(str[start:end], dtype=numpy.float64, count=length) 00207 start = end 00208 end += 4 00209 (length,) = _struct_I.unpack(str[start:end]) 00210 pattern = '<%sd'%length 00211 start = end 00212 end += struct.calcsize(pattern) 00213 self.max_joint_accs = numpy.frombuffer(str[start:end], dtype=numpy.float64, count=length) 00214 return self 00215 except struct.error as e: 00216 raise roslib.message.DeserializationError(e) #most likely buffer underfill 00217 00218 _struct_I = roslib.message.struct_I 00219 _struct_id2i2d2b = struct.Struct("<id2i2d2b") 00220 """autogenerated by genmsg_py from SetInterpolatedIKMotionPlanParamsResponse.msg. Do not edit.""" 00221 import roslib.message 00222 import struct 00223 00224 00225 class SetInterpolatedIKMotionPlanParamsResponse(roslib.message.Message): 00226 _md5sum = "d41d8cd98f00b204e9800998ecf8427e" 00227 _type = "interpolated_ik_motion_planner/SetInterpolatedIKMotionPlanParamsResponse" 00228 _has_header = False #flag to mark the presence of a Header object 00229 _full_text = """ 00230 00231 """ 00232 __slots__ = [] 00233 _slot_types = [] 00234 00235 def __init__(self, *args, **kwds): 00236 """ 00237 Constructor. Any message fields that are implicitly/explicitly 00238 set to None will be assigned a default value. The recommend 00239 use is keyword arguments as this is more robust to future message 00240 changes. You cannot mix in-order arguments and keyword arguments. 00241 00242 The available fields are: 00243 00244 00245 @param args: complete set of field values, in .msg order 00246 @param kwds: use keyword arguments corresponding to message field names 00247 to set specific fields. 00248 """ 00249 if args or kwds: 00250 super(SetInterpolatedIKMotionPlanParamsResponse, self).__init__(*args, **kwds) 00251 00252 def _get_types(self): 00253 """ 00254 internal API method 00255 """ 00256 return self._slot_types 00257 00258 def serialize(self, buff): 00259 """ 00260 serialize message into buffer 00261 @param buff: buffer 00262 @type buff: StringIO 00263 """ 00264 try: 00265 pass 00266 except struct.error as se: self._check_types(se) 00267 except TypeError as te: self._check_types(te) 00268 00269 def deserialize(self, str): 00270 """ 00271 unpack serialized message in str into this message instance 00272 @param str: byte array of serialized message 00273 @type str: str 00274 """ 00275 try: 00276 end = 0 00277 return self 00278 except struct.error as e: 00279 raise roslib.message.DeserializationError(e) #most likely buffer underfill 00280 00281 00282 def serialize_numpy(self, buff, numpy): 00283 """ 00284 serialize message with numpy array types into buffer 00285 @param buff: buffer 00286 @type buff: StringIO 00287 @param numpy: numpy python module 00288 @type numpy module 00289 """ 00290 try: 00291 pass 00292 except struct.error as se: self._check_types(se) 00293 except TypeError as te: self._check_types(te) 00294 00295 def deserialize_numpy(self, str, numpy): 00296 """ 00297 unpack serialized message in str into this message instance using numpy for array types 00298 @param str: byte array of serialized message 00299 @type str: str 00300 @param numpy: numpy python module 00301 @type numpy: module 00302 """ 00303 try: 00304 end = 0 00305 return self 00306 except struct.error as e: 00307 raise roslib.message.DeserializationError(e) #most likely buffer underfill 00308 00309 _struct_I = roslib.message.struct_I 00310 class SetInterpolatedIKMotionPlanParams(roslib.message.ServiceDefinition): 00311 _type = 'interpolated_ik_motion_planner/SetInterpolatedIKMotionPlanParams' 00312 _md5sum = '351122754b3043b9f5602d68d4eec5db' 00313 _request_class = SetInterpolatedIKMotionPlanParamsRequest 00314 _response_class = SetInterpolatedIKMotionPlanParamsResponse