; Auto-generated. Do not edit!


(in-package test_roslib-msg)


;//! \htmlinclude ArrayOfMsgs.msg.html

(defclass <ArrayOfMsgs> (ros-message)
  ((strings
    :reader strings-val
    :initarg :strings
    :type (vector std_msgs-msg:<String>)
   :initform (make-array 0 :element-type 'std_msgs-msg:<String> :initial-element (make-instance 'std_msgs-msg:<String>)))
   (times
    :reader times-val
    :initarg :times
    :type (vector std_msgs-msg:<Time>)
   :initform (make-array 0 :element-type 'std_msgs-msg:<Time> :initial-element (make-instance 'std_msgs-msg:<Time>)))
   (muls
    :reader muls-val
    :initarg :muls
    :type (vector std_msgs-msg:<MultiArrayLayout>)
   :initform (make-array 0 :element-type 'std_msgs-msg:<MultiArrayLayout> :initial-element (make-instance 'std_msgs-msg:<MultiArrayLayout>))))
)
(defmethod serialize ((msg <ArrayOfMsgs>) ostream)
  "Serializes a message object of type '<ArrayOfMsgs>"
  (let ((__ros_arr_len (length (slot-value msg 'strings))))
    (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 'strings))
  (let ((__ros_arr_len (length (slot-value msg 'times))))
    (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 'times))
  (let ((__ros_arr_len (length (slot-value msg 'muls))))
    (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 'muls))
)
(defmethod deserialize ((msg <ArrayOfMsgs>) istream)
  "Deserializes a message object of type '<ArrayOfMsgs>"
  (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 'strings) (make-array __ros_arr_len))
    (let ((vals (slot-value msg 'strings)))
      (dotimes (i __ros_arr_len)
        (setf (aref vals i) (make-instance 'std_msgs-msg:<String>))
(deserialize (aref vals i) istream))))
  (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 'times) (make-array __ros_arr_len))
    (let ((vals (slot-value msg 'times)))
      (dotimes (i __ros_arr_len)
        (setf (aref vals i) (make-instance 'std_msgs-msg:<Time>))
(deserialize (aref vals i) istream))))
  (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 'muls) (make-array __ros_arr_len))
    (let ((vals (slot-value msg 'muls)))
      (dotimes (i __ros_arr_len)
        (setf (aref vals i) (make-instance 'std_msgs-msg:<MultiArrayLayout>))
(deserialize (aref vals i) istream))))
  msg
)
(defmethod ros-datatype ((msg (eql '<ArrayOfMsgs>)))
  "Returns string type for a message object of type '<ArrayOfMsgs>"
  "test_roslib/ArrayOfMsgs")
(defmethod md5sum ((type (eql '<ArrayOfMsgs>)))
  "Returns md5sum for a message object of type '<ArrayOfMsgs>"
  "1f4cf3ffabe2555a0cfe19c974f01a01")
(defmethod message-definition ((type (eql '<ArrayOfMsgs>)))
  "Returns full string definition for message of type '<ArrayOfMsgs>"
  (format nil "std_msgs/String[] strings~%std_msgs/Time[] times~%std_msgs/MultiArrayLayout[] muls~%================================================================================~%MSG: std_msgs/String~%string data~%~%================================================================================~%MSG: std_msgs/Time~%time data~%~%================================================================================~%MSG: std_msgs/MultiArrayLayout~%# The multiarray declares a generic multi-dimensional array of a~%# particular data type.  Dimensions are ordered from outer most~%# to inner most.~%~%MultiArrayDimension[] dim # Array of dimension properties~%uint32 data_offset        # padding bytes at front of data~%~%# Accessors should ALWAYS be written in terms of dimension stride~%# and specified outer-most dimension first.~%# ~%# multiarray(i,j,k) = data[data_offset + dim_stride[1]*i + dim_stride[2]*j + k]~%#~%# A standard, 3-channel 640x480 image with interleaved color channels~%# would be specified as:~%#~%# dim[0].label  = \"height\"~%# dim[0].size   = 480~%# dim[0].stride = 3*640*480 = 921600  (note dim[0] stride is just size of image)~%# dim[1].label  = \"width\"~%# dim[1].size   = 640~%# dim[1].stride = 3*640 = 1920~%# dim[2].label  = \"channel\"~%# dim[2].size   = 3~%# dim[2].stride = 3~%#~%# multiarray(i,j,k) refers to the ith row, jth column, and kth channel.~%================================================================================~%MSG: std_msgs/MultiArrayDimension~%string label   # label of given dimension~%uint32 size    # size of given dimension (in type units)~%uint32 stride  # stride of given dimension~%~%"))
(defmethod serialization-length ((msg <ArrayOfMsgs>))
  (+ 0
     4 (reduce #'+ (slot-value msg 'strings) :key #'(lambda (ele) (declare (ignorable ele)) (+ (serialization-length ele))))
     4 (reduce #'+ (slot-value msg 'times) :key #'(lambda (ele) (declare (ignorable ele)) (+ (serialization-length ele))))
     4 (reduce #'+ (slot-value msg 'muls) :key #'(lambda (ele) (declare (ignorable ele)) (+ (serialization-length ele))))
))
(defmethod ros-message-to-list ((msg <ArrayOfMsgs>))
  "Converts a ROS message object to a list"
  (list '<ArrayOfMsgs>
    (cons ':strings (strings-val msg))
    (cons ':times (times-val msg))
    (cons ':muls (muls-val msg))
))
