; Auto-generated. Do not edit!


(in-package test_roscpp_serialization-msg)


;//! \htmlinclude WithDuration.msg.html

(defclass <WithDuration> (ros-message)
  ((my_duration
    :reader my_duration-val
    :initarg :my_duration
    :type real
    :initform 0))
)
(defmethod serialize ((msg <WithDuration>) ostream)
  "Serializes a message object of type '<WithDuration>"
  (let ((__sec (floor (slot-value msg 'my_duration)))
        (__nsec (round (* 1e9 (- (slot-value msg 'my_duration) (floor (slot-value msg 'my_duration)))))))
    (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 <WithDuration>) istream)
  "Deserializes a message object of type '<WithDuration>"
  (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 'my_duration) (+ (coerce __sec 'double-float) (/ __nsec 1e9))))
  msg
)
(defmethod ros-datatype ((msg (eql '<WithDuration>)))
  "Returns string type for a message object of type '<WithDuration>"
  "test_roscpp_serialization/WithDuration")
(defmethod md5sum ((type (eql '<WithDuration>)))
  "Returns md5sum for a message object of type '<WithDuration>"
  "7ad52ba9d0229ba8b9c032400c77c367")
(defmethod message-definition ((type (eql '<WithDuration>)))
  "Returns full string definition for message of type '<WithDuration>"
  (format nil "duration my_duration~%~%"))
(defmethod serialization-length ((msg <WithDuration>))
  (+ 0
     8
))
(defmethod ros-message-to-list ((msg <WithDuration>))
  "Converts a ROS message object to a list"
  (list '<WithDuration>
    (cons ':my_duration (my_duration-val msg))
))
