; Auto-generated. Do not edit!


(in-package test_roscpp_serialization-msg)


;//! \htmlinclude WithTime.msg.html

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