; Auto-generated. Do not edit!


(in-package test_roslib-msg)


;//! \htmlinclude TypeNameChangeComplex2.msg.html

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