; Auto-generated. Do not edit!


(in-package std_msgs-msg)


;//! \htmlinclude Time.msg.html

(defclass <Time> (ros-message)
  ((data
    :reader data-val
    :initarg :data
    :type real
    :initform 0))
)
(defmethod serialize ((msg <Time>) ostream)
  "Serializes a message object of type '<Time>"
  (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 <Time>) istream)
  "Deserializes a message object of type '<Time>"
  (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 '<Time>)))
  "Returns string type for a message object of type '<Time>"
  "std_msgs/Time")
(defmethod md5sum ((type (eql '<Time>)))
  "Returns md5sum for a message object of type '<Time>"
  "cd7166c74c552c311fbcc2fe5a7bc289")
(defmethod message-definition ((type (eql '<Time>)))
  "Returns full string definition for message of type '<Time>"
  (format nil "time data~%~%~%"))
(defmethod serialization-length ((msg <Time>))
  (+ 0
     8
))
(defmethod ros-message-to-list ((msg <Time>))
  "Converts a ROS message object to a list"
  (list '<Time>
    (cons ':data (data-val msg))
))
