00001 """autogenerated by genmsg_py from JointTrajectoryAction.msg. Do not edit."""
00002 import roslib.message
00003 import struct
00004
00005 import trajectory_msgs.msg
00006 import roslib.rostime
00007 import pr2_controllers_msgs.msg
00008 import actionlib_msgs.msg
00009 import std_msgs.msg
00010
00011 class JointTrajectoryAction(roslib.message.Message):
00012 _md5sum = "368cde325f76ad543f39a85373230b73"
00013 _type = "pr2_controllers_msgs/JointTrajectoryAction"
00014 _has_header = False
00015 _full_text = """# ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======
00016
00017 JointTrajectoryActionGoal action_goal
00018 JointTrajectoryActionResult action_result
00019 JointTrajectoryActionFeedback action_feedback
00020
00021 ================================================================================
00022 MSG: pr2_controllers_msgs/JointTrajectoryActionGoal
00023 # ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======
00024
00025 Header header
00026 actionlib_msgs/GoalID goal_id
00027 JointTrajectoryGoal goal
00028
00029 ================================================================================
00030 MSG: std_msgs/Header
00031 # Standard metadata for higher-level stamped data types.
00032 # This is generally used to communicate timestamped data
00033 # in a particular coordinate frame.
00034 #
00035 # sequence ID: consecutively increasing ID
00036 uint32 seq
00037 #Two-integer timestamp that is expressed as:
00038 # * stamp.secs: seconds (stamp_secs) since epoch
00039 # * stamp.nsecs: nanoseconds since stamp_secs
00040 # time-handling sugar is provided by the client library
00041 time stamp
00042 #Frame this data is associated with
00043 # 0: no frame
00044 # 1: global frame
00045 string frame_id
00046
00047 ================================================================================
00048 MSG: actionlib_msgs/GoalID
00049 # The stamp should store the time at which this goal was requested.
00050 # It is used by an action server when it tries to preempt all
00051 # goals that were requested before a certain time
00052 time stamp
00053
00054 # The id provides a way to associate feedback and
00055 # result message with specific goal requests. The id
00056 # specified must be unique.
00057 string id
00058
00059
00060 ================================================================================
00061 MSG: pr2_controllers_msgs/JointTrajectoryGoal
00062 # ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======
00063 trajectory_msgs/JointTrajectory trajectory
00064
00065 ================================================================================
00066 MSG: trajectory_msgs/JointTrajectory
00067 Header header
00068 string[] joint_names
00069 JointTrajectoryPoint[] points
00070 ================================================================================
00071 MSG: trajectory_msgs/JointTrajectoryPoint
00072 float64[] positions
00073 float64[] velocities
00074 float64[] accelerations
00075 duration time_from_start
00076 ================================================================================
00077 MSG: pr2_controllers_msgs/JointTrajectoryActionResult
00078 # ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======
00079
00080 Header header
00081 actionlib_msgs/GoalStatus status
00082 JointTrajectoryResult result
00083
00084 ================================================================================
00085 MSG: actionlib_msgs/GoalStatus
00086 GoalID goal_id
00087 uint8 status
00088 uint8 PENDING = 0 # The goal has yet to be processed by the action server
00089 uint8 ACTIVE = 1 # The goal is currently being processed by the action server
00090 uint8 PREEMPTED = 2 # The goal received a cancel request after it started executing
00091 # and has since completed its execution (Terminal State)
00092 uint8 SUCCEEDED = 3 # The goal was achieved successfully by the action server (Terminal State)
00093 uint8 ABORTED = 4 # The goal was aborted during execution by the action server due
00094 # to some failure (Terminal State)
00095 uint8 REJECTED = 5 # The goal was rejected by the action server without being processed,
00096 # because the goal was unattainable or invalid (Terminal State)
00097 uint8 PREEMPTING = 6 # The goal received a cancel request after it started executing
00098 # and has not yet completed execution
00099 uint8 RECALLING = 7 # The goal received a cancel request before it started executing,
00100 # but the action server has not yet confirmed that the goal is canceled
00101 uint8 RECALLED = 8 # The goal received a cancel request before it started executing
00102 # and was successfully cancelled (Terminal State)
00103 uint8 LOST = 9 # An action client can determine that a goal is LOST. This should not be
00104 # sent over the wire by an action server
00105
00106 #Allow for the user to associate a string with GoalStatus for debugging
00107 string text
00108
00109
00110 ================================================================================
00111 MSG: pr2_controllers_msgs/JointTrajectoryResult
00112 # ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======
00113
00114 ================================================================================
00115 MSG: pr2_controllers_msgs/JointTrajectoryActionFeedback
00116 # ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======
00117
00118 Header header
00119 actionlib_msgs/GoalStatus status
00120 JointTrajectoryFeedback feedback
00121
00122 ================================================================================
00123 MSG: pr2_controllers_msgs/JointTrajectoryFeedback
00124 # ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======
00125
00126
00127 """
00128 __slots__ = ['action_goal','action_result','action_feedback']
00129 _slot_types = ['pr2_controllers_msgs/JointTrajectoryActionGoal','pr2_controllers_msgs/JointTrajectoryActionResult','pr2_controllers_msgs/JointTrajectoryActionFeedback']
00130
00131 def __init__(self, *args, **kwds):
00132 """
00133 Constructor. Any message fields that are implicitly/explicitly
00134 set to None will be assigned a default value. The recommend
00135 use is keyword arguments as this is more robust to future message
00136 changes. You cannot mix in-order arguments and keyword arguments.
00137
00138 The available fields are:
00139 action_goal,action_result,action_feedback
00140
00141 @param args: complete set of field values, in .msg order
00142 @param kwds: use keyword arguments corresponding to message field names
00143 to set specific fields.
00144 """
00145 if args or kwds:
00146 super(JointTrajectoryAction, self).__init__(*args, **kwds)
00147
00148 if self.action_goal is None:
00149 self.action_goal = pr2_controllers_msgs.msg.JointTrajectoryActionGoal()
00150 if self.action_result is None:
00151 self.action_result = pr2_controllers_msgs.msg.JointTrajectoryActionResult()
00152 if self.action_feedback is None:
00153 self.action_feedback = pr2_controllers_msgs.msg.JointTrajectoryActionFeedback()
00154 else:
00155 self.action_goal = pr2_controllers_msgs.msg.JointTrajectoryActionGoal()
00156 self.action_result = pr2_controllers_msgs.msg.JointTrajectoryActionResult()
00157 self.action_feedback = pr2_controllers_msgs.msg.JointTrajectoryActionFeedback()
00158
00159 def _get_types(self):
00160 """
00161 internal API method
00162 """
00163 return self._slot_types
00164
00165 def serialize(self, buff):
00166 """
00167 serialize message into buffer
00168 @param buff: buffer
00169 @type buff: StringIO
00170 """
00171 try:
00172 _x = self
00173 buff.write(_struct_3I.pack(_x.action_goal.header.seq, _x.action_goal.header.stamp.secs, _x.action_goal.header.stamp.nsecs))
00174 _x = self.action_goal.header.frame_id
00175 length = len(_x)
00176 buff.write(struct.pack('<I%ss'%length, length, _x))
00177 _x = self
00178 buff.write(_struct_2I.pack(_x.action_goal.goal_id.stamp.secs, _x.action_goal.goal_id.stamp.nsecs))
00179 _x = self.action_goal.goal_id.id
00180 length = len(_x)
00181 buff.write(struct.pack('<I%ss'%length, length, _x))
00182 _x = self
00183 buff.write(_struct_3I.pack(_x.action_goal.goal.trajectory.header.seq, _x.action_goal.goal.trajectory.header.stamp.secs, _x.action_goal.goal.trajectory.header.stamp.nsecs))
00184 _x = self.action_goal.goal.trajectory.header.frame_id
00185 length = len(_x)
00186 buff.write(struct.pack('<I%ss'%length, length, _x))
00187 length = len(self.action_goal.goal.trajectory.joint_names)
00188 buff.write(_struct_I.pack(length))
00189 for val1 in self.action_goal.goal.trajectory.joint_names:
00190 length = len(val1)
00191 buff.write(struct.pack('<I%ss'%length, length, val1))
00192 length = len(self.action_goal.goal.trajectory.points)
00193 buff.write(_struct_I.pack(length))
00194 for val1 in self.action_goal.goal.trajectory.points:
00195 length = len(val1.positions)
00196 buff.write(_struct_I.pack(length))
00197 pattern = '<%sd'%length
00198 buff.write(struct.pack(pattern, *val1.positions))
00199 length = len(val1.velocities)
00200 buff.write(_struct_I.pack(length))
00201 pattern = '<%sd'%length
00202 buff.write(struct.pack(pattern, *val1.velocities))
00203 length = len(val1.accelerations)
00204 buff.write(_struct_I.pack(length))
00205 pattern = '<%sd'%length
00206 buff.write(struct.pack(pattern, *val1.accelerations))
00207 _v1 = val1.time_from_start
00208 _x = _v1
00209 buff.write(_struct_2i.pack(_x.secs, _x.nsecs))
00210 _x = self
00211 buff.write(_struct_3I.pack(_x.action_result.header.seq, _x.action_result.header.stamp.secs, _x.action_result.header.stamp.nsecs))
00212 _x = self.action_result.header.frame_id
00213 length = len(_x)
00214 buff.write(struct.pack('<I%ss'%length, length, _x))
00215 _x = self
00216 buff.write(_struct_2I.pack(_x.action_result.status.goal_id.stamp.secs, _x.action_result.status.goal_id.stamp.nsecs))
00217 _x = self.action_result.status.goal_id.id
00218 length = len(_x)
00219 buff.write(struct.pack('<I%ss'%length, length, _x))
00220 buff.write(_struct_B.pack(self.action_result.status.status))
00221 _x = self.action_result.status.text
00222 length = len(_x)
00223 buff.write(struct.pack('<I%ss'%length, length, _x))
00224 _x = self
00225 buff.write(_struct_3I.pack(_x.action_feedback.header.seq, _x.action_feedback.header.stamp.secs, _x.action_feedback.header.stamp.nsecs))
00226 _x = self.action_feedback.header.frame_id
00227 length = len(_x)
00228 buff.write(struct.pack('<I%ss'%length, length, _x))
00229 _x = self
00230 buff.write(_struct_2I.pack(_x.action_feedback.status.goal_id.stamp.secs, _x.action_feedback.status.goal_id.stamp.nsecs))
00231 _x = self.action_feedback.status.goal_id.id
00232 length = len(_x)
00233 buff.write(struct.pack('<I%ss'%length, length, _x))
00234 buff.write(_struct_B.pack(self.action_feedback.status.status))
00235 _x = self.action_feedback.status.text
00236 length = len(_x)
00237 buff.write(struct.pack('<I%ss'%length, length, _x))
00238 except struct.error, se: self._check_types(se)
00239 except TypeError, te: self._check_types(te)
00240
00241 def deserialize(self, str):
00242 """
00243 unpack serialized message in str into this message instance
00244 @param str: byte array of serialized message
00245 @type str: str
00246 """
00247 try:
00248 if self.action_goal is None:
00249 self.action_goal = pr2_controllers_msgs.msg.JointTrajectoryActionGoal()
00250 if self.action_result is None:
00251 self.action_result = pr2_controllers_msgs.msg.JointTrajectoryActionResult()
00252 if self.action_feedback is None:
00253 self.action_feedback = pr2_controllers_msgs.msg.JointTrajectoryActionFeedback()
00254 end = 0
00255 _x = self
00256 start = end
00257 end += 12
00258 (_x.action_goal.header.seq, _x.action_goal.header.stamp.secs, _x.action_goal.header.stamp.nsecs,) = _struct_3I.unpack(str[start:end])
00259 start = end
00260 end += 4
00261 (length,) = _struct_I.unpack(str[start:end])
00262 start = end
00263 end += length
00264 self.action_goal.header.frame_id = str[start:end]
00265 _x = self
00266 start = end
00267 end += 8
00268 (_x.action_goal.goal_id.stamp.secs, _x.action_goal.goal_id.stamp.nsecs,) = _struct_2I.unpack(str[start:end])
00269 start = end
00270 end += 4
00271 (length,) = _struct_I.unpack(str[start:end])
00272 start = end
00273 end += length
00274 self.action_goal.goal_id.id = str[start:end]
00275 _x = self
00276 start = end
00277 end += 12
00278 (_x.action_goal.goal.trajectory.header.seq, _x.action_goal.goal.trajectory.header.stamp.secs, _x.action_goal.goal.trajectory.header.stamp.nsecs,) = _struct_3I.unpack(str[start:end])
00279 start = end
00280 end += 4
00281 (length,) = _struct_I.unpack(str[start:end])
00282 start = end
00283 end += length
00284 self.action_goal.goal.trajectory.header.frame_id = str[start:end]
00285 start = end
00286 end += 4
00287 (length,) = _struct_I.unpack(str[start:end])
00288 self.action_goal.goal.trajectory.joint_names = []
00289 for i in xrange(0, length):
00290 start = end
00291 end += 4
00292 (length,) = _struct_I.unpack(str[start:end])
00293 start = end
00294 end += length
00295 val1 = str[start:end]
00296 self.action_goal.goal.trajectory.joint_names.append(val1)
00297 start = end
00298 end += 4
00299 (length,) = _struct_I.unpack(str[start:end])
00300 self.action_goal.goal.trajectory.points = []
00301 for i in xrange(0, length):
00302 val1 = trajectory_msgs.msg.JointTrajectoryPoint()
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 val1.positions = 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 val1.velocities = 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 val1.accelerations = struct.unpack(pattern, str[start:end])
00324 _v2 = val1.time_from_start
00325 _x = _v2
00326 start = end
00327 end += 8
00328 (_x.secs, _x.nsecs,) = _struct_2i.unpack(str[start:end])
00329 self.action_goal.goal.trajectory.points.append(val1)
00330 _x = self
00331 start = end
00332 end += 12
00333 (_x.action_result.header.seq, _x.action_result.header.stamp.secs, _x.action_result.header.stamp.nsecs,) = _struct_3I.unpack(str[start:end])
00334 start = end
00335 end += 4
00336 (length,) = _struct_I.unpack(str[start:end])
00337 start = end
00338 end += length
00339 self.action_result.header.frame_id = str[start:end]
00340 _x = self
00341 start = end
00342 end += 8
00343 (_x.action_result.status.goal_id.stamp.secs, _x.action_result.status.goal_id.stamp.nsecs,) = _struct_2I.unpack(str[start:end])
00344 start = end
00345 end += 4
00346 (length,) = _struct_I.unpack(str[start:end])
00347 start = end
00348 end += length
00349 self.action_result.status.goal_id.id = str[start:end]
00350 start = end
00351 end += 1
00352 (self.action_result.status.status,) = _struct_B.unpack(str[start:end])
00353 start = end
00354 end += 4
00355 (length,) = _struct_I.unpack(str[start:end])
00356 start = end
00357 end += length
00358 self.action_result.status.text = str[start:end]
00359 _x = self
00360 start = end
00361 end += 12
00362 (_x.action_feedback.header.seq, _x.action_feedback.header.stamp.secs, _x.action_feedback.header.stamp.nsecs,) = _struct_3I.unpack(str[start:end])
00363 start = end
00364 end += 4
00365 (length,) = _struct_I.unpack(str[start:end])
00366 start = end
00367 end += length
00368 self.action_feedback.header.frame_id = str[start:end]
00369 _x = self
00370 start = end
00371 end += 8
00372 (_x.action_feedback.status.goal_id.stamp.secs, _x.action_feedback.status.goal_id.stamp.nsecs,) = _struct_2I.unpack(str[start:end])
00373 start = end
00374 end += 4
00375 (length,) = _struct_I.unpack(str[start:end])
00376 start = end
00377 end += length
00378 self.action_feedback.status.goal_id.id = str[start:end]
00379 start = end
00380 end += 1
00381 (self.action_feedback.status.status,) = _struct_B.unpack(str[start:end])
00382 start = end
00383 end += 4
00384 (length,) = _struct_I.unpack(str[start:end])
00385 start = end
00386 end += length
00387 self.action_feedback.status.text = str[start:end]
00388 return self
00389 except struct.error, e:
00390 raise roslib.message.DeserializationError(e)
00391
00392
00393 def serialize_numpy(self, buff, numpy):
00394 """
00395 serialize message with numpy array types into buffer
00396 @param buff: buffer
00397 @type buff: StringIO
00398 @param numpy: numpy python module
00399 @type numpy module
00400 """
00401 try:
00402 _x = self
00403 buff.write(_struct_3I.pack(_x.action_goal.header.seq, _x.action_goal.header.stamp.secs, _x.action_goal.header.stamp.nsecs))
00404 _x = self.action_goal.header.frame_id
00405 length = len(_x)
00406 buff.write(struct.pack('<I%ss'%length, length, _x))
00407 _x = self
00408 buff.write(_struct_2I.pack(_x.action_goal.goal_id.stamp.secs, _x.action_goal.goal_id.stamp.nsecs))
00409 _x = self.action_goal.goal_id.id
00410 length = len(_x)
00411 buff.write(struct.pack('<I%ss'%length, length, _x))
00412 _x = self
00413 buff.write(_struct_3I.pack(_x.action_goal.goal.trajectory.header.seq, _x.action_goal.goal.trajectory.header.stamp.secs, _x.action_goal.goal.trajectory.header.stamp.nsecs))
00414 _x = self.action_goal.goal.trajectory.header.frame_id
00415 length = len(_x)
00416 buff.write(struct.pack('<I%ss'%length, length, _x))
00417 length = len(self.action_goal.goal.trajectory.joint_names)
00418 buff.write(_struct_I.pack(length))
00419 for val1 in self.action_goal.goal.trajectory.joint_names:
00420 length = len(val1)
00421 buff.write(struct.pack('<I%ss'%length, length, val1))
00422 length = len(self.action_goal.goal.trajectory.points)
00423 buff.write(_struct_I.pack(length))
00424 for val1 in self.action_goal.goal.trajectory.points:
00425 length = len(val1.positions)
00426 buff.write(_struct_I.pack(length))
00427 pattern = '<%sd'%length
00428 buff.write(val1.positions.tostring())
00429 length = len(val1.velocities)
00430 buff.write(_struct_I.pack(length))
00431 pattern = '<%sd'%length
00432 buff.write(val1.velocities.tostring())
00433 length = len(val1.accelerations)
00434 buff.write(_struct_I.pack(length))
00435 pattern = '<%sd'%length
00436 buff.write(val1.accelerations.tostring())
00437 _v3 = val1.time_from_start
00438 _x = _v3
00439 buff.write(_struct_2i.pack(_x.secs, _x.nsecs))
00440 _x = self
00441 buff.write(_struct_3I.pack(_x.action_result.header.seq, _x.action_result.header.stamp.secs, _x.action_result.header.stamp.nsecs))
00442 _x = self.action_result.header.frame_id
00443 length = len(_x)
00444 buff.write(struct.pack('<I%ss'%length, length, _x))
00445 _x = self
00446 buff.write(_struct_2I.pack(_x.action_result.status.goal_id.stamp.secs, _x.action_result.status.goal_id.stamp.nsecs))
00447 _x = self.action_result.status.goal_id.id
00448 length = len(_x)
00449 buff.write(struct.pack('<I%ss'%length, length, _x))
00450 buff.write(_struct_B.pack(self.action_result.status.status))
00451 _x = self.action_result.status.text
00452 length = len(_x)
00453 buff.write(struct.pack('<I%ss'%length, length, _x))
00454 _x = self
00455 buff.write(_struct_3I.pack(_x.action_feedback.header.seq, _x.action_feedback.header.stamp.secs, _x.action_feedback.header.stamp.nsecs))
00456 _x = self.action_feedback.header.frame_id
00457 length = len(_x)
00458 buff.write(struct.pack('<I%ss'%length, length, _x))
00459 _x = self
00460 buff.write(_struct_2I.pack(_x.action_feedback.status.goal_id.stamp.secs, _x.action_feedback.status.goal_id.stamp.nsecs))
00461 _x = self.action_feedback.status.goal_id.id
00462 length = len(_x)
00463 buff.write(struct.pack('<I%ss'%length, length, _x))
00464 buff.write(_struct_B.pack(self.action_feedback.status.status))
00465 _x = self.action_feedback.status.text
00466 length = len(_x)
00467 buff.write(struct.pack('<I%ss'%length, length, _x))
00468 except struct.error, se: self._check_types(se)
00469 except TypeError, te: self._check_types(te)
00470
00471 def deserialize_numpy(self, str, numpy):
00472 """
00473 unpack serialized message in str into this message instance using numpy for array types
00474 @param str: byte array of serialized message
00475 @type str: str
00476 @param numpy: numpy python module
00477 @type numpy: module
00478 """
00479 try:
00480 if self.action_goal is None:
00481 self.action_goal = pr2_controllers_msgs.msg.JointTrajectoryActionGoal()
00482 if self.action_result is None:
00483 self.action_result = pr2_controllers_msgs.msg.JointTrajectoryActionResult()
00484 if self.action_feedback is None:
00485 self.action_feedback = pr2_controllers_msgs.msg.JointTrajectoryActionFeedback()
00486 end = 0
00487 _x = self
00488 start = end
00489 end += 12
00490 (_x.action_goal.header.seq, _x.action_goal.header.stamp.secs, _x.action_goal.header.stamp.nsecs,) = _struct_3I.unpack(str[start:end])
00491 start = end
00492 end += 4
00493 (length,) = _struct_I.unpack(str[start:end])
00494 start = end
00495 end += length
00496 self.action_goal.header.frame_id = str[start:end]
00497 _x = self
00498 start = end
00499 end += 8
00500 (_x.action_goal.goal_id.stamp.secs, _x.action_goal.goal_id.stamp.nsecs,) = _struct_2I.unpack(str[start:end])
00501 start = end
00502 end += 4
00503 (length,) = _struct_I.unpack(str[start:end])
00504 start = end
00505 end += length
00506 self.action_goal.goal_id.id = str[start:end]
00507 _x = self
00508 start = end
00509 end += 12
00510 (_x.action_goal.goal.trajectory.header.seq, _x.action_goal.goal.trajectory.header.stamp.secs, _x.action_goal.goal.trajectory.header.stamp.nsecs,) = _struct_3I.unpack(str[start:end])
00511 start = end
00512 end += 4
00513 (length,) = _struct_I.unpack(str[start:end])
00514 start = end
00515 end += length
00516 self.action_goal.goal.trajectory.header.frame_id = str[start:end]
00517 start = end
00518 end += 4
00519 (length,) = _struct_I.unpack(str[start:end])
00520 self.action_goal.goal.trajectory.joint_names = []
00521 for i in xrange(0, length):
00522 start = end
00523 end += 4
00524 (length,) = _struct_I.unpack(str[start:end])
00525 start = end
00526 end += length
00527 val1 = str[start:end]
00528 self.action_goal.goal.trajectory.joint_names.append(val1)
00529 start = end
00530 end += 4
00531 (length,) = _struct_I.unpack(str[start:end])
00532 self.action_goal.goal.trajectory.points = []
00533 for i in xrange(0, length):
00534 val1 = trajectory_msgs.msg.JointTrajectoryPoint()
00535 start = end
00536 end += 4
00537 (length,) = _struct_I.unpack(str[start:end])
00538 pattern = '<%sd'%length
00539 start = end
00540 end += struct.calcsize(pattern)
00541 val1.positions = numpy.frombuffer(str[start:end], dtype=numpy.float64, count=length)
00542 start = end
00543 end += 4
00544 (length,) = _struct_I.unpack(str[start:end])
00545 pattern = '<%sd'%length
00546 start = end
00547 end += struct.calcsize(pattern)
00548 val1.velocities = numpy.frombuffer(str[start:end], dtype=numpy.float64, count=length)
00549 start = end
00550 end += 4
00551 (length,) = _struct_I.unpack(str[start:end])
00552 pattern = '<%sd'%length
00553 start = end
00554 end += struct.calcsize(pattern)
00555 val1.accelerations = numpy.frombuffer(str[start:end], dtype=numpy.float64, count=length)
00556 _v4 = val1.time_from_start
00557 _x = _v4
00558 start = end
00559 end += 8
00560 (_x.secs, _x.nsecs,) = _struct_2i.unpack(str[start:end])
00561 self.action_goal.goal.trajectory.points.append(val1)
00562 _x = self
00563 start = end
00564 end += 12
00565 (_x.action_result.header.seq, _x.action_result.header.stamp.secs, _x.action_result.header.stamp.nsecs,) = _struct_3I.unpack(str[start:end])
00566 start = end
00567 end += 4
00568 (length,) = _struct_I.unpack(str[start:end])
00569 start = end
00570 end += length
00571 self.action_result.header.frame_id = str[start:end]
00572 _x = self
00573 start = end
00574 end += 8
00575 (_x.action_result.status.goal_id.stamp.secs, _x.action_result.status.goal_id.stamp.nsecs,) = _struct_2I.unpack(str[start:end])
00576 start = end
00577 end += 4
00578 (length,) = _struct_I.unpack(str[start:end])
00579 start = end
00580 end += length
00581 self.action_result.status.goal_id.id = str[start:end]
00582 start = end
00583 end += 1
00584 (self.action_result.status.status,) = _struct_B.unpack(str[start:end])
00585 start = end
00586 end += 4
00587 (length,) = _struct_I.unpack(str[start:end])
00588 start = end
00589 end += length
00590 self.action_result.status.text = str[start:end]
00591 _x = self
00592 start = end
00593 end += 12
00594 (_x.action_feedback.header.seq, _x.action_feedback.header.stamp.secs, _x.action_feedback.header.stamp.nsecs,) = _struct_3I.unpack(str[start:end])
00595 start = end
00596 end += 4
00597 (length,) = _struct_I.unpack(str[start:end])
00598 start = end
00599 end += length
00600 self.action_feedback.header.frame_id = str[start:end]
00601 _x = self
00602 start = end
00603 end += 8
00604 (_x.action_feedback.status.goal_id.stamp.secs, _x.action_feedback.status.goal_id.stamp.nsecs,) = _struct_2I.unpack(str[start:end])
00605 start = end
00606 end += 4
00607 (length,) = _struct_I.unpack(str[start:end])
00608 start = end
00609 end += length
00610 self.action_feedback.status.goal_id.id = str[start:end]
00611 start = end
00612 end += 1
00613 (self.action_feedback.status.status,) = _struct_B.unpack(str[start:end])
00614 start = end
00615 end += 4
00616 (length,) = _struct_I.unpack(str[start:end])
00617 start = end
00618 end += length
00619 self.action_feedback.status.text = str[start:end]
00620 return self
00621 except struct.error, e:
00622 raise roslib.message.DeserializationError(e)
00623
00624 _struct_I = roslib.message.struct_I
00625 _struct_3I = struct.Struct("<3I")
00626 _struct_B = struct.Struct("<B")
00627 _struct_2I = struct.Struct("<2I")
00628 _struct_2i = struct.Struct("<2i")