; Auto-generated. Do not edit!


(in-package test_roscpp-srv)


;//! \htmlinclude TestStringString-request.msg.html

(defclass <TestStringString-request> (ros-message)
  ((str
    :reader str-val
    :initarg :str
    :type string
    :initform ""))
)
(defmethod serialize ((msg <TestStringString-request>) ostream)
  "Serializes a message object of type '<TestStringString-request>"
  (let ((__ros_str_len (length (slot-value msg 'str))))
    (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 'str))
)
(defmethod deserialize ((msg <TestStringString-request>) istream)
  "Deserializes a message object of type '<TestStringString-request>"
  (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 'str) (make-string __ros_str_len))
    (dotimes (__ros_str_idx __ros_str_len msg)
      (setf (char (slot-value msg 'str) __ros_str_idx) (code-char (read-byte istream)))))
  msg
)
(defmethod ros-datatype ((msg (eql '<TestStringString-request>)))
  "Returns string type for a service object of type '<TestStringString-request>"
  "test_roscpp/TestStringStringRequest")
(defmethod md5sum ((type (eql '<TestStringString-request>)))
  "Returns md5sum for a message object of type '<TestStringString-request>"
  "671f8e4998eaec79f1c47e339dfd527b")
(defmethod message-definition ((type (eql '<TestStringString-request>)))
  "Returns full string definition for message of type '<TestStringString-request>"
  (format nil "string str~%~%"))
(defmethod serialization-length ((msg <TestStringString-request>))
  (+ 0
     4 (length (slot-value msg 'str))
))
(defmethod ros-message-to-list ((msg <TestStringString-request>))
  "Converts a ROS message object to a list"
  (list '<TestStringString-request>
    (cons ':str (str-val msg))
))
;//! \htmlinclude TestStringString-response.msg.html

(defclass <TestStringString-response> (ros-message)
  ((str
    :reader str-val
    :initarg :str
    :type string
    :initform ""))
)
(defmethod serialize ((msg <TestStringString-response>) ostream)
  "Serializes a message object of type '<TestStringString-response>"
  (let ((__ros_str_len (length (slot-value msg 'str))))
    (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 'str))
)
(defmethod deserialize ((msg <TestStringString-response>) istream)
  "Deserializes a message object of type '<TestStringString-response>"
  (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 'str) (make-string __ros_str_len))
    (dotimes (__ros_str_idx __ros_str_len msg)
      (setf (char (slot-value msg 'str) __ros_str_idx) (code-char (read-byte istream)))))
  msg
)
(defmethod ros-datatype ((msg (eql '<TestStringString-response>)))
  "Returns string type for a service object of type '<TestStringString-response>"
  "test_roscpp/TestStringStringResponse")
(defmethod md5sum ((type (eql '<TestStringString-response>)))
  "Returns md5sum for a message object of type '<TestStringString-response>"
  "671f8e4998eaec79f1c47e339dfd527b")
(defmethod message-definition ((type (eql '<TestStringString-response>)))
  "Returns full string definition for message of type '<TestStringString-response>"
  (format nil "string str~%~%~%"))
(defmethod serialization-length ((msg <TestStringString-response>))
  (+ 0
     4 (length (slot-value msg 'str))
))
(defmethod ros-message-to-list ((msg <TestStringString-response>))
  "Converts a ROS message object to a list"
  (list '<TestStringString-response>
    (cons ':str (str-val msg))
))
(defmethod service-request-type ((msg (eql 'TestStringString)))
  '<TestStringString-request>)
(defmethod service-response-type ((msg (eql 'TestStringString)))
  '<TestStringString-response>)
(defmethod ros-datatype ((msg (eql 'TestStringString)))
  "Returns string type for a service object of type '<TestStringString>"
  "test_roscpp/TestStringString")
