; Auto-generated. Do not edit!


(in-package test_rospy-msg)


;//! \htmlinclude Floats.msg.html

(defclass <Floats> (ros-message)
  ((data
    :reader data-val
    :initarg :data
    :type (vector float)
   :initform (make-array 0 :element-type 'float :initial-element 0.0)))
)
(defmethod serialize ((msg <Floats>) ostream)
  "Serializes a message object of type '<Floats>"
  (let ((__ros_arr_len (length (slot-value msg 'data))))
    (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) (let ((bits (roslisp-utils:encode-single-float-bits ele)))
    (write-byte (ldb (byte 8 0) bits) ostream)
    (write-byte (ldb (byte 8 8) bits) ostream)
    (write-byte (ldb (byte 8 16) bits) ostream)
    (write-byte (ldb (byte 8 24) bits) ostream)))
    (slot-value msg 'data))
)
(defmethod deserialize ((msg <Floats>) istream)
  "Deserializes a message object of type '<Floats>"
  (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 'data) (make-array __ros_arr_len))
    (let ((vals (slot-value msg 'data)))
      (dotimes (i __ros_arr_len)
(let ((bits 0))
    (setf (ldb (byte 8 0) bits) (read-byte istream))
    (setf (ldb (byte 8 8) bits) (read-byte istream))
    (setf (ldb (byte 8 16) bits) (read-byte istream))
    (setf (ldb (byte 8 24) bits) (read-byte istream))
    (setf (aref vals i) (roslisp-utils:decode-single-float-bits bits))))))
  msg
)
(defmethod ros-datatype ((msg (eql '<Floats>)))
  "Returns string type for a message object of type '<Floats>"
  "test_rospy/Floats")
(defmethod md5sum ((type (eql '<Floats>)))
  "Returns md5sum for a message object of type '<Floats>"
  "420cd38b6b071cd49f2970c3e2cee511")
(defmethod message-definition ((type (eql '<Floats>)))
  "Returns full string definition for message of type '<Floats>"
  (format nil "# exact copy of rospy_tutorials/Floats, used for testing~%float32[] data~%~%~%"))
(defmethod serialization-length ((msg <Floats>))
  (+ 0
     4 (reduce #'+ (slot-value msg 'data) :key #'(lambda (ele) (declare (ignorable ele)) (+ 4)))
))
(defmethod ros-message-to-list ((msg <Floats>))
  "Converts a ROS message object to a list"
  (list '<Floats>
    (cons ':data (data-val msg))
))
