; Auto-generated. Do not edit!


(in-package std_msgs-msg)


;//! \htmlinclude String.msg.html

(defclass <String> (ros-message)
  ((data
    :reader data-val
    :initarg :data
    :type string
    :initform ""))
)
(defmethod serialize ((msg <String>) ostream)
  "Serializes a message object of type '<String>"
  (let ((__ros_str_len (length (slot-value msg 'data))))
    (write-byte (ldb (byte 8 0) __ros_str_len) ostream)
    (write-byte (ldb (byte 8 8) __ros_str_len) ostream)
    (write-byte (ldb (byte 8 16) __ros_str_len) ostream)
    (write-byte (ldb (byte 8 24) __ros_str_len) ostream))
  (map nil #'(lambda (c) (write-byte (char-code c) ostream)) (slot-value msg 'data))
)
(defmethod deserialize ((msg <String>) istream)
  "Deserializes a message object of type '<String>"
  (let ((__ros_str_len 0))
    (setf (ldb (byte 8 0) __ros_str_len) (read-byte istream))
    (setf (ldb (byte 8 8) __ros_str_len) (read-byte istream))
    (setf (ldb (byte 8 16) __ros_str_len) (read-byte istream))
    (setf (ldb (byte 8 24) __ros_str_len) (read-byte istream))
    (setf (slot-value msg 'data) (make-string __ros_str_len))
    (dotimes (__ros_str_idx __ros_str_len msg)
      (setf (char (slot-value msg 'data) __ros_str_idx) (code-char (read-byte istream)))))
  msg
)
(defmethod ros-datatype ((msg (eql '<String>)))
  "Returns string type for a message object of type '<String>"
  "std_msgs/String")
(defmethod md5sum ((type (eql '<String>)))
  "Returns md5sum for a message object of type '<String>"
  "992ce8a1687cec8c8bd883ec73ca41d1")
(defmethod message-definition ((type (eql '<String>)))
  "Returns full string definition for message of type '<String>"
  (format nil "string data~%~%~%"))
(defmethod serialization-length ((msg <String>))
  (+ 0
     4 (length (slot-value msg 'data))
))
(defmethod ros-message-to-list ((msg <String>))
  "Converts a ROS message object to a list"
  (list '<String>
    (cons ':data (data-val msg))
))
