; Auto-generated. Do not edit!


(in-package tf-msg)


;//! \htmlinclude tfMessage.msg.html

(defclass <tfMessage> (ros-message)
  ((transforms
    :reader transforms-val
    :initarg :transforms
    :type (vector geometry_msgs-msg:<TransformStamped>)
   :initform (make-array 0 :element-type 'geometry_msgs-msg:<TransformStamped> :initial-element (make-instance 'geometry_msgs-msg:<TransformStamped>))))
)
(defmethod serialize ((msg <tfMessage>) ostream)
  "Serializes a message object of type '<tfMessage>"
  (let ((__ros_arr_len (length (slot-value msg 'transforms))))
    (write-byte (ldb (byte 8 0) __ros_arr_len) ostream)
    (write-byte (ldb (byte 8 8) __ros_arr_len) ostream)
    (write-byte (ldb (byte 8 16) __ros_arr_len) ostream)
    (write-byte (ldb (byte 8 24) __ros_arr_len) ostream))
  (map nil #'(lambda (ele) (serialize ele ostream))
    (slot-value msg 'transforms))
)
(defmethod deserialize ((msg <tfMessage>) istream)
  "Deserializes a message object of type '<tfMessage>"
  (let ((__ros_arr_len 0))
    (setf (ldb (byte 8 0) __ros_arr_len) (read-byte istream))
    (setf (ldb (byte 8 8) __ros_arr_len) (read-byte istream))
    (setf (ldb (byte 8 16) __ros_arr_len) (read-byte istream))
    (setf (ldb (byte 8 24) __ros_arr_len) (read-byte istream))
    (setf (slot-value msg 'transforms) (make-array __ros_arr_len))
    (let ((vals (slot-value msg 'transforms)))
      (dotimes (i __ros_arr_len)
        (setf (aref vals i) (make-instance 'geometry_msgs-msg:<TransformStamped>))
(deserialize (aref vals i) istream))))
  msg
)
(defmethod ros-datatype ((msg (eql '<tfMessage>)))
  "Returns string type for a message object of type '<tfMessage>"
  "tf/tfMessage")
(defmethod md5sum ((type (eql '<tfMessage>)))
  "Returns md5sum for a message object of type '<tfMessage>"
  "94810edda583a504dfda3829e70d7eec")
(defmethod message-definition ((type (eql '<tfMessage>)))
  "Returns full string definition for message of type '<tfMessage>"
  (format nil "geometry_msgs/TransformStamped[] transforms~%~%================================================================================~%MSG: geometry_msgs/TransformStamped~%# This expresses a transform from coordinate frame header.frame_id~%# to the coordinate frame child_frame_id~%#~%# This message is mostly used by the ~%# <a href=\"http://www.ros.org/wiki/tf\">tf</a> package. ~%# See it's documentation for more information.~%~%Header header~%string child_frame_id # the frame id of the child frame~%Transform transform~%~%================================================================================~%MSG: roslib/Header~%# Standard metadata for higher-level stamped data types.~%# This is generally used to communicate timestamped data ~%# in a particular coordinate frame.~%# ~%# sequence ID: consecutively increasing ID ~%uint32 seq~%#Two-integer timestamp that is expressed as:~%# * stamp.secs: seconds (stamp_secs) since epoch~%# * stamp.nsecs: nanoseconds since stamp_secs~%# time-handling sugar is provided by the client library~%time stamp~%#Frame this data is associated with~%# 0: no frame~%# 1: global frame~%string frame_id~%~%================================================================================~%MSG: geometry_msgs/Transform~%# This represents the transform between two coordinate frames in free space.~%~%Vector3 translation~%Quaternion rotation~%~%================================================================================~%MSG: geometry_msgs/Vector3~%# This represents a vector in free space. ~%~%float64 x~%float64 y~%float64 z~%================================================================================~%MSG: geometry_msgs/Quaternion~%# This represents an orientation in free space in quaternion form.~%~%float64 x~%float64 y~%float64 z~%float64 w~%~%~%"))
(defmethod serialization-length ((msg <tfMessage>))
  (+ 0
     4 (reduce #'+ (slot-value msg 'transforms) :key #'(lambda (ele) (declare (ignorable ele)) (+ (serialization-length ele))))
))
(defmethod ros-message-to-list ((msg <tfMessage>))
  "Converts a ROS message object to a list"
  (list '<tfMessage>
    (cons ':transforms (transforms-val msg))
))
