; Auto-generated. Do not edit!


(in-package test_roslib-msg)


;//! \htmlinclude TypeNameChangeArray2.msg.html

(defclass <TypeNameChangeArray2> (ros-message)
  ((a
    :reader a-val
    :initarg :a
    :type (vector <SameSubMsg2>)
   :initform (make-array 0 :element-type '<SameSubMsg2> :initial-element (make-instance '<SameSubMsg2>))))
)
(defmethod serialize ((msg <TypeNameChangeArray2>) ostream)
  "Serializes a message object of type '<TypeNameChangeArray2>"
  (let ((__ros_arr_len (length (slot-value msg 'a))))
    (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 'a))
)
(defmethod deserialize ((msg <TypeNameChangeArray2>) istream)
  "Deserializes a message object of type '<TypeNameChangeArray2>"
  (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 'a) (make-array __ros_arr_len))
    (let ((vals (slot-value msg 'a)))
      (dotimes (i __ros_arr_len)
        (setf (aref vals i) (make-instance '<SameSubMsg2>))
(deserialize (aref vals i) istream))))
  msg
)
(defmethod ros-datatype ((msg (eql '<TypeNameChangeArray2>)))
  "Returns string type for a message object of type '<TypeNameChangeArray2>"
  "test_roslib/TypeNameChangeArray2")
(defmethod md5sum ((type (eql '<TypeNameChangeArray2>)))
  "Returns md5sum for a message object of type '<TypeNameChangeArray2>"
  "31a9992534c4d020bfc4045e7dc1a786")
(defmethod message-definition ((type (eql '<TypeNameChangeArray2>)))
  "Returns full string definition for message of type '<TypeNameChangeArray2>"
  (format nil "SameSubMsg2[] a~%================================================================================~%MSG: test_roslib/SameSubMsg2~%int32 a~%float32 b~%string c~%uint64[10] d~%float64[] e~%~%"))
(defmethod serialization-length ((msg <TypeNameChangeArray2>))
  (+ 0
     4 (reduce #'+ (slot-value msg 'a) :key #'(lambda (ele) (declare (ignorable ele)) (+ (serialization-length ele))))
))
(defmethod ros-message-to-list ((msg <TypeNameChangeArray2>))
  "Converts a ROS message object to a list"
  (list '<TypeNameChangeArray2>
    (cons ':a (a-val msg))
))
