; Auto-generated. Do not edit!


(in-package test_roscpp-srv)


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

(defclass <BadTestStringString-request> (ros-message)
  ((strbad
    :reader strbad-val
    :initarg :strbad
    :type string
    :initform ""))
)
(defmethod serialize ((msg <BadTestStringString-request>) ostream)
  "Serializes a message object of type '<BadTestStringString-request>"
  (let ((__ros_str_len (length (slot-value msg 'strbad))))
    (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 'strbad))
)
(defmethod deserialize ((msg <BadTestStringString-request>) istream)
  "Deserializes a message object of type '<BadTestStringString-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 'strbad) (make-string __ros_str_len))
    (dotimes (__ros_str_idx __ros_str_len msg)
      (setf (char (slot-value msg 'strbad) __ros_str_idx) (code-char (read-byte istream)))))
  msg
)
(defmethod ros-datatype ((msg (eql '<BadTestStringString-request>)))
  "Returns string type for a service object of type '<BadTestStringString-request>"
  "test_roscpp/BadTestStringStringRequest")
(defmethod md5sum ((type (eql '<BadTestStringString-request>)))
  "Returns md5sum for a message object of type '<BadTestStringString-request>"
  "6b193467bc2d41be616d6b0e985e2a63")
(defmethod message-definition ((type (eql '<BadTestStringString-request>)))
  "Returns full string definition for message of type '<BadTestStringString-request>"
  (format nil "# field name is different, so md5 sum should be different~%string strbad~%~%"))
(defmethod serialization-length ((msg <BadTestStringString-request>))
  (+ 0
     4 (length (slot-value msg 'strbad))
))
(defmethod ros-message-to-list ((msg <BadTestStringString-request>))
  "Converts a ROS message object to a list"
  (list '<BadTestStringString-request>
    (cons ':strbad (strbad-val msg))
))
;//! \htmlinclude BadTestStringString-response.msg.html

(defclass <BadTestStringString-response> (ros-message)
  ((str
    :reader str-val
    :initarg :str
    :type string
    :initform ""))
)
(defmethod serialize ((msg <BadTestStringString-response>) ostream)
  "Serializes a message object of type '<BadTestStringString-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 <BadTestStringString-response>) istream)
  "Deserializes a message object of type '<BadTestStringString-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 '<BadTestStringString-response>)))
  "Returns string type for a service object of type '<BadTestStringString-response>"
  "test_roscpp/BadTestStringStringResponse")
(defmethod md5sum ((type (eql '<BadTestStringString-response>)))
  "Returns md5sum for a message object of type '<BadTestStringString-response>"
  "6b193467bc2d41be616d6b0e985e2a63")
(defmethod message-definition ((type (eql '<BadTestStringString-response>)))
  "Returns full string definition for message of type '<BadTestStringString-response>"
  (format nil "string str~%~%~%"))
(defmethod serialization-length ((msg <BadTestStringString-response>))
  (+ 0
     4 (length (slot-value msg 'str))
))
(defmethod ros-message-to-list ((msg <BadTestStringString-response>))
  "Converts a ROS message object to a list"
  (list '<BadTestStringString-response>
    (cons ':str (str-val msg))
))
(defmethod service-request-type ((msg (eql 'BadTestStringString)))
  '<BadTestStringString-request>)
(defmethod service-response-type ((msg (eql 'BadTestStringString)))
  '<BadTestStringString-response>)
(defmethod ros-datatype ((msg (eql 'BadTestStringString)))
  "Returns string type for a service object of type '<BadTestStringString>"
  "test_roscpp/BadTestStringString")
