; Auto-generated. Do not edit!


(in-package std_msgs-msg)


;//! \htmlinclude Duration.msg.html

(defclass <Duration> (ros-message)
  ((data
    :reader data-val
    :initarg :data
    :type real
    :initform 0))
)
(defmethod serialize ((msg <Duration>) ostream)
  "Serializes a message object of type '<Duration>"
  (let ((__sec (floor (slot-value msg 'data)))
        (__nsec (round (* 1e9 (- (slot-value msg 'data) (floor (slot-value msg 'data)))))))
    (write-byte (ldb (byte 8 0) __sec) ostream)
    (write-byte (ldb (byte 8 8) __sec) ostream)
    (write-byte (ldb (byte 8 16) __sec) ostream)
    (write-byte (ldb (byte 8 24) __sec) ostream)
    (write-byte (ldb (byte 8 0) __nsec) ostream)
    (write-byte (ldb (byte 8 8) __nsec) ostream)
    (write-byte (ldb (byte 8 16) __nsec) ostream)
    (write-byte (ldb (byte 8 24) __nsec) ostream))
)
(defmethod deserialize ((msg <Duration>) istream)
  "Deserializes a message object of type '<Duration>"
  (let ((__sec 0) (__nsec 0))
    (setf (ldb (byte 8 0) __sec) (read-byte istream))
    (setf (ldb (byte 8 8) __sec) (read-byte istream))
    (setf (ldb (byte 8 16) __sec) (read-byte istream))
    (setf (ldb (byte 8 24) __sec) (read-byte istream))
    (setf (ldb (byte 8 0) __nsec) (read-byte istream))
    (setf (ldb (byte 8 8) __nsec) (read-byte istream))
    (setf (ldb (byte 8 16) __nsec) (read-byte istream))
    (setf (ldb (byte 8 24) __nsec) (read-byte istream))
    (setf (slot-value msg 'data) (+ (coerce __sec 'double-float) (/ __nsec 1e9))))
  msg
)
(defmethod ros-datatype ((msg (eql '<Duration>)))
  "Returns string type for a message object of type '<Duration>"
  "std_msgs/Duration")
(defmethod md5sum ((type (eql '<Duration>)))
  "Returns md5sum for a message object of type '<Duration>"
  "3e286caf4241d664e55f3ad380e2ae46")
(defmethod message-definition ((type (eql '<Duration>)))
  "Returns full string definition for message of type '<Duration>"
  (format nil "duration data~%~%~%"))
(defmethod serialization-length ((msg <Duration>))
  (+ 0
     8
))
(defmethod ros-message-to-list ((msg <Duration>))
  "Converts a ROS message object to a list"
  (list '<Duration>
    (cons ':data (data-val msg))
))
