; Auto-generated. Do not edit!


(in-package test_roslib-msg)


;//! \htmlinclude TypeNameChangeArray1.msg.html

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