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