; Auto-generated. Do not edit!


(in-package test_rospy-msg)


;//! \htmlinclude ArrayVal.msg.html

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