; Auto-generated. Do not edit!


(in-package perf_roscpp-msg)


;//! \htmlinclude LatencyMessage.msg.html

(defclass <LatencyMessage> (ros-message)
  ((publish_time
    :reader publish_time-val
    :initarg :publish_time
    :type float
    :initform 0.0)
   (receipt_time
    :reader receipt_time-val
    :initarg :receipt_time
    :type float
    :initform 0.0)
   (count
    :reader count-val
    :initarg :count
    :type integer
    :initform 0)
   (thread_index
    :reader thread_index-val
    :initarg :thread_index
    :type integer
    :initform 0)
   (array
    :reader array-val
    :initarg :array
    :type (vector fixnum)
   :initform (make-array 0 :element-type 'fixnum :initial-element 0)))
)
(defmethod serialize ((msg <LatencyMessage>) ostream)
  "Serializes a message object of type '<LatencyMessage>"
  (let ((bits (roslisp-utils:encode-double-float-bits (slot-value msg 'publish_time))))
    (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)
    (write-byte (ldb (byte 8 32) bits) ostream)
    (write-byte (ldb (byte 8 40) bits) ostream)
    (write-byte (ldb (byte 8 48) bits) ostream)
    (write-byte (ldb (byte 8 56) bits) ostream))
  (let ((bits (roslisp-utils:encode-double-float-bits (slot-value msg 'receipt_time))))
    (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)
    (write-byte (ldb (byte 8 32) bits) ostream)
    (write-byte (ldb (byte 8 40) bits) ostream)
    (write-byte (ldb (byte 8 48) bits) ostream)
    (write-byte (ldb (byte 8 56) bits) ostream))
    (write-byte (ldb (byte 8 0) (slot-value msg 'count)) ostream)
  (write-byte (ldb (byte 8 8) (slot-value msg 'count)) ostream)
  (write-byte (ldb (byte 8 16) (slot-value msg 'count)) ostream)
  (write-byte (ldb (byte 8 24) (slot-value msg 'count)) ostream)
  (write-byte (ldb (byte 8 32) (slot-value msg 'count)) ostream)
  (write-byte (ldb (byte 8 40) (slot-value msg 'count)) ostream)
  (write-byte (ldb (byte 8 48) (slot-value msg 'count)) ostream)
  (write-byte (ldb (byte 8 56) (slot-value msg 'count)) ostream)
    (write-byte (ldb (byte 8 0) (slot-value msg 'thread_index)) ostream)
  (write-byte (ldb (byte 8 8) (slot-value msg 'thread_index)) ostream)
  (write-byte (ldb (byte 8 16) (slot-value msg 'thread_index)) ostream)
  (write-byte (ldb (byte 8 24) (slot-value msg 'thread_index)) ostream)
  (let ((__ros_arr_len (length (slot-value msg 'array))))
    (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)   (write-byte (ldb (byte 8 0) ele) ostream))
    (slot-value msg 'array))
)
(defmethod deserialize ((msg <LatencyMessage>) istream)
  "Deserializes a message object of type '<LatencyMessage>"
  (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 (ldb (byte 8 32) bits) (read-byte istream))
    (setf (ldb (byte 8 40) bits) (read-byte istream))
    (setf (ldb (byte 8 48) bits) (read-byte istream))
    (setf (ldb (byte 8 56) bits) (read-byte istream))
    (setf (slot-value msg 'publish_time) (roslisp-utils:decode-double-float-bits bits)))
  (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 (ldb (byte 8 32) bits) (read-byte istream))
    (setf (ldb (byte 8 40) bits) (read-byte istream))
    (setf (ldb (byte 8 48) bits) (read-byte istream))
    (setf (ldb (byte 8 56) bits) (read-byte istream))
    (setf (slot-value msg 'receipt_time) (roslisp-utils:decode-double-float-bits bits)))
  (setf (ldb (byte 8 0) (slot-value msg 'count)) (read-byte istream))
  (setf (ldb (byte 8 8) (slot-value msg 'count)) (read-byte istream))
  (setf (ldb (byte 8 16) (slot-value msg 'count)) (read-byte istream))
  (setf (ldb (byte 8 24) (slot-value msg 'count)) (read-byte istream))
  (setf (ldb (byte 8 32) (slot-value msg 'count)) (read-byte istream))
  (setf (ldb (byte 8 40) (slot-value msg 'count)) (read-byte istream))
  (setf (ldb (byte 8 48) (slot-value msg 'count)) (read-byte istream))
  (setf (ldb (byte 8 56) (slot-value msg 'count)) (read-byte istream))
  (setf (ldb (byte 8 0) (slot-value msg 'thread_index)) (read-byte istream))
  (setf (ldb (byte 8 8) (slot-value msg 'thread_index)) (read-byte istream))
  (setf (ldb (byte 8 16) (slot-value msg 'thread_index)) (read-byte istream))
  (setf (ldb (byte 8 24) (slot-value msg 'thread_index)) (read-byte 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 'array) (make-array __ros_arr_len))
    (let ((vals (slot-value msg 'array)))
      (dotimes (i __ros_arr_len)
(setf (ldb (byte 8 0) (aref vals i)) (read-byte istream)))))
  msg
)
(defmethod ros-datatype ((msg (eql '<LatencyMessage>)))
  "Returns string type for a message object of type '<LatencyMessage>"
  "perf_roscpp/LatencyMessage")
(defmethod md5sum ((type (eql '<LatencyMessage>)))
  "Returns md5sum for a message object of type '<LatencyMessage>"
  "be90d117303321f392404ed7edeb7c8c")
(defmethod message-definition ((type (eql '<LatencyMessage>)))
  "Returns full string definition for message of type '<LatencyMessage>"
  (format nil "float64 publish_time~%float64 receipt_time~%uint64 count~%uint32 thread_index~%uint8[] array~%~%~%~%"))
(defmethod serialization-length ((msg <LatencyMessage>))
  (+ 0
     8
     8
     8
     4
     4 (reduce #'+ (slot-value msg 'array) :key #'(lambda (ele) (declare (ignorable ele)) (+ 1)))
))
(defmethod ros-message-to-list ((msg <LatencyMessage>))
  "Converts a ROS message object to a list"
  (list '<LatencyMessage>
    (cons ':publish_time (publish_time-val msg))
    (cons ':receipt_time (receipt_time-val msg))
    (cons ':count (count-val msg))
    (cons ':thread_index (thread_index-val msg))
    (cons ':array (array-val msg))
))
