; Auto-generated. Do not edit!


(in-package test_rospy-msg)


;//! \htmlinclude EmbedTest.msg.html

(defclass <EmbedTest> (ros-message)
  ((str1
    :reader str1-val
    :initarg :str1
    :type std_msgs-msg:<String>
    :initform (make-instance 'std_msgs-msg:<String>))
   (int1
    :reader int1-val
    :initarg :int1
    :type std_msgs-msg:<Int32>
    :initform (make-instance 'std_msgs-msg:<Int32>))
   (ints
    :reader ints-val
    :initarg :ints
    :type (vector std_msgs-msg:<Int32>)
   :initform (make-array 0 :element-type 'std_msgs-msg:<Int32> :initial-element (make-instance 'std_msgs-msg:<Int32>)))
   (val
    :reader val-val
    :initarg :val
    :type test_rospy-msg:<Val>
    :initform (make-instance 'test_rospy-msg:<Val>))
   (vals
    :reader vals-val
    :initarg :vals
    :type (vector <Val>)
   :initform (make-array 0 :element-type '<Val> :initial-element (make-instance '<Val>)))
   (arrayval
    :reader arrayval-val
    :initarg :arrayval
    :type (vector <ArrayVal>)
   :initform (make-array 0 :element-type '<ArrayVal> :initial-element (make-instance '<ArrayVal>))))
)
(defmethod serialize ((msg <EmbedTest>) ostream)
  "Serializes a message object of type '<EmbedTest>"
  (serialize (slot-value msg 'str1) ostream)
  (serialize (slot-value msg 'int1) ostream)
  (let ((__ros_arr_len (length (slot-value msg 'ints))))
    (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 'ints))
  (serialize (slot-value msg 'val) ostream)
  (let ((__ros_arr_len (length (slot-value msg 'vals))))
    (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 'vals))
  (let ((__ros_arr_len (length (slot-value msg 'arrayval))))
    (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 'arrayval))
)
(defmethod deserialize ((msg <EmbedTest>) istream)
  "Deserializes a message object of type '<EmbedTest>"
  (deserialize (slot-value msg 'str1) istream)
  (deserialize (slot-value msg 'int1) 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 'ints) (make-array __ros_arr_len))
    (let ((vals (slot-value msg 'ints)))
      (dotimes (i __ros_arr_len)
        (setf (aref vals i) (make-instance 'std_msgs-msg:<Int32>))
(deserialize (aref vals i) istream))))
  (deserialize (slot-value msg 'val) 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 'vals) (make-array __ros_arr_len))
    (let ((vals (slot-value msg 'vals)))
      (dotimes (i __ros_arr_len)
        (setf (aref vals i) (make-instance '<Val>))
(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 'arrayval) (make-array __ros_arr_len))
    (let ((vals (slot-value msg 'arrayval)))
      (dotimes (i __ros_arr_len)
        (setf (aref vals i) (make-instance '<ArrayVal>))
(deserialize (aref vals i) istream))))
  msg
)
(defmethod ros-datatype ((msg (eql '<EmbedTest>)))
  "Returns string type for a message object of type '<EmbedTest>"
  "test_rospy/EmbedTest")
(defmethod md5sum ((type (eql '<EmbedTest>)))
  "Returns md5sum for a message object of type '<EmbedTest>"
  "f8b1fc6a0f70f541c9d6bd2886b9e249")
(defmethod message-definition ((type (eql '<EmbedTest>)))
  "Returns full string definition for message of type '<EmbedTest>"
  (format nil "std_msgs/String str1~%std_msgs/Int32 int1~%std_msgs/Int32[] ints~%Val val~%Val[] vals~%ArrayVal[] arrayval~%~%================================================================================~%MSG: std_msgs/String~%string data~%~%================================================================================~%MSG: std_msgs/Int32~%int32 data~%================================================================================~%MSG: test_rospy/Val~%string val~%================================================================================~%MSG: test_rospy/ArrayVal~%Val[] vals~%#Val[10] vals_fixed~%~%~%"))
(defmethod serialization-length ((msg <EmbedTest>))
  (+ 0
     (serialization-length (slot-value msg 'str1))
     (serialization-length (slot-value msg 'int1))
     4 (reduce #'+ (slot-value msg 'ints) :key #'(lambda (ele) (declare (ignorable ele)) (+ (serialization-length ele))))
     (serialization-length (slot-value msg 'val))
     4 (reduce #'+ (slot-value msg 'vals) :key #'(lambda (ele) (declare (ignorable ele)) (+ (serialization-length ele))))
     4 (reduce #'+ (slot-value msg 'arrayval) :key #'(lambda (ele) (declare (ignorable ele)) (+ (serialization-length ele))))
))
(defmethod ros-message-to-list ((msg <EmbedTest>))
  "Converts a ROS message object to a list"
  (list '<EmbedTest>
    (cons ':str1 (str1-val msg))
    (cons ':int1 (int1-val msg))
    (cons ':ints (ints-val msg))
    (cons ':val (val-val msg))
    (cons ':vals (vals-val msg))
    (cons ':arrayval (arrayval-val msg))
))
