00001 """autogenerated by genmsg_py from GraspHandPostureExecutionActionGoal.msg. Do not edit."""
00002 import roslib.message
00003 import struct
00004
00005 import object_manipulation_msgs.msg
00006 import roslib.rostime
00007 import actionlib_msgs.msg
00008 import geometry_msgs.msg
00009 import sensor_msgs.msg
00010 import std_msgs.msg
00011
00012 class GraspHandPostureExecutionActionGoal(roslib.message.Message):
00013 _md5sum = "1ba739716c146e27d08403de62e960f1"
00014 _type = "object_manipulation_msgs/GraspHandPostureExecutionActionGoal"
00015 _has_header = True
00016 _full_text = """# ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======
00017
00018 Header header
00019 actionlib_msgs/GoalID goal_id
00020 GraspHandPostureExecutionGoal goal
00021
00022 ================================================================================
00023 MSG: std_msgs/Header
00024 # Standard metadata for higher-level stamped data types.
00025 # This is generally used to communicate timestamped data
00026 # in a particular coordinate frame.
00027 #
00028 # sequence ID: consecutively increasing ID
00029 uint32 seq
00030 #Two-integer timestamp that is expressed as:
00031 # * stamp.secs: seconds (stamp_secs) since epoch
00032 # * stamp.nsecs: nanoseconds since stamp_secs
00033 # time-handling sugar is provided by the client library
00034 time stamp
00035 #Frame this data is associated with
00036 # 0: no frame
00037 # 1: global frame
00038 string frame_id
00039
00040 ================================================================================
00041 MSG: actionlib_msgs/GoalID
00042 # The stamp should store the time at which this goal was requested.
00043 # It is used by an action server when it tries to preempt all
00044 # goals that were requested before a certain time
00045 time stamp
00046
00047 # The id provides a way to associate feedback and
00048 # result message with specific goal requests. The id
00049 # specified must be unique.
00050 string id
00051
00052
00053 ================================================================================
00054 MSG: object_manipulation_msgs/GraspHandPostureExecutionGoal
00055 # ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======
00056 # an action for requesting the finger posture part of grasp be physically carried out by a hand
00057 # the name of the arm being used is not in here, as this will be sent to a specific action server
00058 # for each arm
00059
00060 # the grasp to be executed
00061 Grasp grasp
00062
00063 # the goal of this action
00064 # requests that the hand be set in the pre-grasp posture
00065 int32 PRE_GRASP=1
00066 # requests that the hand execute the actual grasp
00067 int32 GRASP=2
00068 # requests that the hand open to release the object
00069 int32 RELEASE=3
00070 int32 goal
00071
00072
00073 ================================================================================
00074 MSG: object_manipulation_msgs/Grasp
00075
00076 # The internal posture of the hand for the pre-grasp
00077 # only positions are used
00078 sensor_msgs/JointState pre_grasp_posture
00079
00080 # The internal posture of the hand for the grasp
00081 # positions and efforts are used
00082 sensor_msgs/JointState grasp_posture
00083
00084 # The position of the end-effector for the grasp relative to the object
00085 geometry_msgs/Pose grasp_pose
00086
00087 # The estimated probability of success for this grasp
00088 float64 success_probability
00089
00090 # Debug flag to indicate that this grasp would be the best in its cluster
00091 bool cluster_rep
00092 ================================================================================
00093 MSG: sensor_msgs/JointState
00094 # This is a message that holds data to describe the state of a set of torque controlled joints.
00095 #
00096 # The state of each joint (revolute or prismatic) is defined by:
00097 # * the position of the joint (rad or m),
00098 # * the velocity of the joint (rad/s or m/s) and
00099 # * the effort that is applied in the joint (Nm or N).
00100 #
00101 # Each joint is uniquely identified by its name
00102 # The header specifies the time at which the joint states were recorded. All the joint states
00103 # in one message have to be recorded at the same time.
00104 #
00105 # This message consists of a multiple arrays, one for each part of the joint state.
00106 # The goal is to make each of the fields optional. When e.g. your joints have no
00107 # effort associated with them, you can leave the effort array empty.
00108 #
00109 # All arrays in this message should have the same size, or be empty.
00110 # This is the only way to uniquely associate the joint name with the correct
00111 # states.
00112
00113
00114 Header header
00115
00116 string[] name
00117 float64[] position
00118 float64[] velocity
00119 float64[] effort
00120
00121 ================================================================================
00122 MSG: geometry_msgs/Pose
00123 # A representation of pose in free space, composed of postion and orientation.
00124 Point position
00125 Quaternion orientation
00126
00127 ================================================================================
00128 MSG: geometry_msgs/Point
00129 # This contains the position of a point in free space
00130 float64 x
00131 float64 y
00132 float64 z
00133
00134 ================================================================================
00135 MSG: geometry_msgs/Quaternion
00136 # This represents an orientation in free space in quaternion form.
00137
00138 float64 x
00139 float64 y
00140 float64 z
00141 float64 w
00142
00143 """
00144 __slots__ = ['header','goal_id','goal']
00145 _slot_types = ['Header','actionlib_msgs/GoalID','object_manipulation_msgs/GraspHandPostureExecutionGoal']
00146
00147 def __init__(self, *args, **kwds):
00148 """
00149 Constructor. Any message fields that are implicitly/explicitly
00150 set to None will be assigned a default value. The recommend
00151 use is keyword arguments as this is more robust to future message
00152 changes. You cannot mix in-order arguments and keyword arguments.
00153
00154 The available fields are:
00155 header,goal_id,goal
00156
00157 @param args: complete set of field values, in .msg order
00158 @param kwds: use keyword arguments corresponding to message field names
00159 to set specific fields.
00160 """
00161 if args or kwds:
00162 super(GraspHandPostureExecutionActionGoal, self).__init__(*args, **kwds)
00163
00164 if self.header is None:
00165 self.header = std_msgs.msg._Header.Header()
00166 if self.goal_id is None:
00167 self.goal_id = actionlib_msgs.msg.GoalID()
00168 if self.goal is None:
00169 self.goal = object_manipulation_msgs.msg.GraspHandPostureExecutionGoal()
00170 else:
00171 self.header = std_msgs.msg._Header.Header()
00172 self.goal_id = actionlib_msgs.msg.GoalID()
00173 self.goal = object_manipulation_msgs.msg.GraspHandPostureExecutionGoal()
00174
00175 def _get_types(self):
00176 """
00177 internal API method
00178 """
00179 return self._slot_types
00180
00181 def serialize(self, buff):
00182 """
00183 serialize message into buffer
00184 @param buff: buffer
00185 @type buff: StringIO
00186 """
00187 try:
00188 _x = self
00189 buff.write(_struct_3I.pack(_x.header.seq, _x.header.stamp.secs, _x.header.stamp.nsecs))
00190 _x = self.header.frame_id
00191 length = len(_x)
00192 buff.write(struct.pack('<I%ss'%length, length, _x))
00193 _x = self
00194 buff.write(_struct_2I.pack(_x.goal_id.stamp.secs, _x.goal_id.stamp.nsecs))
00195 _x = self.goal_id.id
00196 length = len(_x)
00197 buff.write(struct.pack('<I%ss'%length, length, _x))
00198 _x = self
00199 buff.write(_struct_3I.pack(_x.goal.grasp.pre_grasp_posture.header.seq, _x.goal.grasp.pre_grasp_posture.header.stamp.secs, _x.goal.grasp.pre_grasp_posture.header.stamp.nsecs))
00200 _x = self.goal.grasp.pre_grasp_posture.header.frame_id
00201 length = len(_x)
00202 buff.write(struct.pack('<I%ss'%length, length, _x))
00203 length = len(self.goal.grasp.pre_grasp_posture.name)
00204 buff.write(_struct_I.pack(length))
00205 for val1 in self.goal.grasp.pre_grasp_posture.name:
00206 length = len(val1)
00207 buff.write(struct.pack('<I%ss'%length, length, val1))
00208 length = len(self.goal.grasp.pre_grasp_posture.position)
00209 buff.write(_struct_I.pack(length))
00210 pattern = '<%sd'%length
00211 buff.write(struct.pack(pattern, *self.goal.grasp.pre_grasp_posture.position))
00212 length = len(self.goal.grasp.pre_grasp_posture.velocity)
00213 buff.write(_struct_I.pack(length))
00214 pattern = '<%sd'%length
00215 buff.write(struct.pack(pattern, *self.goal.grasp.pre_grasp_posture.velocity))
00216 length = len(self.goal.grasp.pre_grasp_posture.effort)
00217 buff.write(_struct_I.pack(length))
00218 pattern = '<%sd'%length
00219 buff.write(struct.pack(pattern, *self.goal.grasp.pre_grasp_posture.effort))
00220 _x = self
00221 buff.write(_struct_3I.pack(_x.goal.grasp.grasp_posture.header.seq, _x.goal.grasp.grasp_posture.header.stamp.secs, _x.goal.grasp.grasp_posture.header.stamp.nsecs))
00222 _x = self.goal.grasp.grasp_posture.header.frame_id
00223 length = len(_x)
00224 buff.write(struct.pack('<I%ss'%length, length, _x))
00225 length = len(self.goal.grasp.grasp_posture.name)
00226 buff.write(_struct_I.pack(length))
00227 for val1 in self.goal.grasp.grasp_posture.name:
00228 length = len(val1)
00229 buff.write(struct.pack('<I%ss'%length, length, val1))
00230 length = len(self.goal.grasp.grasp_posture.position)
00231 buff.write(_struct_I.pack(length))
00232 pattern = '<%sd'%length
00233 buff.write(struct.pack(pattern, *self.goal.grasp.grasp_posture.position))
00234 length = len(self.goal.grasp.grasp_posture.velocity)
00235 buff.write(_struct_I.pack(length))
00236 pattern = '<%sd'%length
00237 buff.write(struct.pack(pattern, *self.goal.grasp.grasp_posture.velocity))
00238 length = len(self.goal.grasp.grasp_posture.effort)
00239 buff.write(_struct_I.pack(length))
00240 pattern = '<%sd'%length
00241 buff.write(struct.pack(pattern, *self.goal.grasp.grasp_posture.effort))
00242 _x = self
00243 buff.write(_struct_8dBi.pack(_x.goal.grasp.grasp_pose.position.x, _x.goal.grasp.grasp_pose.position.y, _x.goal.grasp.grasp_pose.position.z, _x.goal.grasp.grasp_pose.orientation.x, _x.goal.grasp.grasp_pose.orientation.y, _x.goal.grasp.grasp_pose.orientation.z, _x.goal.grasp.grasp_pose.orientation.w, _x.goal.grasp.success_probability, _x.goal.grasp.cluster_rep, _x.goal.goal))
00244 except struct.error, se: self._check_types(se)
00245 except TypeError, te: self._check_types(te)
00246
00247 def deserialize(self, str):
00248 """
00249 unpack serialized message in str into this message instance
00250 @param str: byte array of serialized message
00251 @type str: str
00252 """
00253 try:
00254 if self.header is None:
00255 self.header = std_msgs.msg._Header.Header()
00256 if self.goal_id is None:
00257 self.goal_id = actionlib_msgs.msg.GoalID()
00258 if self.goal is None:
00259 self.goal = object_manipulation_msgs.msg.GraspHandPostureExecutionGoal()
00260 end = 0
00261 _x = self
00262 start = end
00263 end += 12
00264 (_x.header.seq, _x.header.stamp.secs, _x.header.stamp.nsecs,) = _struct_3I.unpack(str[start:end])
00265 start = end
00266 end += 4
00267 (length,) = _struct_I.unpack(str[start:end])
00268 start = end
00269 end += length
00270 self.header.frame_id = str[start:end]
00271 _x = self
00272 start = end
00273 end += 8
00274 (_x.goal_id.stamp.secs, _x.goal_id.stamp.nsecs,) = _struct_2I.unpack(str[start:end])
00275 start = end
00276 end += 4
00277 (length,) = _struct_I.unpack(str[start:end])
00278 start = end
00279 end += length
00280 self.goal_id.id = str[start:end]
00281 _x = self
00282 start = end
00283 end += 12
00284 (_x.goal.grasp.pre_grasp_posture.header.seq, _x.goal.grasp.pre_grasp_posture.header.stamp.secs, _x.goal.grasp.pre_grasp_posture.header.stamp.nsecs,) = _struct_3I.unpack(str[start:end])
00285 start = end
00286 end += 4
00287 (length,) = _struct_I.unpack(str[start:end])
00288 start = end
00289 end += length
00290 self.goal.grasp.pre_grasp_posture.header.frame_id = str[start:end]
00291 start = end
00292 end += 4
00293 (length,) = _struct_I.unpack(str[start:end])
00294 self.goal.grasp.pre_grasp_posture.name = []
00295 for i in xrange(0, length):
00296 start = end
00297 end += 4
00298 (length,) = _struct_I.unpack(str[start:end])
00299 start = end
00300 end += length
00301 val1 = str[start:end]
00302 self.goal.grasp.pre_grasp_posture.name.append(val1)
00303 start = end
00304 end += 4
00305 (length,) = _struct_I.unpack(str[start:end])
00306 pattern = '<%sd'%length
00307 start = end
00308 end += struct.calcsize(pattern)
00309 self.goal.grasp.pre_grasp_posture.position = struct.unpack(pattern, str[start:end])
00310 start = end
00311 end += 4
00312 (length,) = _struct_I.unpack(str[start:end])
00313 pattern = '<%sd'%length
00314 start = end
00315 end += struct.calcsize(pattern)
00316 self.goal.grasp.pre_grasp_posture.velocity = struct.unpack(pattern, str[start:end])
00317 start = end
00318 end += 4
00319 (length,) = _struct_I.unpack(str[start:end])
00320 pattern = '<%sd'%length
00321 start = end
00322 end += struct.calcsize(pattern)
00323 self.goal.grasp.pre_grasp_posture.effort = struct.unpack(pattern, str[start:end])
00324 _x = self
00325 start = end
00326 end += 12
00327 (_x.goal.grasp.grasp_posture.header.seq, _x.goal.grasp.grasp_posture.header.stamp.secs, _x.goal.grasp.grasp_posture.header.stamp.nsecs,) = _struct_3I.unpack(str[start:end])
00328 start = end
00329 end += 4
00330 (length,) = _struct_I.unpack(str[start:end])
00331 start = end
00332 end += length
00333 self.goal.grasp.grasp_posture.header.frame_id = str[start:end]
00334 start = end
00335 end += 4
00336 (length,) = _struct_I.unpack(str[start:end])
00337 self.goal.grasp.grasp_posture.name = []
00338 for i in xrange(0, length):
00339 start = end
00340 end += 4
00341 (length,) = _struct_I.unpack(str[start:end])
00342 start = end
00343 end += length
00344 val1 = str[start:end]
00345 self.goal.grasp.grasp_posture.name.append(val1)
00346 start = end
00347 end += 4
00348 (length,) = _struct_I.unpack(str[start:end])
00349 pattern = '<%sd'%length
00350 start = end
00351 end += struct.calcsize(pattern)
00352 self.goal.grasp.grasp_posture.position = struct.unpack(pattern, str[start:end])
00353 start = end
00354 end += 4
00355 (length,) = _struct_I.unpack(str[start:end])
00356 pattern = '<%sd'%length
00357 start = end
00358 end += struct.calcsize(pattern)
00359 self.goal.grasp.grasp_posture.velocity = struct.unpack(pattern, str[start:end])
00360 start = end
00361 end += 4
00362 (length,) = _struct_I.unpack(str[start:end])
00363 pattern = '<%sd'%length
00364 start = end
00365 end += struct.calcsize(pattern)
00366 self.goal.grasp.grasp_posture.effort = struct.unpack(pattern, str[start:end])
00367 _x = self
00368 start = end
00369 end += 69
00370 (_x.goal.grasp.grasp_pose.position.x, _x.goal.grasp.grasp_pose.position.y, _x.goal.grasp.grasp_pose.position.z, _x.goal.grasp.grasp_pose.orientation.x, _x.goal.grasp.grasp_pose.orientation.y, _x.goal.grasp.grasp_pose.orientation.z, _x.goal.grasp.grasp_pose.orientation.w, _x.goal.grasp.success_probability, _x.goal.grasp.cluster_rep, _x.goal.goal,) = _struct_8dBi.unpack(str[start:end])
00371 self.goal.grasp.cluster_rep = bool(self.goal.grasp.cluster_rep)
00372 return self
00373 except struct.error, e:
00374 raise roslib.message.DeserializationError(e)
00375
00376
00377 def serialize_numpy(self, buff, numpy):
00378 """
00379 serialize message with numpy array types into buffer
00380 @param buff: buffer
00381 @type buff: StringIO
00382 @param numpy: numpy python module
00383 @type numpy module
00384 """
00385 try:
00386 _x = self
00387 buff.write(_struct_3I.pack(_x.header.seq, _x.header.stamp.secs, _x.header.stamp.nsecs))
00388 _x = self.header.frame_id
00389 length = len(_x)
00390 buff.write(struct.pack('<I%ss'%length, length, _x))
00391 _x = self
00392 buff.write(_struct_2I.pack(_x.goal_id.stamp.secs, _x.goal_id.stamp.nsecs))
00393 _x = self.goal_id.id
00394 length = len(_x)
00395 buff.write(struct.pack('<I%ss'%length, length, _x))
00396 _x = self
00397 buff.write(_struct_3I.pack(_x.goal.grasp.pre_grasp_posture.header.seq, _x.goal.grasp.pre_grasp_posture.header.stamp.secs, _x.goal.grasp.pre_grasp_posture.header.stamp.nsecs))
00398 _x = self.goal.grasp.pre_grasp_posture.header.frame_id
00399 length = len(_x)
00400 buff.write(struct.pack('<I%ss'%length, length, _x))
00401 length = len(self.goal.grasp.pre_grasp_posture.name)
00402 buff.write(_struct_I.pack(length))
00403 for val1 in self.goal.grasp.pre_grasp_posture.name:
00404 length = len(val1)
00405 buff.write(struct.pack('<I%ss'%length, length, val1))
00406 length = len(self.goal.grasp.pre_grasp_posture.position)
00407 buff.write(_struct_I.pack(length))
00408 pattern = '<%sd'%length
00409 buff.write(self.goal.grasp.pre_grasp_posture.position.tostring())
00410 length = len(self.goal.grasp.pre_grasp_posture.velocity)
00411 buff.write(_struct_I.pack(length))
00412 pattern = '<%sd'%length
00413 buff.write(self.goal.grasp.pre_grasp_posture.velocity.tostring())
00414 length = len(self.goal.grasp.pre_grasp_posture.effort)
00415 buff.write(_struct_I.pack(length))
00416 pattern = '<%sd'%length
00417 buff.write(self.goal.grasp.pre_grasp_posture.effort.tostring())
00418 _x = self
00419 buff.write(_struct_3I.pack(_x.goal.grasp.grasp_posture.header.seq, _x.goal.grasp.grasp_posture.header.stamp.secs, _x.goal.grasp.grasp_posture.header.stamp.nsecs))
00420 _x = self.goal.grasp.grasp_posture.header.frame_id
00421 length = len(_x)
00422 buff.write(struct.pack('<I%ss'%length, length, _x))
00423 length = len(self.goal.grasp.grasp_posture.name)
00424 buff.write(_struct_I.pack(length))
00425 for val1 in self.goal.grasp.grasp_posture.name:
00426 length = len(val1)
00427 buff.write(struct.pack('<I%ss'%length, length, val1))
00428 length = len(self.goal.grasp.grasp_posture.position)
00429 buff.write(_struct_I.pack(length))
00430 pattern = '<%sd'%length
00431 buff.write(self.goal.grasp.grasp_posture.position.tostring())
00432 length = len(self.goal.grasp.grasp_posture.velocity)
00433 buff.write(_struct_I.pack(length))
00434 pattern = '<%sd'%length
00435 buff.write(self.goal.grasp.grasp_posture.velocity.tostring())
00436 length = len(self.goal.grasp.grasp_posture.effort)
00437 buff.write(_struct_I.pack(length))
00438 pattern = '<%sd'%length
00439 buff.write(self.goal.grasp.grasp_posture.effort.tostring())
00440 _x = self
00441 buff.write(_struct_8dBi.pack(_x.goal.grasp.grasp_pose.position.x, _x.goal.grasp.grasp_pose.position.y, _x.goal.grasp.grasp_pose.position.z, _x.goal.grasp.grasp_pose.orientation.x, _x.goal.grasp.grasp_pose.orientation.y, _x.goal.grasp.grasp_pose.orientation.z, _x.goal.grasp.grasp_pose.orientation.w, _x.goal.grasp.success_probability, _x.goal.grasp.cluster_rep, _x.goal.goal))
00442 except struct.error, se: self._check_types(se)
00443 except TypeError, te: self._check_types(te)
00444
00445 def deserialize_numpy(self, str, numpy):
00446 """
00447 unpack serialized message in str into this message instance using numpy for array types
00448 @param str: byte array of serialized message
00449 @type str: str
00450 @param numpy: numpy python module
00451 @type numpy: module
00452 """
00453 try:
00454 if self.header is None:
00455 self.header = std_msgs.msg._Header.Header()
00456 if self.goal_id is None:
00457 self.goal_id = actionlib_msgs.msg.GoalID()
00458 if self.goal is None:
00459 self.goal = object_manipulation_msgs.msg.GraspHandPostureExecutionGoal()
00460 end = 0
00461 _x = self
00462 start = end
00463 end += 12
00464 (_x.header.seq, _x.header.stamp.secs, _x.header.stamp.nsecs,) = _struct_3I.unpack(str[start:end])
00465 start = end
00466 end += 4
00467 (length,) = _struct_I.unpack(str[start:end])
00468 start = end
00469 end += length
00470 self.header.frame_id = str[start:end]
00471 _x = self
00472 start = end
00473 end += 8
00474 (_x.goal_id.stamp.secs, _x.goal_id.stamp.nsecs,) = _struct_2I.unpack(str[start:end])
00475 start = end
00476 end += 4
00477 (length,) = _struct_I.unpack(str[start:end])
00478 start = end
00479 end += length
00480 self.goal_id.id = str[start:end]
00481 _x = self
00482 start = end
00483 end += 12
00484 (_x.goal.grasp.pre_grasp_posture.header.seq, _x.goal.grasp.pre_grasp_posture.header.stamp.secs, _x.goal.grasp.pre_grasp_posture.header.stamp.nsecs,) = _struct_3I.unpack(str[start:end])
00485 start = end
00486 end += 4
00487 (length,) = _struct_I.unpack(str[start:end])
00488 start = end
00489 end += length
00490 self.goal.grasp.pre_grasp_posture.header.frame_id = str[start:end]
00491 start = end
00492 end += 4
00493 (length,) = _struct_I.unpack(str[start:end])
00494 self.goal.grasp.pre_grasp_posture.name = []
00495 for i in xrange(0, length):
00496 start = end
00497 end += 4
00498 (length,) = _struct_I.unpack(str[start:end])
00499 start = end
00500 end += length
00501 val1 = str[start:end]
00502 self.goal.grasp.pre_grasp_posture.name.append(val1)
00503 start = end
00504 end += 4
00505 (length,) = _struct_I.unpack(str[start:end])
00506 pattern = '<%sd'%length
00507 start = end
00508 end += struct.calcsize(pattern)
00509 self.goal.grasp.pre_grasp_posture.position = numpy.frombuffer(str[start:end], dtype=numpy.float64, count=length)
00510 start = end
00511 end += 4
00512 (length,) = _struct_I.unpack(str[start:end])
00513 pattern = '<%sd'%length
00514 start = end
00515 end += struct.calcsize(pattern)
00516 self.goal.grasp.pre_grasp_posture.velocity = numpy.frombuffer(str[start:end], dtype=numpy.float64, count=length)
00517 start = end
00518 end += 4
00519 (length,) = _struct_I.unpack(str[start:end])
00520 pattern = '<%sd'%length
00521 start = end
00522 end += struct.calcsize(pattern)
00523 self.goal.grasp.pre_grasp_posture.effort = numpy.frombuffer(str[start:end], dtype=numpy.float64, count=length)
00524 _x = self
00525 start = end
00526 end += 12
00527 (_x.goal.grasp.grasp_posture.header.seq, _x.goal.grasp.grasp_posture.header.stamp.secs, _x.goal.grasp.grasp_posture.header.stamp.nsecs,) = _struct_3I.unpack(str[start:end])
00528 start = end
00529 end += 4
00530 (length,) = _struct_I.unpack(str[start:end])
00531 start = end
00532 end += length
00533 self.goal.grasp.grasp_posture.header.frame_id = str[start:end]
00534 start = end
00535 end += 4
00536 (length,) = _struct_I.unpack(str[start:end])
00537 self.goal.grasp.grasp_posture.name = []
00538 for i in xrange(0, length):
00539 start = end
00540 end += 4
00541 (length,) = _struct_I.unpack(str[start:end])
00542 start = end
00543 end += length
00544 val1 = str[start:end]
00545 self.goal.grasp.grasp_posture.name.append(val1)
00546 start = end
00547 end += 4
00548 (length,) = _struct_I.unpack(str[start:end])
00549 pattern = '<%sd'%length
00550 start = end
00551 end += struct.calcsize(pattern)
00552 self.goal.grasp.grasp_posture.position = numpy.frombuffer(str[start:end], dtype=numpy.float64, count=length)
00553 start = end
00554 end += 4
00555 (length,) = _struct_I.unpack(str[start:end])
00556 pattern = '<%sd'%length
00557 start = end
00558 end += struct.calcsize(pattern)
00559 self.goal.grasp.grasp_posture.velocity = numpy.frombuffer(str[start:end], dtype=numpy.float64, count=length)
00560 start = end
00561 end += 4
00562 (length,) = _struct_I.unpack(str[start:end])
00563 pattern = '<%sd'%length
00564 start = end
00565 end += struct.calcsize(pattern)
00566 self.goal.grasp.grasp_posture.effort = numpy.frombuffer(str[start:end], dtype=numpy.float64, count=length)
00567 _x = self
00568 start = end
00569 end += 69
00570 (_x.goal.grasp.grasp_pose.position.x, _x.goal.grasp.grasp_pose.position.y, _x.goal.grasp.grasp_pose.position.z, _x.goal.grasp.grasp_pose.orientation.x, _x.goal.grasp.grasp_pose.orientation.y, _x.goal.grasp.grasp_pose.orientation.z, _x.goal.grasp.grasp_pose.orientation.w, _x.goal.grasp.success_probability, _x.goal.grasp.cluster_rep, _x.goal.goal,) = _struct_8dBi.unpack(str[start:end])
00571 self.goal.grasp.cluster_rep = bool(self.goal.grasp.cluster_rep)
00572 return self
00573 except struct.error, e:
00574 raise roslib.message.DeserializationError(e)
00575
00576 _struct_I = roslib.message.struct_I
00577 _struct_3I = struct.Struct("<3I")
00578 _struct_2I = struct.Struct("<2I")
00579 _struct_8dBi = struct.Struct("<8dBi")