; Auto-generated. Do not edit!


(in-package test_roscpp_serialization-msg)


;//! \htmlinclude ArrayOfVariableLength.msg.html

(defclass <ArrayOfVariableLength> (ros-message)
  ((a
    :reader a-val
    :initarg :a
    :type (vector <VariableLength>)
   :initform (make-array 4 :element-type '<VariableLength> :initial-element (make-instance '<VariableLength>))))
)
(defmethod serialize ((msg <ArrayOfVariableLength>) ostream)
  "Serializes a message object of type '<ArrayOfVariableLength>"
    (map nil #'(lambda (ele) (serialize ele ostream))(slot-value msg 'a))
)
(defmethod deserialize ((msg <ArrayOfVariableLength>) istream)
  "Deserializes a message object of type '<ArrayOfVariableLength>"
  (setf (slot-value msg 'a) (make-array 4))
  (let ((vals (slot-value msg 'a)))
    (dotimes (i 4)
    (setf (aref vals i) (make-instance '<VariableLength>))
(deserialize (aref vals i) istream)))
  msg
)
(defmethod ros-datatype ((msg (eql '<ArrayOfVariableLength>)))
  "Returns string type for a message object of type '<ArrayOfVariableLength>"
  "test_roscpp_serialization/ArrayOfVariableLength")
(defmethod md5sum ((type (eql '<ArrayOfVariableLength>)))
  "Returns md5sum for a message object of type '<ArrayOfVariableLength>"
  "e7404d454a50b82c426a3a2c76fbcefd")
(defmethod message-definition ((type (eql '<ArrayOfVariableLength>)))
  "Returns full string definition for message of type '<ArrayOfVariableLength>"
  (format nil "VariableLength[4] a~%================================================================================~%MSG: test_roscpp_serialization/VariableLength~%uint32[] a~%~%~%"))
(defmethod serialization-length ((msg <ArrayOfVariableLength>))
  (+ 0
     0 (reduce #'+ (slot-value msg 'a) :key #'(lambda (ele) (declare (ignorable ele)) (+ (serialization-length ele))))
))
(defmethod ros-message-to-list ((msg <ArrayOfVariableLength>))
  "Converts a ROS message object to a list"
  (list '<ArrayOfVariableLength>
    (cons ':a (a-val msg))
))
