; Auto-generated. Do not edit!


(in-package test_roslib-msg)


;//! \htmlinclude FillEmbedTime.msg.html

(defclass <FillEmbedTime> (ros-message)
  ((t
    :reader t-val
    :initarg :t
    :type real
    :initform 0)
   (d
    :reader d-val
    :initarg :d
    :type real
    :initform 0)
   (str_msg
    :reader str_msg-val
    :initarg :str_msg
    :type std_msgs-msg:<String>
    :initform (make-instance 'std_msgs-msg:<String>))
   (str_msg_array
    :reader str_msg_array-val
    :initarg :str_msg_array
    :type (vector std_msgs-msg:<String>)
   :initform (make-array 0 :element-type 'std_msgs-msg:<String> :initial-element (make-instance 'std_msgs-msg:<String>)))
   (i32
    :reader i32-val
    :initarg :i32
    :type integer
    :initform 0))
)
(defmethod serialize ((msg <FillEmbedTime>) ostream)
  "Serializes a message object of type '<FillEmbedTime>"
  (let ((__sec (floor (slot-value msg 't)))
        (__nsec (round (* 1e9 (- (slot-value msg 't) (floor (slot-value msg 't)))))))
    (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))
  (let ((__sec (floor (slot-value msg 'd)))
        (__nsec (round (* 1e9 (- (slot-value msg 'd) (floor (slot-value msg 'd)))))))
    (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))
  (serialize (slot-value msg 'str_msg) ostream)
  (let ((__ros_arr_len (length (slot-value msg 'str_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) (serialize ele ostream))
    (slot-value msg 'str_msg_array))
    (write-byte (ldb (byte 8 0) (slot-value msg 'i32)) ostream)
  (write-byte (ldb (byte 8 8) (slot-value msg 'i32)) ostream)
  (write-byte (ldb (byte 8 16) (slot-value msg 'i32)) ostream)
  (write-byte (ldb (byte 8 24) (slot-value msg 'i32)) ostream)
)
(defmethod deserialize ((msg <FillEmbedTime>) istream)
  "Deserializes a message object of type '<FillEmbedTime>"
  (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 't) (+ (coerce __sec 'double-float) (/ __nsec 1e9))))
  (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 'd) (+ (coerce __sec 'double-float) (/ __nsec 1e9))))
  (deserialize (slot-value msg 'str_msg) 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 'str_msg_array) (make-array __ros_arr_len))
    (let ((vals (slot-value msg 'str_msg_array)))
      (dotimes (i __ros_arr_len)
        (setf (aref vals i) (make-instance 'std_msgs-msg:<String>))
(deserialize (aref vals i) istream))))
  (setf (ldb (byte 8 0) (slot-value msg 'i32)) (read-byte istream))
  (setf (ldb (byte 8 8) (slot-value msg 'i32)) (read-byte istream))
  (setf (ldb (byte 8 16) (slot-value msg 'i32)) (read-byte istream))
  (setf (ldb (byte 8 24) (slot-value msg 'i32)) (read-byte istream))
  msg
)
(defmethod ros-datatype ((msg (eql '<FillEmbedTime>)))
  "Returns string type for a message object of type '<FillEmbedTime>"
  "test_roslib/FillEmbedTime")
(defmethod md5sum ((type (eql '<FillEmbedTime>)))
  "Returns md5sum for a message object of type '<FillEmbedTime>"
  "90e08039be001a899b8c20e680c289b0")
(defmethod message-definition ((type (eql '<FillEmbedTime>)))
  "Returns full string definition for message of type '<FillEmbedTime>"
  (format nil "time t~%duration d~%std_msgs/String str_msg~%std_msgs/String[] str_msg_array~%int32 i32~%================================================================================~%MSG: std_msgs/String~%string data~%~%~%"))
(defmethod serialization-length ((msg <FillEmbedTime>))
  (+ 0
     8
     8
     (serialization-length (slot-value msg 'str_msg))
     4 (reduce #'+ (slot-value msg 'str_msg_array) :key #'(lambda (ele) (declare (ignorable ele)) (+ (serialization-length ele))))
     4
))
(defmethod ros-message-to-list ((msg <FillEmbedTime>))
  "Converts a ROS message object to a list"
  (list '<FillEmbedTime>
    (cons ':t (t-val msg))
    (cons ':d (d-val msg))
    (cons ':str_msg (str_msg-val msg))
    (cons ':str_msg_array (str_msg_array-val msg))
    (cons ':i32 (i32-val msg))
))
